Skip to main content

Module agent_tool

Module agent_tool 

Source
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§

ContextModifier
Modifier that a tool can return to change agent runtime behavior.
ToolOutput
Output from a tool execution.

Enums§

ToolError
Errors from tool execution.

Constants§

MAX_TOKENS_OVERRIDE_KEY
Well-known key in AgentContext.custom for max_tokens override.

Traits§

Tool
A tool that an agent can invoke.

Functions§

parse_args
Parse JSON args into a typed struct.