pub async fn process_response_with_ai(
response_body: Option<Value>,
intelligent_config: Option<Value>,
drift_config: Option<Value>,
) -> Result<Value>
Expand description
Process a response body with AI features if configured
This is a helper function that checks if a response has AI configuration and applies intelligent generation or drift if present.
§Arguments
response_body
- The base response body (as JSON string or Value)intelligent_config
- Optional intelligent mock configuration (from MockResponse.intelligent)drift_config
- Optional drift configuration (from MockResponse.drift)
§Returns
The processed response body as a JSON Value