Skip to main content

annotation_queue_annotations

Creates, updates, deletes, gets or lists an annotation_queue_annotations resource.

Overview

Nameannotation_queue_annotations
TypeResource
Iddatadog.llm_observability.annotation_queue_annotations

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
upsert_llmobs_annotationsinsertqueue_id, dataCreate or update annotations on interactions in a queue. Each annotation is matched<br />by interaction_id and the requesting user's identity.<br />Results and errors in the response are linked to request items by interaction_id.<br />Errors for individual items are returned in the errors field without blocking the rest of the batch.
delete_llmobs_annotationsexecqueue_id, dataDelete one or more annotations from an annotation queue.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
queue_idstringThe ID of the Agent Observability annotation queue. (example: 00000000-0000-0000-0000-000000000001)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

INSERT examples

Create or update annotations on interactions in a queue. Each annotation is matched<br />by interaction_id and the requesting user's identity.<br />Results and errors in the response are linked to request items by interaction_id.<br />Errors for individual items are returned in the errors field without blocking the rest of the batch.

INSERT INTO datadog.llm_observability.annotation_queue_annotations (
data,
queue_id
)
SELECT
'{{ data }}' /* required */,
'{{ queue_id }}'
RETURNING
data
;

Lifecycle Methods

EXEC variables use wire (API) names.

Delete one or more annotations from an annotation queue.

EXEC datadog.llm_observability.annotation_queue_annotations.delete_llmobs_annotations
@queue_id='{{ queue_id }}' --required,
@@json=
'{
"data": "{{ data }}"
}'
;