Expand description
Agent runtime: wraps oxi-sdk’s Agent for Seed execution.
The AgentRuntime uses OxiosEngine.oxi().agent() (AgentBuilder pattern)
to construct agents with full middleware, observability, and security
integration from oxi-sdk 0.24.0.
§Architecture
All tool access goes through KernelHandle — the single syscall-table-like
path for agent OS control. The runtime:
- Resolves the agent’s CSpace from persona/role/hint
- Registers tools via
register_tools_from_cspace() - Optionally queries
ToolRetrieverfor semantic capability hints - Builds an
AgentviaAgentBuilderwith middleware pipeline - Runs via
Agent::run_streaming()for real-time event processing
§oxi-sdk 0.23.0 Integration
Uses AgentBuilder for agent construction with:
.with_rate_limit()— tool call rate limiting.with_token_budget()— per-execution token caps.tracer()/.cost_tracker()— observability hooks
§Routing integration (RFC-011)
Model usage events (AgentEvent::Usage) are recorded to the shared
RoutingStats so the Web dashboard can display per-model call counts
and estimated costs.
Structs§
- Agent
Runtime - Runtime that wraps an oxi-sdk
Agentfor executing Seeds. - Agent
Runtime Config - Configuration for creating AgentRuntime instances.