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
//! Pillars: [AI][DevX]
//!
//! Voice + LLM Interface for MockForge
//!
//! This module provides voice input capability that allows users to build mocks
//! conversationally using natural language commands. It leverages MockForge's
//! existing LLM infrastructure to interpret voice commands and generate mock APIs.
//!
//! # Features
//!
//! - **Natural Language Command Parsing**: Interpret voice commands using LLM
//! - **OpenAPI Spec Generation**: Generate OpenAPI 3.0 specs from voice commands
//! - **Conversational Mode**: Support multi-turn conversations for iterative refinement
//! - **Single-Shot Mode**: Process complete commands in one go
//!
//! # Example Usage
//!
//! ```rust,ignore
//! use mockforge_core::voice::{VoiceCommandParser, VoiceSpecGenerator};
//! use mockforge_core::intelligent_behavior::IntelligentBehaviorConfig;
//!
//! async fn example() -> mockforge_core::Result<()> {
//! let config = IntelligentBehaviorConfig::default();
//! let parser = VoiceCommandParser::new(config.clone());
//!
//! // Parse a voice command
//! let command = "Create a fake e-commerce API with 20 products and a checkout flow";
//! let parsed = parser.parse_command(command).await?;
//!
//! // Generate OpenAPI spec
//! let spec_generator = VoiceSpecGenerator::new(config);
//! let spec = spec_generator.generate_spec(&parsed).await?;
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use HookTranspiler;
pub use VoiceSpecGenerator;
pub use ;
pub use ;