policy management

Test Policy Template

Test a policy template's guardrails against a text input without creating them.

Instantiates temporary guardrails from the template definitions, runs them against the provided text, and returns per-guardrail results so users can verify the template solves their problem before creating it.

post/policy/templates/test

Request

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

Request body

guardrail_definitionsobject[] required

All guardrailDefinitions from the policy template

textstring required

Test input text to run guardrails against

Response

Successful Response

overall_actionstring required

Changes

No recorded changes to this operation across all 17 revisions of this API.