Skip to main content

Crate sgr_agent_core

Crate sgr_agent_core 

Source
Expand description

sgr-agent-core — minimal core types for sgr-agent ecosystem.

Contains: Tool trait, ToolDef, AgentContext, JSON Schema helpers. No heavy deps — just serde, schemars, async-trait, thiserror.

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 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.
context
Agent execution context — state and domain-specific data.
schema
JSON Schema generation from Rust types via schemars.
tool
Tool definitions — typed Rust structs → function declarations for LLM APIs.