ForkSessionResponse
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| Response aclientp.schema.base Base request model. |
⋔ Inheritance diagram¶
graph TD
95970861774928["agent_responses.ForkSessionResponse"]
95970861210848["base.Response"]
95970862258240["base.AnnotatedObject"]
95970862254416["base.Schema"]
95970851503232["main.BaseModel"]
125067848591872["builtins.object"]
95970861210848 --> 95970861774928
95970862258240 --> 95970861210848
95970862254416 --> 95970862258240
95970851503232 --> 95970862254416
125067848591872 --> 95970851503232
🛈 DocStrings¶
Bases: Response
UNSTABLE: Response from forking an existing session.
Source code in src/aclientp/schema/agent_responses.py
config_options
class-attribute
instance-attribute
¶
config_options: Sequence[SessionConfigOption] | None = None
The full list of config options with updated values.
modes
class-attribute
instance-attribute
¶
modes: SessionModeState | None = None
Initial mode state if supported by the Agent
See protocol docs: Session Modes
session_id
instance-attribute
¶
Unique identifier for the newly created forked session.
create
classmethod
¶
create(
session_id: str,
config_options: Sequence[SessionConfigOption] | None = None,
modes: Sequence[SessionMode] | None = None,
current_mode: str | None = None,
) -> Self
Create a response with the given session ID and config options.