Expand description
AI response handler — re-export shim.
Issue #656 (post-#555 follow-up) moved this module to
mockforge_intelligence::ai_handler. The original
mockforge_core::{Result, Error} imports were already re-exports of
mockforge_foundation equivalents, and mockforge-data was already
a direct dep of mockforge-intelligence — so the move stayed
cycle-safe with the Issue #562 core↔intelligence cycle-break.
This shim keeps existing
mockforge_http::ai_handler::{AiResponseHandler, AiResponseConfig, process_response_with_ai, create_ai_handler} callers (notably the
top-level mockforge_http::{AiResponseConfig, AiResponseHandler, process_response_with_ai} re-exports in lib.rs) resolving
unchanged. Future drains may drop this shim; until then, prefer
importing from mockforge_intelligence::ai_handler directly in new
code.
Structs§
- AiResponse
Config - Configuration for AI-powered responses (to be added to MockResponse)
- AiResponse
Handler - AI response handler that combines intelligent generation and drift simulation
Functions§
- create_
ai_ handler - Helper function to create an AI handler from optional configs
- process_
response_ with_ ai - Process a response body with AI features if configured