Red Team Evaluations

Get Next Action

[BETA] This endpoint is not GA or Production ready and is subject to changes at any time. Breaking changes may occur.

Poll for next action - CLIENT'S MAIN POLLING ENDPOINT.

This endpoint is designed to be polled repeatedly by the client. Returns immediately with current state:

  • If attack ready: Returns attack_task with prompt
  • If processing: Returns processing=true (client continues polling)
  • If complete: Returns action_type=complete
get/evaluations/v1/red-team/{workflow_id}/next-action

Path parameters

workflow_idstring required

The workflow identifier

Response

Next action for client

is_readyboolean required

Whether an action is ready

is_processingboolean

Whether processing is in progress

action_typestring

Type of action (e.g., "attack", "complete")

messagestring

Status message

session_idstring

Session identifier

turninteger

Current turn number

attack_promptstring

Attack prompt to send to target

historyobject[]

Conversation history

target_system_promptstring

Target's system prompt

Changes

Changed in 3 of the 44 revisions of this API.46

    • the errors/items/pointer response's property type/format changed from array/ to string/ for status 422

      response-property-type-changed

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 5e3d05c2a95735See the full diff
    • the response property type became optional for the status 422

      response-property-became-optional

    • removed the required property loc from the response with the 422 status

      response-required-property-removed

    • removed the required property msg from the response with the 422 status

      response-required-property-removed

    • media type application/json was changed to application/json; charset=utf-8 for the response status 422

      response-media-type-name-changed

    • added the optional property detail to the response with the 422 status

      response-optional-property-added

    • added the optional property instance to the response with the 422 status

      response-optional-property-added

    • added the optional property title to the response with the 422 status

      response-optional-property-added

    • added the required property errors to the response with the 422 status

      response-required-property-added

    • endpoint added

      endpoint-added