Module ai_studio

Module ai_studio 

Source
Expand description

AI Studio - Unified AI Copilot for all AI-powered features Pillars: [AI]

MockForge AI Studio - Unified AI Copilot

This module provides a unified interface for all AI-powered features in MockForge, including natural language mock generation, AI-guided debugging, persona generation, and artifact freezing for deterministic testing.

§Features

  • Natural Language Mock Generation: Generate mocks from conversational descriptions
  • AI-Guided Debugging: Analyze test failures and suggest fixes
  • Persona Generation: Create and tweak personas using AI
  • Artifact Freezing: Convert AI outputs to deterministic YAML/JSON
  • Cost & Budget Management: Track tokens and enforce budgets

§Example Usage

use mockforge_core::ai_studio::{ChatOrchestrator, ChatRequest};
use mockforge_core::intelligent_behavior::IntelligentBehaviorConfig;

let config = IntelligentBehaviorConfig::default();
let orchestrator = ChatOrchestrator::new(config);

// Process a natural language command
let request = ChatRequest {
    message: "Create a user API with CRUD operations".to_string(),
    context: None,
};
let response = orchestrator.process(&request).await?;

Re-exports§

pub use artifact_freezer::ArtifactFreezer;
pub use artifact_freezer::FreezeRequest;
pub use artifact_freezer::FrozenArtifact;
pub use budget_manager::BudgetConfig;
pub use budget_manager::BudgetManager;
pub use budget_manager::UsageStats;
pub use chat_orchestrator::ChatContext;
pub use chat_orchestrator::ChatIntent;
pub use chat_orchestrator::ChatMessage;
pub use chat_orchestrator::ChatOrchestrator;
pub use chat_orchestrator::ChatRequest;
pub use chat_orchestrator::ChatResponse;
pub use config::AiStudioConfig;
pub use conversation_store::get_conversation_store;
pub use conversation_store::initialize_conversation_store;
pub use conversation_store::ConversationStore;
pub use debug_analyzer::DebugAnalyzer;
pub use debug_analyzer::DebugRequest;
pub use debug_analyzer::DebugResponse;
pub use debug_analyzer::DebugSuggestion;
pub use nl_mock_generator::MockGenerationResult;
pub use nl_mock_generator::MockGenerator;
pub use persona_generator::PersonaGenerationRequest;
pub use persona_generator::PersonaGenerationResponse;
pub use persona_generator::PersonaGenerator;

Modules§

artifact_freezer
Artifact freezer for converting AI outputs to deterministic formats
budget_manager
Budget manager for AI usage tracking and controls
chat_orchestrator
Chat orchestrator for routing natural language commands
config
Configuration for AI Studio
conversation_store
Conversation storage for AI Studio chat sessions
debug_analyzer
AI-guided debugging analyzer
nl_mock_generator
Natural language mock generator
persona_generator
AI-powered persona generator