Module hook_transpiler

Module hook_transpiler 

Source
Expand description

Natural language to hook transpiler

This module converts natural language descriptions of hook logic into structured Hook definitions that can be used in chaos orchestration scenarios.

§Example

use mockforge_core::voice::HookTranspiler;
use mockforge_core::intelligent_behavior::IntelligentBehaviorConfig;

let config = IntelligentBehaviorConfig::default();
let transpiler = HookTranspiler::new(config);

let description = "For users flagged as VIP, webhooks should fire instantly but payments fail 5% of the time";
let hook = transpiler.transpile(description).await?;

Structs§

HookTranspiler
Transpiler that converts natural language hook descriptions to Hook structs