1pub mod engine;
2pub mod image_ops;
3pub mod llm;
4pub mod tool;
5pub mod types;
6
7pub use llm_trait;
9
10pub mod prelude {
14 pub use crate::engine::{
15 AgentBuilder, AgentRuntime, AgentSession, AllowAllApprovalHandler, DenyAllApprovalHandler,
16 };
17 pub use crate::llm::ChatRequest;
18 pub use crate::llm::LlmProvider as LlmProviderTrait;
19 pub use crate::llm::{ChatResponse, ChatStream};
20 pub use crate::tool::{
21 AutoContinueTool, Content, DenyAllToolPolicy, ExecClock, ExecPauseGuard, Tool, ToolContext,
22 ToolDecision, ToolMetadata, ToolPolicy, ToolRegistry, TypedTool,
23 };
24 pub use crate::types::{
25 AgentConfig, AgentError, AgentResult, ChatMessage, FinishReason, Language, Message,
26 MessageRole, RunOutcome, RuntimeEvent, SessionId, TurnContext, UserEvent,
27 };
28}
29
30pub use engine::{
34 AgentBuilder, AgentRuntime, AgentSession, DefaultPipeline, InMemorySessionStore, QueueMode,
35 SessionId, SessionStore, ToolExecutionPipeline,
36};
37
38pub use llm::{ReasoningConfig, ReasoningEffort, StreamChunk, UsageInfo};
42
43pub use engine::{
47 AllowAllApprovalHandler, ApprovalDecision, ApprovalHandler, ApprovalRequest, CompactionKind,
48 CompactionOutcome, ConsecutiveFailureRecovery, ContextCompaction, ContextWindowManager,
49 DenyAllApprovalHandler, GuardCtx, GuardDecision, InvalidArgsAction, InvalidArgsCtx,
50 InvalidArgsHandler, Middleware, NoopGuard, NoticeHandle, PostLlmCtx, PreLlmCtx, ProviderHandle,
51 ReactLoopGuard, ReissueMissingFields, RetryOnError, RiskLevel, StopOnError, StreamIntegrity,
52 ToolEnforcementConfig, ToolEnforcementMiddleware, ToolErrorAction, ToolErrorRecovery,
53 TurnFactMiddleware, TurnToolLimitMiddleware, UserMessageCtx, estimate_messages_tokens,
54 first_system_prompt,
55};
56
57pub use tool::{
61 ActivateTool, ActivationContext, AutoContinueTool, Content, DeferredTool, DenyAllToolPolicy,
62 ExecClock, ExecPauseGuard, Tool, ToolActivation, ToolContext, ToolDecision, ToolExposure,
63 ToolMetadata, ToolPolicy, ToolRegistry, TypedTool, UpdatePlanTool,
64};
65
66pub use types::{RuntimeEvent, UserEvent};
70
71pub use engine::{
75 ActionBackend, ActionExecutor, DEFAULT_INTERACT_TIMEOUT, ExecCtx, ExecError,
76 INTERRUPTED_SUMMARY, InteractionChannel, InteractionError, LlmTurnResult, ParseError,
77 ParseOutcome, SessionError, SessionHandle,
78};
79pub use types::{
80 Action, ActionFormat, ActionOutcome, AskAnswer, AskOption, BatchStatus, Observation,
81 ObservationEvent,
82};
83
84pub use types::{AgentError, AgentResult, ErrorKind};
88
89pub use types::{
93 AgentConfig, ChatMessage, CheckpointData, CheckpointStep, FinishReason, ImageAttachment,
94 ImageDetail, Language, Message, MessageRole, PlanItem, PlanStepStatus, ResponseFormat,
95 RetryConfig, RunOutcome, RunState, SafetyConfig, SessionConfig, SessionIdGenerator,
96 ToolCallMessage, ToolResultData, TurnContext, UpdatePlanArgs, shared_session_ids,
97};