agent_requests
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| BaseAgentRequest aclientp.schema.agent_requests Base class for all agent requests. |
||
| CreateTerminalRequest aclientp.schema.agent_requests Request to create a new terminal and execute a command. |
||
| KillTerminalRequest aclientp.schema.agent_requests Request to kill a terminal command without releasing the terminal. |
||
| ReadTextFileRequest aclientp.schema.agent_requests Request to read content from a text file. |
||
| ReleaseTerminalRequest aclientp.schema.agent_requests Request to release a terminal and free its resources. |
||
| RequestPermissionRequest aclientp.schema.agent_requests Request for user permission to execute a tool call. |
||
| TerminalOutputRequest aclientp.schema.agent_requests Request to get the current output and status of a terminal. |
||
| WaitForTerminalExitRequest aclientp.schema.agent_requests Request to wait for a terminal command to exit. |
||
| WriteTextFileRequest aclientp.schema.agent_requests Request to write content to a text file. |
🛈 DocStrings¶
BaseAgentRequest
¶
Bases: Request
Base class for all agent requests.
Source code in src/aclientp/schema/agent_requests.py
CreateTerminalRequest
¶
Bases: BaseAgentRequest
Request to create a new terminal and execute a command.
Source code in src/aclientp/schema/agent_requests.py
args
class-attribute
instance-attribute
¶
Array of command arguments.
cwd
class-attribute
instance-attribute
¶
Working directory for the command (absolute path).
env
class-attribute
instance-attribute
¶
env: Sequence[EnvVariable] | None = None
Environment variables for the command.
output_byte_limit
class-attribute
instance-attribute
¶
Maximum number of output bytes to retain.
When the limit is exceeded, the Client truncates from the beginning of the output to stay within the limit.
The Client MUST ensure truncation happens at a character boundary to maintain valid string output, even if this means the retained output is slightly less than the specified limit.
KillTerminalRequest
¶
Bases: BaseAgentRequest
Request to kill a terminal command without releasing the terminal.
Source code in src/aclientp/schema/agent_requests.py
ReadTextFileRequest
¶
Bases: BaseAgentRequest
Request to read content from a text file.
Only available if the client supports the fs.readTextFile capability.
Source code in src/aclientp/schema/agent_requests.py
ReleaseTerminalRequest
¶
Bases: BaseAgentRequest
Request to release a terminal and free its resources.
Source code in src/aclientp/schema/agent_requests.py
RequestPermissionRequest
¶
Bases: BaseAgentRequest
Request for user permission to execute a tool call.
Sent when the agent needs authorization before performing a sensitive operation.
See protocol docs: Requesting Permission
Source code in src/aclientp/schema/agent_requests.py
options
instance-attribute
¶
options: Sequence[PermissionOption]
Available permission options for the user to choose from.
tool_call
instance-attribute
¶
tool_call: ToolCallUpdate
Details about the tool call requiring permission.
TerminalOutputRequest
¶
Bases: BaseAgentRequest
Request to get the current output and status of a terminal.
Source code in src/aclientp/schema/agent_requests.py
WaitForTerminalExitRequest
¶
Bases: BaseAgentRequest
Request to wait for a terminal command to exit.
Source code in src/aclientp/schema/agent_requests.py
WriteTextFileRequest
¶
Bases: BaseAgentRequest
Request to write content to a text file.
Only available if the client supports the fs.writeTextFile capability.