Submit Test Case Result
Submit the result for a single test case in a long-running agent evaluation. Confident AI automatically evaluates the test case and finalizes the test run once every result has been received.
Long-running mode is available for single-turn AI connection evaluations only.
Path parameters
testCaseId
The test case id Confident AI sent to your AI connection as confident.testCaseId when it dispatched this golden.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Request
actualOutput
The actual output produced by your agent.
retrievalContext
The retrieval context your agent used, if any.
toolsCalled
The tools your agent called while producing the output.
expectedTools
The tools you expected to be called for this test case.
metadata
Optional additional metadata to attach to the test case.
Response
The result was accepted for evaluation.
success
A boolean indicating the success or failure of the API call.
data
The recorded test case id and its status.
Errors
400
Bad Request Error
404
Not Found Error
409
Conflict Error
410
Gone Error