Skip to main content

Crate sage_runtime

Crate sage_runtime 

Source
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§

AgentContext
Context provided to agent handlers.
AgentHandle
Handle to a spawned agent.
LlmClient
Client for making LLM inference calls.

Enums§

SageError
Error type for Sage runtime errors.

Functions§

spawn
Spawn an agent and return a handle to it.

Type Aliases§

SageResult
Result type for Sage operations.