Expand description
Tool trait — re-exported from sgr-agent-core.
Implement Tool for each capability you want to expose to the agent.
Arguments arrive as serde_json::Value; use parse_args helper for typed deserialization.
Structs§
- Context
Modifier - Modifier that a tool can return to change agent runtime behavior.
- Tool
Output - Output from a tool execution.
Enums§
- Tool
Error - Errors from tool execution.
Constants§
- MAX_
TOKENS_ OVERRIDE_ KEY - Well-known key in
AgentContext.customfor max_tokens override.
Traits§
- Tool
- A tool that an agent can invoke.
Functions§
- parse_
args - Parse JSON args into a typed struct.