policies

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.sea-lion.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.sea-lion.ai/policy/templates/enrich/stream
  • Auth: API key in header x-litellm-api-key

Request body

competitorsstring[] nullable

Optional list of competitor names

instructionstring nullable

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

modelstring nullable
parametersobject required
template_idstring required

Response

Successful Response

unknown required

Changes

    • info

      api tag policies added

    • info

      api tag policy management removed

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status