Expand description
Tool definitions, calls, and the Tool trait.
Mirrors AgentTool / AgentToolResult from pi-agent-core.
Structs§
- Invoke
Context - Per-invocation context handed to a tool’s
Tool::execute. - Parameter
Schema - JSON-Schema-ish parameter description for a tool.
- Tool
Call - A tool call extracted from a model response.
- Tool
Definition - A tool’s static definition (name, schema, description).
- Tool
Result - A tool’s result returned to the model.
Traits§
- Tool
- The trait every tool implements.
Functions§
- validate_
input - Validate
inputagainst a tool’sparametersschema.
Type Aliases§
- Json
Value - A JSON value, aliased for ergonomic imports.