agents

Compile Ai Config Rule

Compile a plain-English rule description into structured conditions (TOS-1287 Phase 3), for the caller to confirm before staging it.

Owner-gated the same as every other AI-config write surface, even though this endpoint writes nothing - it spends a real, funded AI call (rule_compile, tracked via TrackedAIClient) against this identity's configuration on every invocation. The compiled predicates still have to pass through PUT .../ai-config/rules (full routing_policy + model-binding validation) to actually be saved - this endpoint's own validation (same routing_policy predicate rules, applied via rule_authoring.compile_rule_text) exists so a bad compile is rejected here, at the point it was authored, not silently accepted and only caught later at save time.

post/api/agents/{agent_id}/ai-config/rules/compile

Request

  • Base URL: https://app.thinqos.com (the document declares no server; this is the origin it was published from)
  • URL: https://app.thinqos.com/api/agents/{agent_id}/ai-config/rules/compile
  • Auth: none declared

Path parameters

agent_idstring uuid required

Headers

x-impersonate-identity-idstring nullable

Request body

textstring required

Response

Successful Response

descriptionstring nullable required
judged_questionstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.