Skip to main content

Annotation

Tagged provider annotation attached to generated content, such as a citation or PDF reference.

Usage profiles​

UsageFields and validation
In requestsView fields
In responsesView fields
In webhook payloadsView fields

In requests​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
urlCitationUrlCitationOptionalSubmessage fields (optional); populate the one matching kind
pdfPdfAnnotationOptionalPDF annotation or parser configuration selected by the enclosing message.
kindstring (ANNOTATION_KIND_URL_CITATION, ANNOTATION_KIND_PDF) or integer (int32)OptionalSelected kind; determines which submessage is populated
metadataMap from string to stringOptionalProvider-specific extras.

Values of kind​

Kind of source annotation associated with generated content.

ValueNo.FormMeaning
ANNOTATION_KIND_URL_CITATION1CanonicalA citation to a source identified by its URL.
ANNOTATION_KIND_PDF2CanonicalAn annotation identifying source content in a PDF document.

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
urlCitationUrlCitationOptionalSubmessage fields (optional); populate the one matching kind
pdfPdfAnnotationOptionalPDF annotation or parser configuration selected by the enclosing message.
kindstring (ANNOTATION_KIND_URL_CITATION, ANNOTATION_KIND_PDF) or integer (int32)OptionalSelected kind; determines which submessage is populated
metadataMap from string to stringOptionalProvider-specific extras.

Values of kind​

Kind of source annotation associated with generated content.

ValueNo.FormMeaning
ANNOTATION_KIND_URL_CITATION1CanonicalA citation to a source identified by its URL.
ANNOTATION_KIND_PDF2CanonicalAn annotation identifying source content in a PDF document.

In webhook payloads​

Webhook JSON uses protobuf field names (snake_case).

FieldTypePresenceMeaning
url_citationUrlCitationOptionalSubmessage fields (optional); populate the one matching kind
pdfPdfAnnotationOptionalPDF annotation or parser configuration selected by the enclosing message.
kindstring (ANNOTATION_KIND_URL_CITATION, ANNOTATION_KIND_PDF) or integer (int32)OptionalSelected kind; determines which submessage is populated
metadataMap from string to stringOptionalProvider-specific extras.

Values of kind​

Kind of source annotation associated with generated content.

ValueNo.FormMeaning
ANNOTATION_KIND_URL_CITATION1CanonicalA citation to a source identified by its URL.
ANNOTATION_KIND_PDF2CanonicalAn annotation identifying source content in a PDF document.

Where used​

ReferenceRelationship
Append a message without generatingPOST /api/v1/llm/append-message
Send a message to a conversationPOST /api/v1/llm/send-message
Send a message and wait for the resultPOST /api/v1/llm/send-message-sync
Withdraw your rating on a messagePOST /api/v1/llm/delete-message-rating
Get full conversation statePOST /api/v1/llm/conversation-state
Rate an assistant messagePOST /api/v1/llm/rate-message
Submit client-side tool results and wait for the next segmentPOST /api/v1/llm/submit-client-tool-results-sync
llm.message_publishedWebhook JSON uses protobuf field names (snake_case).
MessageNested in model
MessageNested in model
MessageNested in model

Download the public reference contract.

Document: DOC-API-MODEL-annotation.