Agent Tests

Patch test fields. Omitted fields keep their value and null is rejected, except referenced_tool: null, which turns a tool test into a check that the agent calls no tool at all. Attach and detach agents with PUT and DELETE /v1/agent/agents/{agent_id}/tests/{test_id}.

patch/v1/agent/tests/{test_id}

Request

  • Base URL
    https://api.fish.audio
  • URL
    https://api.fish.audio/v1/agent/tests/{test_id}
  • Auth
    HTTP bearer

Path parameters

test_idstring required

Request body

namestring nullable
test_type'next_reply' | 'tool' | 'simulation' nullable
expectationstring nullable
success_examplesstring[] nullable
failure_examplesstring[] nullable
verify_absenceboolean nullable
dynamic_variablesobject nullable

Response

Request fulfilled, document follows

test_idstring required
workspace_idstring required
namestring required
test_type'next_reply' | 'tool' | 'simulation' required
agent_idsstring[]

Agents this test is attached to.

created_atstring date-time required
updated_atstring date-time required
expectationstring
success_examplesstring[]
failure_examplesstring[]
verify_absenceboolean
dynamic_variablesobject

Changes