Expand description
Agent runtime: wraps oxi-agent’s AgentLoop for use by the kernel.
The AgentRuntime creates an oxi-agent AgentLoop session, configures it
with a custom ToolRegistry based on the agent’s CSpace (capability space),
and executes a Seed’s goal through the multi-turn LLM tool-calling loop.
§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 - Runs the agent loop with the assembled tool set
Note: AgentLoop::run() produces a !Send future (the internal tool
execution uses Box<dyn Future> without Send). We keep spawn_blocking
to stay compatible with the Supervisor trait’s Send bounds.
Structs§
- Agent
Runtime - Runtime that wraps an oxi-agent
AgentLoopfor executing Seeds. - Agent
Runtime Config - Configuration for creating AgentRuntime instances.