sgr_agent/agent_tool.rs
1//! Tool trait — re-exported from sgr-agent-core.
2//!
3//! Implement `Tool` for each capability you want to expose to the agent.
4//! Arguments arrive as `serde_json::Value`; use `parse_args` helper for typed deserialization.
5
6pub use sgr_agent_core::agent_tool::{ContextModifier, Tool, ToolError, ToolOutput, parse_args};
7
8// Re-export here for backwards compat (originally in agent_tool, moved to context in core)
9pub use sgr_agent_core::context::MAX_TOKENS_OVERRIDE_KEY;