sage_runtime/lib.rs
1//! Runtime library for compiled Sage programs.
2//!
3//! This crate provides the types and functions that generated Rust code
4//! depends on. It handles:
5//!
6//! - Agent spawning and lifecycle
7//! - Message passing between agents
8//! - LLM inference calls
9//! - Error handling
10
11#![forbid(unsafe_code)]
12
13mod agent;
14mod error;
15mod llm;
16
17pub use agent::{spawn, AgentContext, AgentHandle};
18pub use error::{SageError, SageResult};
19pub use llm::LlmClient;
20
21/// Prelude for generated code.
22pub mod prelude {
23 pub use crate::agent::{spawn, AgentContext, AgentHandle};
24 pub use crate::error::{SageError, SageResult};
25 pub use crate::llm::LlmClient;
26}