Get Journey Path Results
(v2)GET
Retrieves how the test cases simulated from a journey's goldens went: for each test case, the path it was generated for and the path the conversation actually took, plus each metric's results per path. Use it to find the branches where your LLM app strays from the journey or fails its metrics.
curl -X GET "https://api.confident-ai.com/v2/journeys/{journeyId}/paths" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"testCases": [
{
"testCaseId": "<TEST-CASE-ID>",
"testRunId": "<TEST-RUN-ID>",
"name": "Refund request, verified",
"journeyStateIds": [
"<JOURNEY-STATE-ID>"
],
"journeyPath": [
"<JOURNEY-STATE-ID>"
],
"status": "COMPLETED",
"success": true,
"completionTime": 12.4
}
],
"metrics": [
{
"journeyStateIds": [
"<JOURNEY-STATE-ID>"
],
"name": "Conversation Completeness",
"avgScore": 0.82,
"passed": 7,
"failed": 2
}
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/journeys/<JOURNEY-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
journeyIdstringRequiredThe id of the journey.
Query parameters
startstringOnly include test cases last updated at or after this time, in ISO 8601 format. Send it with
end, or omit both to include every test case.endstringOnly include test cases last updated at or before this time, in ISO 8601 format. Send it with
start; it must be later thanstart.
Response
Get Journey Path Results succeeded.
successbooleanIndicates if the request was successful.
dataobjectHow the test cases generated from a journey's paths actually went: which path each conversation took, and how each path did on each metric.
Show 2 propertiesHide 2 properties
testCaseslist of objectsEvery test case simulated from this journey's goldens in the time window, in no particular order.
Show 8 propertiesHide 8 properties
testCaseIdstringThe id of the test case.
testRunIdstringThe id of the test run the test case belongs to.
namestringThe name of the test case.
journeyStateIdslist of stringsThe path the test case's golden was generated for, as state ids in order from the root state.
journeyPathlist of stringsThe state the simulated conversation was in on each user turn, in order, so a state repeats while the conversation stays in it. Compare it with
journeyStateIdsto see where the conversation left the intended path.[]when it was not recorded.statusenum | nullWhere a test case is in its run:
GENERATINGits output,EVALUATINGits metrics,COMPLETED, orERRORED.WAITINGmeans an asynchronous result has not arrived yet.Show 5 enum valuesHide 5 enum values
GENERATINGEVALUATINGERROREDCOMPLETEDWAITING
successboolean | nullWhether the test case passed its metrics, or
nullwhen it has no verdict yet.completionTimenumber | nullHow long the test case took to run, in seconds, or
nullwhen it was not recorded.
metricslist of objectsMetric results for the same test cases, one entry per path and metric. Skipped and flaky metric results are left out.
Show 5 propertiesHide 5 properties
journeyStateIdslist of stringsThe path these results are for, as state ids in order from the root state.
namestringThe name of the metric.
avgScorenumber | nullThe metric's average score across the path's test cases, or
nullwhen none was scored.passedintegerThe number of the path's test cases that passed the metric.
failedintegerThe number of the path's test cases that failed the metric. Results that errored count as neither passed nor failed.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.