Expand description
Runtime library for compiled Sage programs.
This crate provides the types and functions that generated Rust code depends on. It handles:
- Agent spawning and lifecycle
- Message passing between agents
- LLM inference calls
- RFC-0011: Tool execution (Http, Fs, etc.)
- Error handling
Re-exports§
pub use tools::HttpClient;pub use tools::HttpResponse;
Modules§
Structs§
- Agent
Context - Context provided to agent handlers.
- Agent
Handle - Handle to a spawned agent.
- LlmClient
- Client for making LLM inference calls.
Enums§
- Error
Kind - RFC-0007: Error kind classification for Sage errors.
- Sage
Error - Error type for Sage runtime errors.
Functions§
- spawn
- Spawn an agent and return a handle to it.
Type Aliases§
- Sage
Result - Result type for Sage operations.