Skip to main content

TraceSummary

Evaluation summary for a conversation turn, including its recorded conversation, message and profile attribution.

Usage profiles​

UsageFields and validation
In responsesView fields

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
traceIdstringOptionalIdentifier of the evaluation trace.
namestringOptionalName recorded for the evaluation trace.
timestampstring (date-time)OptionalTimestamp associated with the conversation message or event.
inputJsonstringOptionalEvaluation input serialized as JSON.
outputJsonstringOptionalEvaluation output serialized as JSON.
latencySecondsnumber (double) or string (NaN, Infinity, -Infinity)OptionalElapsed observation latency, in seconds.
totalCostnumber (double) or string (NaN, Infinity, -Infinity)OptionalTotal cost reported for the evaluated generation or aggregate.
environmentstringOptionalEnvironment label attached to the evaluation record.
tagsArray of stringOptionalLabels associated with the resource for organization or filtering.
metadataJsonstringOptionalAdditional attributes serialized as a JSON object.
bookmarkedbooleanOptionalWhether the evaluation object is bookmarked.
versionstringOptionalVersion of the resource represented by this message.
releasestringOptionalApplication release identifier attached to the trace.
userIdstringOptionalIdentifier of the user associated with the operation.
sessionIdstringOptionalIdentifier of the evaluation session grouping related traces.
observationCountinteger (int32)OptionalNumber of observations reported for the evaluation object. Minimum: -2147483648. Maximum: 2147483647.
conversationIdstringOptionalIdentifier of the conversation associated with the trace.
sourceUserMessageIdstringOptionalIdentifier of the user message that opened the evaluated generation turn.
profileIdstringOptionalIdentifier of the agent profile associated with the generation.
configHashstringOptionalFingerprint of the profile ID, model and resolved prompt hash used to group evaluation results. Other settings are excluded; this is not an immutable profile revision.
inputTokensstring (int64)OptionalInput-token usage reported for the evaluated generation. Pattern: ^-?\d+$.
outputTokensstring (int64)OptionalOutput-token usage reported for the evaluated generation. Pattern: ^-?\d+$.
totalTokensstring (int64)OptionalTotal token usage reported for the evaluated generation or aggregate. Pattern: ^-?\d+$.
errorCountinteger (int32)OptionalNumber of observations reported at error level. Minimum: -2147483648. Maximum: 2147483647.
warningCountinteger (int32)OptionalNumber of observations reported at warning level. Minimum: -2147483648. Maximum: 2147483647.
defaultCountinteger (int32)OptionalNumber of observations reported at the default level. Minimum: -2147483648. Maximum: 2147483647.
debugCountinteger (int32)OptionalNumber of observations reported at debug level. Minimum: -2147483648. Maximum: 2147483647.
scoresArray of ScoreOptionalEvaluation scores returned for the selected objects or query.
commentCountinteger (int32)OptionalNumber of comments reported on the evaluation object. Minimum: -2147483648. Maximum: 2147483647.

Where used​

ReferenceRelationship
Get a sessionPOST /api/v1/evals/get-session
Get a tracePOST /api/v1/evals/get-trace
List tracesPOST /api/v1/evals/list-traces
SessionDetailNested in model
TraceDetailNested in model

Download the public reference contract.

Document: DOC-API-MODEL-trace-summary.