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 api_critique::AntiPattern;pub use api_critique::ApiCritique;pub use api_critique::ApiCritiqueEngine;pub use api_critique::ConsolidationOpportunity;pub use api_critique::CritiqueRequest;pub use api_critique::HierarchyImprovement;pub use api_critique::NamingIssue;pub use api_critique::Redundancy;pub use api_critique::ResourceModelingSuggestion;pub use api_critique::RestructuringRecommendations;pub use api_critique::ToneAnalysis;pub use api_critique::ToneIssue;pub use artifact_freezer::ArtifactFreezer;pub use artifact_freezer::FreezeMetadata;pub use artifact_freezer::FreezeRequest;pub use artifact_freezer::FrozenArtifact;pub use behavioral_simulator::AppState;pub use behavioral_simulator::BehaviorPolicy;pub use behavioral_simulator::BehavioralSimulator;pub use behavioral_simulator::BehavioralTraits;pub use behavioral_simulator::CartState;pub use behavioral_simulator::CreateAgentRequest;pub use behavioral_simulator::Intention;pub use behavioral_simulator::NarrativeAgent;pub use behavioral_simulator::NextAction;pub use behavioral_simulator::PolicyRule;pub use behavioral_simulator::SimulateBehaviorRequest;pub use behavioral_simulator::SimulateBehaviorResponse;pub use budget_manager::AiFeature;pub use budget_manager::BudgetConfig;pub use budget_manager::BudgetManager;pub use budget_manager::FeatureUsage;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 config::FreezeMode;pub use contract_diff_handler::BreakingChange;pub use contract_diff_handler::ContractDiffFilters;pub use contract_diff_handler::ContractDiffHandler;pub use contract_diff_handler::ContractDiffIntent;pub use contract_diff_handler::ContractDiffQueryResult;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 debug_analyzer::LinkedArtifact;pub use debug_context::ChaosContext;pub use debug_context::ContractContext;pub use debug_context::DebugContext;pub use debug_context::PersonaContext;pub use debug_context::RealityContext;pub use debug_context::ScenarioContext;pub use debug_context_integrator::ChaosAccessor;pub use debug_context_integrator::ContractAccessor;pub use debug_context_integrator::DebugContextIntegrator;pub use debug_context_integrator::PersonaAccessor;pub use debug_context_integrator::RealityAccessor;pub use debug_context_integrator::ScenarioAccessor;pub use nl_mock_generator::MockGenerationResult;pub use nl_mock_generator::MockGenerator;pub use org_controls::OrgAiControlsConfig;pub use org_controls::OrgBudgetConfig;pub use org_controls::OrgControls;pub use org_controls::OrgControlsAccessor;pub use org_controls::OrgRateLimitConfig;pub use org_controls_db::DbOrgControls;pub use persona_generator::PersonaGenerationRequest;pub use persona_generator::PersonaGenerationResponse;pub use persona_generator::PersonaGenerator;pub use system_generator::AppliedSystem;pub use system_generator::GeneratedSystem;pub use system_generator::SystemArtifact;pub use system_generator::SystemGenerationRequest;pub use system_generator::SystemGenerator;pub use system_generator::SystemMetadata;
Modules§
- api_
critique - API Architecture Critique Engine
- artifact_
freezer - Artifact freezer for converting AI outputs to deterministic formats
- behavioral_
simulator - AI Behavioral Simulation Engine
- budget_
manager - Budget manager for AI usage tracking and controls
- chat_
orchestrator - Chat orchestrator for routing natural language commands
- config
- Configuration for AI Studio
- contract_
diff_ handler - Contract Diff Handler for processing natural language queries
- conversation_
store - Conversation storage for AI Studio chat sessions
- debug_
analyzer - AI-guided debugging analyzer
- debug_
context - Debug context types for AI-guided debugging
- debug_
context_ integrator - Debug context integrator for collecting context from multiple subsystems
- nl_
mock_ generator - Natural language mock generator
- org_
controls - Organization-level AI controls service
- org_
controls_ db - Database-backed implementation of OrgControlsAccessor
- persona_
generator - AI-powered persona generator
- system_
generator - System Generator - Natural Language to Entire System Generation