Skip to main content

Module control_tool

Module control_tool 

Source

Structs§

ControlTool
Agent-callable system control tool. Allows the model to manage session behavior (steering, style, undo) through natural language rather than requiring users to know slash-command syntax.

Constants§

CMD_PREFIX
Command prefix that the chat loop recognizes as an agent-issued directive.

Traits§

AgentControl
Trait abstracting the Agent mutations that ControlTool needs. Implemented by Agent in the binary crate to avoid circular deps.

Functions§

execute_agent_command
Parse a CMD: prefixed tool output and execute the corresponding agent mutation. Returns a human-readable result string, or None if the output is not a command.