Skip to content

latent.flows.conversation_sop_flow

conversation_sop_flow — SOP compliance checking (FR-3.6).

Functions

conversation_sop_flow

conversation_sop_flow(conversations: list, judge: Any, sop_checklist: list[dict[str, Any]], confidence_level: float = 0.95, n_resamples: int = 10000, seed: int | None = None) -> dict[str, Any]

Check conversations against an SOP compliance checklist.

Args: conversations: List of Conversation objects. judge: A Judge instance for checking SOP items. sop_checklist: List of dicts with 'name', 'description', 'required'. confidence_level: CI confidence level. n_resamples: Bootstrap resamples. seed: Random seed.

Returns: Dict with: compliance_results, aggregate_rates, report, markdown.