1#![warn(missing_docs)]
2pub mod adapter;
28pub mod adaptive_rag;
29pub mod approval;
33pub mod executor;
34pub use executor as base;
36pub mod builder;
37pub mod cache;
38pub mod crag;
39pub mod deep_research;
40pub mod function_calling;
42pub mod handoffs;
43pub mod hooks;
44pub mod memory_extractor;
47pub mod metrics;
48pub mod orchestrator;
49pub use orchestrator as orchestration;
51pub mod plan_execute;
52pub mod policy;
53pub mod react;
54pub mod resume;
60pub mod retry;
61pub mod streaming;
62mod structured;
63pub mod task;
64pub mod types;
65
66pub use adapter::{AgentEventRunnable, AgentRunnable, OrchestratorRunnable};
67pub use adaptive_rag::{AdaptiveRAG, AdaptiveRAGError, AdaptiveRAGResult, RagDecision};
68pub use approval::{AllowAll, ApprovalDecision, ApprovalHandler};
69pub use builder::AgentBuilder;
70pub use cache::{MemoryCache, ResponseCache};
71pub use crag::{CRAGError, CRAGResult, CorrectiveRAGAgent};
72pub use deep_research::{Citation, DeepResearchAgent, ResearchError, ResearchReport};
73pub use executor::{
74 estimate_step_tokens, AgentError, AgentExecutor, BaseAgent, BudgetConfig, BudgetExceeded,
75 CompactionConfig, CompactionStrategy, CompactionTrigger,
76};
77pub use function_calling::FunctionCallingAgent;
78pub use handoffs::HandoffManager;
79pub use hooks::{
80 AgentHook, ApprovalHook, CompletionAction, CompletionContext, CompletionResult,
81 ContentFilterHook, ErrorAction, HookError, LoggingHook, PromptInjectionHook, StreamAction,
82 TokenBudgetHook, ToolCallAction, ToolCallContext, ToolResultContext,
83};
84pub use memory_extractor::LlmMemoryExtractor;
85pub use metrics::AgentMetrics;
86pub use orchestrator::{
87 parse_review_verdict, review_envelope, task_adapter, FanOutFanIn, Orchestrator,
88 ReviewOrchestrator, ReviewVerdict, RunContext, SequentialPipeline, TaskAdapter,
89};
90pub use plan_execute::{PlanExecuteAgent, PlanExecuteError};
91pub use policy::{ToolPolicy, ToolRisk};
92pub use react::ReActAgent;
93pub use resume::{FileResumeStore, MemoryResumeStore, PendingApproval, ResumeError, ResumeStore};
94pub use retry::RetryConfig;
95pub use streaming::{
98 agent_sse_frames, encode_sse_frame, sse_event_name, sse_event_payload, AgentEventStream,
99 AgentSseRequest, AgentStreamEvent, SseFrame, SseOptions, StreamingFunctionCallingAgent,
100 ToolCallState,
101};
102#[cfg(feature = "sse-server")]
103pub use streaming::{
104 agent_sse_get_handler, agent_sse_handler, agent_sse_router, agent_sse_router_with,
105 serve_agent_sse, serve_agent_sse_on, AgentSseQuery, AgentSseServerConfig, AgentSseState,
106 AgentStreamFactory, AgentStreamFuture, DEFAULT_SSE_HEARTBEAT,
107};
108pub use task::AgentTask;
109pub use types::{AgentAction, AgentFinish, AgentOutput, AgentStep, ToolInput};