Expand description
sgr-agent-core — minimal core types for sgr-agent ecosystem.
Contains: Tool trait, FileBackend trait, ToolDef, AgentContext, JSON Schema helpers. No heavy deps — just serde, schemars, async-trait, thiserror, anyhow.
Re-exports§
pub use agent_tool::ContextModifier;pub use agent_tool::Tool;pub use agent_tool::ToolError;pub use agent_tool::ToolOutput;pub use agent_tool::parse_args;pub use backend::FileBackend;pub use context::AgentContext;pub use context::AgentState;pub use context::MAX_TOKENS_OVERRIDE_KEY;pub use schema::json_schema_for;pub use schema::make_openai_strict;pub use schema::response_schema_for;pub use schema::to_gemini_parameters;pub use tool::ToolDef;pub use tool::tool;
Modules§
- agent_
tool - Tool trait — the core abstraction for agent tools.
- backend
- FileBackend trait — the abstraction over filesystem operations.
- context
- Agent execution context — shared state passed to tools during execution.
- schema
- JSON Schema generation from Rust types via
schemars. - tool
- Tool definitions — typed Rust structs → function declarations for LLM APIs.