Skip to main content

Comment

Authored text attached to a trace, observation, or other evaluation object.

Usage profiles​

UsageFields and validation
In responsesView fields

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
commentIdstringOptionalIdentifier of the evaluation comment.
objectTypestring (COMMENT_OBJECT_TYPE_TRACE, COMMENT_OBJECT_TYPE_OBSERVATION, COMMENT_OBJECT_TYPE_SESSION, COMMENT_OBJECT_TYPE_PROMPT) or integer (int32)OptionalKind of evaluation object addressed by the comment or annotation queue item.
objectIdstringOptionalIdentifier of the evaluation object addressed by the comment or queue item.
contentstringOptionalText content of the evaluation comment.
authorUserIdstringOptionalIdentifier recorded for the user who authored the comment.
createdAtstring (date-time)OptionalTime when this record was created.
updatedAtstring (date-time)OptionalTime when this record was last updated.

Values of objectType​

Kind of evaluation object to which a reviewer comment is attached.

ValueNo.FormMeaning
COMMENT_OBJECT_TYPE_TRACE1CanonicalAttach the comment to a trace.
COMMENT_OBJECT_TYPE_OBSERVATION2CanonicalAttach the comment to a particular observation.
COMMENT_OBJECT_TYPE_SESSION3CanonicalAttach the comment to a session.
COMMENT_OBJECT_TYPE_PROMPT4CanonicalAttach the comment to a specific prompt version using that version's UUID, not the prompt name. A comment on one version does not appear on later versions.

Where used​

ReferenceRelationship
List commentsPOST /api/v1/evals/list-comments

Download the public reference contract.

Document: DOC-API-MODEL-comment.