Expand description
oxi-agent: Agent runtime for oxi
Provides the core agent loop, tool execution, state management, and streaming event pipeline for the oxi coding agent.
Re-exports§
pub use agent::Agent;pub use agent::ProviderResolver;pub use agent_definition::AgentDefinition;pub use agent_definition::AgentDiscovery;pub use agent_definition::AgentScope;pub use agent_definition::DefaultContext;pub use agent_definition::current_subagent_depth;pub use agent_definition::max_subagent_depth;pub use agent_definition::validate_agent_name;pub use agent_loop::AgentLoop;pub use agent_loop::AgentLoopConfig;pub use config::AfterToolCallContext;pub use config::AfterToolCallResult;pub use config::AgentConfig;pub use config::AgentHooks;pub use config::BeforeToolCallContext;pub use config::BeforeToolCallResult;pub use config::ShouldStopAfterTurnContext;pub use config::ToolExecutionMode;pub use error::AgentError;pub use events::AgentEvent;pub use events::ToolCallContext;pub use events::VisitReason;pub use tools::browse::BrowseProgress;pub use tools::browse::BrowseProgressCallback;pub use agent_loop::config::CompactionHook;pub use compaction::CompactedContext;pub use compaction::CompactionEvent;pub use recovery::CircuitBreaker;pub use recovery::CircuitOpenErrorLocal;pub use state::AgentState;pub use structured_output::OutputMode;pub use structured_output::StructuredOutput;pub use structured_output::StructuredOutputError;pub use mcp::McpConfig;pub use mcp::McpManager;pub use mcp::McpTool;pub use tools::ask::AskBridge;pub use tools::ask::AskTool;pub use tools::commit::CommitGroup;pub use tools::commit::CommitTool;pub use tools::commit::CommitType;pub use tools::commit::ConventionalAnalysis;pub use tools::commit::ConventionalDetail;pub use tools::commit::NumstatEntry;pub use tools::commit::ScopeCandidate;pub use tools::context7::Context7QueryDocsTool;pub use tools::context7::Context7ResolveLibraryIdTool;pub use tools::github::GitHubTool;pub use tools::github_search::GitHubSearchTool;pub use tools::memory_edit::MemoryEditTool;pub use tools::memory_recall::MemoryRecallTool;pub use tools::memory_reflect::MemoryReflectTool;pub use tools::memory_retain::MemoryRetainTool;pub use tools::search_cache::GetSearchResultsTool;pub use tools::search_cache::SearchCache;pub use tools::subagent::SubagentTool;pub use tools::web_search::WebSearchTool;pub use tools::AgentTool;pub use tools::AgentToolResult;pub use tools::BashTool;pub use tools::EditTool;pub use tools::FindTool;pub use tools::GrepTool;pub use tools::LsTool;pub use tools::ReadTool;pub use tools::ToolContext;pub use tools::ToolError;pub use tools::ToolRegistry;pub use tools::WriteTool;pub use tools::TodoStateProvider;pub use tools::todo::InitListEntry;pub use tools::todo::TodoCompletionTransition;pub use tools::todo::TodoItem;pub use tools::todo::TodoOp;pub use tools::todo::TodoPhase;pub use tools::todo::TodoStatus;pub use tools::todo::TodoTool;pub use tools::todo::TodoUpdateResult;pub use tools::AgentHubStatus;pub use tools::AgentInfo;pub use tools::AgentKind;pub use tools::AgentPoolProvider;pub use tools::LspAction;pub use tools::LspProvider;
Modules§
- agent
- Core agent implementation.
- agent_
definition - Agent definition file parsing and discovery. Agent definition file parsing and validation.
- agent_
loop - Agent loop – the main request/response cycle driver. Agent loop — the main request/response cycle driver.
- compaction
- Context compaction strategies and data types.
- config
- Agent configuration types.
- error
- Error types for agent operations. Error types for oxi-agent
- events
- Event types emitted during the agent loop.
- mcp
- MCP (Model Context Protocol) integration. MCP (Model Context Protocol) integration.
- model_
id - Model identifier constants and helpers.
- prelude
- Standard imports for oxi-agent usage.
- recovery
- Fault-recovery primitives (circuit breaker, fallback chains). Fault-recovery primitives — re-exported from oxi-ai.
- state
- Agent state machine and shared mutable state.
- stream_
retry - Shared streaming retry logic.
- structured_
output - Structured output extraction and validation.
- tools
- Built-in tool implementations and registry.
- types
- Shared type aliases and helpers.
Structs§
- Circuit
Breaker Config - Fault-recovery primitives for resilient agent execution. Configuration parameters for a provider circuit breaker.
- Circuit
Open Error From Ai - Fault-recovery primitives for resilient agent execution. Error returned when attempting to make a request while the circuit is open.
- Compaction
Manager - Context manager that handles compaction automatically
- Fallback
Chain - Fault-recovery primitives for resilient agent execution. An ordered chain of models for sequential fallback on failure.
- Partial
Response - Fault-recovery primitives for resilient agent execution. Partial response accumulator.
Enums§
- Compaction
Strategy - Compaction strategy determining when to compact