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
- Error handling
Modules§
- prelude
- Prelude for generated code.
Structs§
- Agent
Context - Context provided to agent handlers.
- Agent
Handle - Handle to a spawned agent.
- LlmClient
- Client for making LLM inference calls.
Enums§
- 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.