govern_inference
Quality-govern an in-progress AI generation step BEFORE its output is used (complements validate, which checks finished documents). Returns an action - STOP, CONTINUE, REPAIR_REGION, REUSE_MOTIF, REVIEW, ESCALATE - with a plain-language explanation. Durably recorded; retrieve later with get_inference_trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Free-form caller label recorded for audit | mcp |
| api_key | Yes | GeodesicAI API key (gai_...) | |
| payload | Yes | Task-type payload: generative_text {text,...}; retrieval {query,candidates}; generic {features} | |
| task_type | Yes | Kind of generation step being governed | |
| step_index | No | Step number within this generation (0-based) | |
| constraints | No | Optional governance constraint config object | |
| inference_id | Yes | Caller-chosen ID grouping the steps of one generation |