policy management

Enrich Policy Template Stream

Changed on

Stream competitor names as SSE events as the LLM generates them.

Events:

  • data: {"type": "competitor", "name": "..."} — each competitor as discovered
  • data: {"type": "done", "competitors": [...], "competitor_variations": {...}, "guardrailDefinitions": [...]}
post/policy/templates/enrich/stream

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/policy/templates/enrich/stream
  • Auth
    API key in header x-litellm-api-key

Request body

template_idstring required
parametersobject required
modelstring nullable
competitorsstring[] nullable

Optional list of competitor names

instructionstring nullable

Refinement instruction for modifying the competitor list (e.g. 'add 10 more from Asia')

Response

Successful Response

unknown required

Changes