ai-agents 1.0.0-rc.10

A Rust framework for building AI agents from YAML specifications with trait-based extensibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
//! # AI Agents Framework
//!
//! **One YAML = Any Agent.** A Rust framework for building AI agents from a single YAML
//! specification. No code required for common use cases.
//!
//! # Quick Start
//!
//! ### From YAML
//!
//! ```rust,ignore
//! use ai_agents::{Agent, AgentBuilder};
//!
//! #[tokio::main]
//! async fn main() -> ai_agents::Result<()> {
//!     let agent = AgentBuilder::from_yaml_file("agent.yaml")?
//!         .auto_configure_llms()?
//!         .build()?;
//!
//!     let response = agent.chat("Hello!").await?;
//!     println!("{}", response.content);
//!     Ok(())
//! }
//! ```
//!
//! ### From Rust API
//!
//! ```rust,ignore
//! use ai_agents::{Agent, AgentBuilder, UnifiedLLMProvider, ProviderType};
//! use std::sync::Arc;
//!
//! #[tokio::main]
//! async fn main() -> ai_agents::Result<()> {
//!     let llm = UnifiedLLMProvider::from_env(ProviderType::OpenAI, "gpt-4.1-nano")?;
//!
//!     let agent = AgentBuilder::new()
//!         .system_prompt("You are a helpful assistant.")
//!         .llm(Arc::new(llm))
//!         .build()?;
//!
//!     let response = agent.chat("Hello!").await?;
//!     println!("{}", response.content);
//!     Ok(())
//! }
//! ```
//!
//! # Modules
//!
//! | Module | Description |
//! |--------|-------------|
//! | [`agent`] | Agent builder, runtime, streaming, and response types |
//! | [`llm`] | LLM providers and registry |
//! | [`memory`] | Conversation memory with compression and token budgeting |
//! | [`tools`] | Built-in tools and extensible tool registry |
//! | [`state`] | Hierarchical state machine with LLM-evaluated transitions |
//! | [`context`] | Dynamic context injection from multiple sources |
//! | [`skill`] | Reusable workflows with LLM-based intent routing |
//! | [`hitl`] | Human-in-the-loop approval system |
//! | [`reasoning`] | Chain-of-thought, ReAct, plan-and-execute modes |
//! | [`disambiguation`] | Intent ambiguity detection and clarification |
//! | [`persistence`] | SQLite, Redis, and file storage backends |
//! | [`process`] | Input/output processing pipeline |
//! | [`recovery`] | Error recovery with retry and fallback strategies |
//! | [`hooks`] | Lifecycle event hooks for logging, metrics, monitoring |
//! | [`spec`] | YAML agent specification types |
//! | [`template`] | Template loading with Jinja2 rendering and inheritance |
//! | [`spawner`] | Dynamic agent spawning, registry, and inter-agent messaging |
//!
//! # Feature Flags
//!
//! | Flag | Description |
//! |------|-------------|
//! | `sqlite` | SQLite storage backend |
//! | `redis-storage` | Redis storage backend |
//! | `http-context` | HTTP context source for dynamic context injection |
//! | `full-storage` | All storage backends (`sqlite` + `redis-storage`) |
//! | `full` | All optional features enabled |

pub mod agent {
    pub use ai_agents_runtime::{
        Agent, AgentBuilder, AgentInfo, AgentResponse, ParallelToolsConfig, RuntimeAgent,
        StreamChunk, StreamingConfig, ToolCall,
    };
}

pub mod context {
    pub use ai_agents_context::{
        BuiltinSource, ContextManager, ContextProvider, ContextSource, RefreshPolicy,
        TemplateRenderer,
    };
}

pub mod error {
    pub use ai_agents_core::{AgentError, Result};
}

pub mod dot_path {
    pub use ai_agents_core::{get_dot_path, get_dot_path_from_map, set_dot_path};
}

pub mod hitl {
    pub use ai_agents_hitl::{
        ApprovalCondition, ApprovalHandler, ApprovalMessage, ApprovalRequest, ApprovalResult,
        ApprovalTrigger, AutoApproveHandler, CallbackHandler, HITLCheckResult, HITLConfig,
        HITLEngine, LlmGenerateConfig, LocalizedHandler, MessageLanguageConfig,
        MessageLanguageStrategy, MessageResolver, RejectAllHandler, StateApprovalConfig,
        StateApprovalTrigger, TimeoutAction, ToolApprovalConfig, create_handler,
        create_localized_handler, resolve_best_language, resolve_tool_message,
    };
}

pub mod hooks {
    pub use ai_agents_hooks::{AgentHooks, CompositeHooks, HookTimer, LoggingHooks, NoopHooks};
}

pub mod llm {
    pub use ai_agents_core::{
        ChatMessage, FinishReason, LLMCapability, LLMChunk, LLMConfig, LLMError, LLMFeature,
        LLMProvider, LLMResponse, Role, TaskContext, TokenUsage, ToolSelection,
    };
    pub use ai_agents_llm::LLMRegistry;

    pub mod providers {
        pub use ai_agents_llm::providers::{ProviderBuilder, ProviderType, UnifiedLLMProvider};
    }
}

pub mod memory {
    use std::sync::Arc;

    use ai_agents_core::LLMProvider;

    pub use ai_agents_core::MemorySnapshot;
    pub use ai_agents_memory::{
        CompactingMemory, CompactingMemoryConfig, CompressResult, CompressionEvent,
        ConversationContext, EvictionReason, FactExtractedEvent, InMemoryStore, LLMSummarizer,
        Memory, MemoryBudgetEvent, MemoryBudgetState, MemoryCompressEvent, MemoryEvictEvent,
        MemoryTokenBudget, NoopSummarizer, OverflowStrategy, Summarizer, TokenAllocation,
        estimate_message_tokens, estimate_tokens,
    };
    pub use ai_agents_runtime::spec::MemoryConfig;

    pub fn create_memory(memory_type: &str, max_messages: usize) -> Arc<dyn Memory> {
        match memory_type {
            "in-memory" => Arc::new(InMemoryStore::new(max_messages)),
            "compacting" => {
                let summarizer: Arc<dyn Summarizer> = Arc::new(NoopSummarizer);
                Arc::new(CompactingMemory::with_default_config(summarizer))
            }
            _ => Arc::new(InMemoryStore::new(max_messages)),
        }
    }

    pub fn create_memory_from_config(config: &MemoryConfig) -> Arc<dyn Memory> {
        if config.is_compacting() {
            let summarizer: Arc<dyn Summarizer> = Arc::new(NoopSummarizer);
            let compacting_config = config.to_compacting_config();
            Arc::new(CompactingMemory::new(summarizer, compacting_config))
        } else {
            Arc::new(InMemoryStore::new(config.max_messages))
        }
    }

    pub fn create_memory_from_config_with_llm(
        config: &MemoryConfig,
        llm: Option<Arc<dyn LLMProvider>>,
    ) -> Arc<dyn Memory> {
        if config.is_compacting() {
            let summarizer: Arc<dyn Summarizer> = match llm {
                Some(provider) => Arc::new(LLMSummarizer::new(provider)),
                None => Arc::new(NoopSummarizer),
            };
            let compacting_config = config.to_compacting_config();
            Arc::new(CompactingMemory::new(summarizer, compacting_config))
        } else {
            Arc::new(InMemoryStore::new(config.max_messages))
        }
    }

    pub fn create_compacting_memory(
        summarizer: Arc<dyn Summarizer>,
        config: CompactingMemoryConfig,
    ) -> Arc<dyn Memory> {
        Arc::new(CompactingMemory::new(summarizer, config))
    }

    pub fn create_compacting_memory_from_config(
        summarizer: Arc<dyn Summarizer>,
        config: &MemoryConfig,
    ) -> Arc<dyn Memory> {
        let compacting_config = config.to_compacting_config();
        Arc::new(CompactingMemory::new(summarizer, compacting_config))
    }
}

pub mod persistence {
    use std::sync::Arc;

    pub use ai_agents_core::{
        AgentSnapshot, AgentStorage, MemorySnapshot, Result, SpawnedAgentEntry,
    };
    #[cfg(feature = "sqlite")]
    pub use ai_agents_storage::SqliteStorage;
    pub use ai_agents_storage::{
        FileStorage, SessionInfo, SessionMetadata, SessionOrderBy, SessionQuery,
    };
    #[cfg(feature = "redis-storage")]
    pub use ai_agents_storage::{RedisSessionMeta, RedisStorage};

    pub async fn create_storage(
        config: &crate::spec::StorageConfig,
    ) -> Result<Option<Arc<dyn AgentStorage>>> {
        let storage_config = match config {
            crate::spec::StorageConfig::None => ai_agents_storage::StorageConfig::None,
            crate::spec::StorageConfig::File(fc) => ai_agents_storage::StorageConfig::File {
                path: fc.path.clone(),
            },
            crate::spec::StorageConfig::Sqlite(sc) => ai_agents_storage::StorageConfig::Sqlite {
                path: sc.path.clone(),
            },
            crate::spec::StorageConfig::Redis(rc) => ai_agents_storage::StorageConfig::Redis {
                url: rc.url.clone(),
                prefix: rc.prefix.clone(),
                ttl_seconds: rc.ttl_seconds,
            },
        };

        ai_agents_storage::create_storage(&storage_config).await
    }
}

pub mod process {
    pub use ai_agents_process::{ProcessConfig, ProcessData, ProcessProcessor};
}

pub mod recovery {
    pub use ai_agents_recovery::{
        ByRoleFilter, ErrorRecoveryConfig, FilterConfig, KeepRecentFilter, MessageFilter,
        RecoveryManager, SkipPatternFilter,
    };
}

pub mod skill {
    pub use ai_agents_skills::{
        SkillContext, SkillDefinition, SkillExecutor, SkillLoader, SkillRef, SkillRouter,
        SkillStep, StepResult,
    };
}

pub mod spec {
    pub use ai_agents_runtime::spec::{
        AgentSpec, BuiltinProviderConfig, CliHitlMetadata, CliHitlStyle, CliMetadata,
        CliPromptStyle, FileStorageConfig, LLMConfig, LLMSelector, MemoryConfig,
        ProviderPolicyConfig, ProviderSecurityConfig, ProvidersConfig, RedisStorageConfig,
        SpawnerConfig, SqliteStorageConfig, StorageConfig, StructuredToolEntry, ToolAliasesConfig,
        ToolConfig, ToolEntry, ToolPolicyConfig, YamlProviderConfig, YamlToolConfig,
    };
}

pub mod state {
    pub use ai_agents_state::{
        CompareOp, ContextExtractor, ContextMatcher, DelegateContextMode, GuardConditions,
        GuardOnlyEvaluator, HandoffStateConfig, LLMTransitionEvaluator, PipelineStageEntry,
        PipelineStateConfig, PromptMode, StateAction, StateConfig, StateDefinition, StateMachine,
        StateMachineSnapshot, StateMatcher, StateTransitionEvent, TimeMatcher, ToolCondition,
        ToolRef, Transition, TransitionContext, TransitionEvaluator, TransitionGuard,
    };
}

pub mod template {
    use std::collections::HashMap;
    use std::path::PathBuf;

    use ai_agents_template::TemplateLoader as InnerTemplateLoader;
    pub use ai_agents_template::{TemplateInheritance, TemplateRenderer};

    use crate::error::Result;
    use crate::spec::AgentSpec;

    pub struct TemplateLoader {
        inner: InnerTemplateLoader,
    }

    impl TemplateLoader {
        pub fn new() -> Self {
            Self {
                inner: InnerTemplateLoader::new(),
            }
        }

        pub fn add_search_path(&mut self, path: impl Into<PathBuf>) -> &mut Self {
            self.inner.add_search_path(path);
            self
        }

        pub fn set_variable(
            &mut self,
            key: impl Into<String>,
            value: impl Into<String>,
        ) -> &mut Self {
            self.inner.set_variable(key, value);
            self
        }

        pub fn set_variables(&mut self, vars: HashMap<String, String>) -> &mut Self {
            self.inner.set_variables(vars);
            self
        }

        pub fn get_variable(&self, key: &str) -> Option<&str> {
            self.inner.get_variable(key)
        }

        pub fn load_template(&self, name: &str) -> Result<String> {
            self.inner.load_template(name)
        }

        pub fn template_exists(&self, name: &str) -> bool {
            self.inner.template_exists(name)
        }

        pub fn search_paths(&self) -> &[PathBuf] {
            self.inner.search_paths()
        }

        pub fn variables(&self) -> &HashMap<String, String> {
            self.inner.variables()
        }

        pub fn load_and_parse(&self, template_name: &str) -> Result<AgentSpec> {
            let renderer = TemplateRenderer::new();
            let variables = self.variables();

            let load_and_render = |name: &str| -> Result<String> {
                let content = self.load_template(name)?;
                renderer.render(&content, variables)
            };

            let rendered_root = load_and_render(template_name)?;
            let processed = TemplateInheritance::process(&rendered_root, load_and_render)?;
            let spec: AgentSpec = serde_yaml::from_str(&processed)?;
            spec.validate()?;

            Ok(spec)
        }
    }

    impl Default for TemplateLoader {
        fn default() -> Self {
            Self::new()
        }
    }

    impl AsRef<InnerTemplateLoader> for TemplateLoader {
        fn as_ref(&self) -> &InnerTemplateLoader {
            &self.inner
        }
    }

    impl From<InnerTemplateLoader> for TemplateLoader {
        fn from(inner: InnerTemplateLoader) -> Self {
            Self { inner }
        }
    }
}

pub mod persona {
    pub use ai_agents_persona::{
        EvolutionConfig, PERSONA_CHANGE_METADATA_KEY, PersonaChange, PersonaConfig,
        PersonaEvolveTool, PersonaGoals, PersonaIdentity, PersonaManager, PersonaRenderResult,
        PersonaSecret, PersonaSnapshot, PersonaTemplateRef, PersonaTemplateRegistry, PersonaTraits,
        SecretRevealCondition, VALID_EVOLVE_PATHS,
    };
}

pub mod reasoning {
    pub use ai_agents_reasoning::{
        CriterionResult, EvaluationResult, Plan, PlanAction, PlanAvailableActions,
        PlanReflectionConfig, PlanStatus, PlanStep, PlanningConfig, ReasoningConfig,
        ReasoningMetadata, ReasoningMode, ReasoningOutput, ReflectionAttempt, ReflectionConfig,
        ReflectionMetadata, ReflectionMode, StepFailureAction, StepStatus, StringOrList,
    };
}

pub mod disambiguation {
    pub use ai_agents_disambiguation::{
        AmbiguityAspect, AmbiguityDetectionResult, AmbiguityDetector, AmbiguityType, CacheConfig,
        ClarificationConfig, ClarificationGenerator, ClarificationOption, ClarificationParseResult,
        ClarificationQuestion, ClarificationStyle, ContextConfig, DetectionConfig,
        DisambiguationConfig, DisambiguationContext, DisambiguationManager, DisambiguationResult,
        MaxAttemptsAction, SkillDisambiguationOverride, SkipCondition, StateDisambiguationOverride,
    };
}

pub mod tool_security {
    pub use ai_agents_tools::{
        SecurityCheckResult, ToolPolicyConfig, ToolSecurityConfig, ToolSecurityEngine,
    };
}

pub mod tools {
    pub use ai_agents_core::{Tool, ToolInfo, ToolResult};
    pub use ai_agents_tools::{
        CalculatorTool, ConditionEvaluator, DateTimeTool, EchoTool, EvaluationContext, FileTool,
        JsonTool, LLMGetter, MathTool, ProviderHealth, RandomTool, SimpleLLMGetter, TemplateTool,
        TextTool, ToolAliases, ToolCallRecord, ToolContext, ToolDescriptor, ToolMetadata,
        ToolProvider, ToolProviderError, ToolProviderType, ToolRegistry, TrustLevel,
        create_builtin_registry,
    };
    pub use ai_agents_tools::{HttpTool, generate_schema};
}

/// MCP (Model Context Protocol) integration types.
pub mod mcp {
    pub use ai_agents_tools::mcp::{
        MCPViewConfig, MCPViewTool, MCPWrapperConfig, MCPWrapperSecurity, MCPWrapperTool,
        MCPWrapperTransport,
    };
}

/// Dynamic agent spawning, registry, and inter-agent messaging.
pub mod spawner {
    pub use ai_agents_runtime::spawner::{
        AgentRegistry, AgentSpawner, GenerateAgentTool, ListAgentsTool, NamespacedStorage,
        RegistryHooks, RemoveAgentTool, ResolvedTemplate, SendMessageTool, SpawnedAgent,
        SpawnedAgentInfo, auto_configure_spawner, configure_spawner_tools, resolve_templates,
        spawner_from_config,
    };
}

// Multi-agent orchestration patterns and tool wrappers.
pub mod orchestration {
    pub use ai_agents_runtime::orchestration::context::prepare_delegate_input;
    pub use ai_agents_runtime::orchestration::tools::{
        ConcurrentAskTool, GroupDiscussionTool, HandoffConversationTool, PipelineProcessTool,
        RouteToAgentTool, configure_orchestration_tools,
    };
    pub use ai_agents_runtime::orchestration::types::{
        AgentResult, ChatTurn, ConcurrentResult, GroupChatResult, HandoffEvent, HandoffResult,
        PipelineResult, PipelineStage, RouteResult, RoutingMethod, StageOutput,
    };
    pub use ai_agents_runtime::orchestration::{concurrent, group_chat, handoff, pipeline, route};
}

// Top-level re-exports (legacy interface)
pub use agent::{
    Agent, AgentBuilder, AgentInfo, AgentResponse, ParallelToolsConfig, RuntimeAgent, StreamChunk,
    StreamingConfig,
};
pub use error::{AgentError, Result};
pub use memory::{
    CompactingMemory, CompactingMemoryConfig, CompressResult, CompressionEvent,
    ConversationContext, EvictionReason, FactExtractedEvent, InMemoryStore, LLMSummarizer, Memory,
    MemoryBudgetEvent, MemoryBudgetState, MemoryCompressEvent, MemoryEvictEvent, MemoryTokenBudget,
    NoopSummarizer, OverflowStrategy, Summarizer, TokenAllocation, create_memory,
    create_memory_from_config, create_memory_from_config_with_llm, estimate_message_tokens,
    estimate_tokens,
};
pub use skill::{SkillDefinition, SkillExecutor, SkillLoader, SkillRef, SkillRouter, SkillStep};
pub use spec::{
    AgentSpec, BuiltinProviderConfig, FileStorageConfig, LLMConfig, LLMSelector, MemoryConfig,
    ProviderPolicyConfig, ProviderSecurityConfig, ProvidersConfig, RedisStorageConfig,
    SqliteStorageConfig, StorageConfig, ToolAliasesConfig, ToolConfig,
    ToolPolicyConfig as SpecToolPolicyConfig, YamlProviderConfig, YamlToolConfig,
};
pub use template::TemplateLoader;
pub use tools::HttpTool;
pub use tools::{
    CalculatorTool, DateTimeTool, EchoTool, FileTool, JsonTool, MathTool, RandomTool, TemplateTool,
    TextTool, Tool, ToolRegistry, ToolResult, create_builtin_registry,
};

pub use llm::providers::{ProviderType, ProviderType as LLMProviderType, UnifiedLLMProvider};
pub use llm::{ChatMessage, LLMProvider, LLMRegistry, LLMResponse, Role};

pub use process::{ProcessConfig, ProcessData, ProcessProcessor};
pub use recovery::{
    ByRoleFilter, ErrorRecoveryConfig, FilterConfig, KeepRecentFilter, MessageFilter,
    RecoveryManager, SkipPatternFilter,
};
pub use tool_security::{
    SecurityCheckResult, ToolPolicyConfig, ToolSecurityConfig, ToolSecurityEngine,
};

pub use context::{
    BuiltinSource, ContextManager, ContextProvider, ContextSource, RefreshPolicy, TemplateRenderer,
};
#[cfg(feature = "sqlite")]
pub use persistence::SqliteStorage;
pub use persistence::{
    AgentSnapshot, AgentStorage, FileStorage, MemorySnapshot, SessionInfo, SessionMetadata,
    SessionOrderBy, SessionQuery, SpawnedAgentEntry, create_storage,
};
#[cfg(feature = "redis-storage")]
pub use persistence::{RedisSessionMeta, RedisStorage};

pub use state::{
    CompareOp, ContextExtractor, ContextMatcher, GuardConditions, GuardOnlyEvaluator,
    LLMTransitionEvaluator, PromptMode, StateAction, StateConfig, StateDefinition, StateMachine,
    StateMachineSnapshot, StateMatcher, StateTransitionEvent, TimeMatcher, ToolCondition, ToolRef,
    Transition, TransitionContext, TransitionEvaluator, TransitionGuard,
};
pub use tools::{
    ConditionEvaluator, EvaluationContext, LLMGetter, SimpleLLMGetter, ToolCallRecord,
};

pub use hooks::{AgentHooks, CompositeHooks, HookTimer, LoggingHooks, NoopHooks};

pub use hitl::{
    ApprovalCondition, ApprovalHandler, ApprovalMessage, ApprovalRequest, ApprovalResult,
    ApprovalTrigger, AutoApproveHandler, HITLCheckResult, HITLConfig, HITLEngine,
    LlmGenerateConfig, LocalizedHandler, MessageLanguageConfig, MessageLanguageStrategy,
    MessageResolver, RejectAllHandler, StateApprovalConfig, StateApprovalTrigger, TimeoutAction,
    ToolApprovalConfig, create_handler, create_localized_handler, resolve_best_language,
    resolve_tool_message,
};

// Tool Provider System (v0.5.1 - Simplified)
pub use tools::{
    ProviderHealth, ToolAliases, ToolContext, ToolDescriptor, ToolMetadata, ToolProvider,
    ToolProviderError, ToolProviderType, TrustLevel,
};

// Reasoning & Reflection (v0.5.3)
pub use reasoning::{
    CriterionResult, EvaluationResult, Plan, PlanAction, PlanAvailableActions,
    PlanReflectionConfig, PlanStatus, PlanStep, PlanningConfig, ReasoningConfig, ReasoningMetadata,
    ReasoningMode, ReasoningOutput, ReflectionAttempt, ReflectionConfig, ReflectionMetadata,
    ReflectionMode, StepFailureAction, StepStatus, StringOrList,
};

// Intent Disambiguation (v0.5.4)
pub use disambiguation::{
    AmbiguityAspect, AmbiguityDetectionResult, AmbiguityDetector, AmbiguityType, CacheConfig,
    ClarificationConfig, ClarificationGenerator, ClarificationOption, ClarificationParseResult,
    ClarificationQuestion, ClarificationStyle, ContextConfig, DetectionConfig,
    DisambiguationConfig, DisambiguationContext, DisambiguationManager, DisambiguationResult,
    MaxAttemptsAction, SkillDisambiguationOverride, SkipCondition, StateDisambiguationOverride,
};