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: Since oxi-sdk 0.19+, AgentLoop::run() produces a Send future.
We call it directly from async context without spawn_blocking.
Structs§
- Agent
Runtime - Runtime that wraps an oxi-agent
AgentLoopfor executing Seeds. - Agent
Runtime Config - Configuration for creating AgentRuntime instances.