v2
latestOpenAPI 3.1.02026-07-26937792.5 KBRun Call Unit Tests Endpoint
Run call unit tests for a specific agent.
This endpoint:
- Fetches the agent's current configuration
- Retrieves test cases from db-svc (conversation contexts marked as unit tests)
- Runs each test case against the agent's current settings
- Calculates similarity scores using LLM-as-judge
- Saves results to db-svc
- Returns the test results
Args: request: RunCallUnitTestsRequest with agent_id, optional test_ids, and similarity_threshold
Returns: RunCallUnitTestsResponse with all test run results
post/testing/call-unit/run
Headers
authorizationstring required
Request body
Response
Successful Response