Evaluate Response
[BETA] This endpoint is not GA or Production ready and is subject to changes at any time. Breaking changes may occur.
Analyzes an LLM response payload for security threats after it is received from the model.
Accepts any valid provider response payload and returns:
- If detect or redact action: the response payload (potentially modified) in the provider’s response format
- If block action: a canned block message in the provider’s response format
Use this endpoint inline in your LLM pipeline to evaluate model outputs before returning them to users.
Supported provider formats:
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
An externally-defined session identifier to group interactions in separate requests into a single session. The identifier should be unique across the all sessions.
Request
Response headers
The action recommended by the policy engine evaluation outcome. It is set
to BLOCK when a detection rule is triggered for a block action.
Response
Successful evaluation. Returns the (potentially modified) provider response payload.