Skip to main content

sgr_agent_core/
lib.rs

1//! sgr-agent-core — minimal core types for sgr-agent ecosystem.
2//!
3//! Contains: Tool trait, FileBackend trait, ToolDef, AgentContext, JSON Schema helpers.
4//! No heavy deps — just serde, schemars, async-trait, thiserror, anyhow.
5
6pub mod agent_tool;
7pub mod backend;
8pub mod context;
9pub mod schema;
10pub mod tool;
11
12// Re-exports for convenience
13pub use agent_tool::{ContextModifier, Tool, ToolError, ToolOutput, parse_args};
14pub use backend::FileBackend;
15pub use context::{AgentContext, AgentState, MAX_TOKENS_OVERRIDE_KEY};
16pub use schema::{json_schema_for, make_openai_strict, response_schema_for, to_gemini_parameters};
17pub use tool::{ToolDef, tool};