diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2dc5dce2c..dfe28385c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -38202,7 +38202,7 @@ components: $ref: "#/components/schemas/LLMObsAnnotationItem" type: array content_id: - description: Identifier of the content for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string id: @@ -38405,7 +38405,7 @@ components: description: A single interaction to add to an annotation queue. properties: content_id: - description: Identifier of the content (such as trace ID) for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string type: @@ -38422,7 +38422,7 @@ components: example: false type: boolean content_id: - description: Identifier of the content for this interaction. + description: Identifier of the content (trace ID or session ID) for this interaction. example: "trace-abc-123" type: string id: @@ -39941,11 +39941,13 @@ components: enum: - trace - experiment_trace + - session example: trace type: string x-enum-varnames: - TRACE - EXPERIMENT_TRACE + - SESSION LLMObsLabelSchema: description: Schema definition for a single label in an annotation queue. properties: @@ -109649,7 +109651,7 @@ paths: If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/llm-obs/v1/annotation-queues/{queue_id}/annotated-interactions: get: - description: Retrieve all interactions and their annotations for a given annotation queue. + description: Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue. operationId: GetLLMObsAnnotatedInteractions parameters: - $ref: "#/components/parameters/LLMObsAnnotationQueueIDPathParameter" @@ -109710,7 +109712,7 @@ paths: /api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions: post: description: |- - Add one or more interactions (traces) to an annotation queue. + Add one or more interactions (traces or sessions) to an annotation queue. At least one interaction must be provided. operationId: CreateLLMObsAnnotationQueueInteractions parameters: diff --git a/src/datadogV2/api/api_llm_observability.rs b/src/datadogV2/api/api_llm_observability.rs index 8a47e3cad..805520b4e 100644 --- a/src/datadogV2/api/api_llm_observability.rs +++ b/src/datadogV2/api/api_llm_observability.rs @@ -689,7 +689,7 @@ impl LLMObservabilityAPI { } } - /// Add one or more interactions (traces) to an annotation queue. + /// Add one or more interactions (traces or sessions) to an annotation queue. /// At least one interaction must be provided. pub async fn create_llm_obs_annotation_queue_interactions( &self, @@ -716,7 +716,7 @@ impl LLMObservabilityAPI { } } - /// Add one or more interactions (traces) to an annotation queue. + /// Add one or more interactions (traces or sessions) to an annotation queue. /// At least one interaction must be provided. pub async fn create_llm_obs_annotation_queue_interactions_with_http_info( &self, @@ -2616,7 +2616,7 @@ impl LLMObservabilityAPI { } } - /// Retrieve all interactions and their annotations for a given annotation queue. + /// Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue. pub async fn get_llm_obs_annotated_interactions( &self, queue_id: String, @@ -2641,7 +2641,7 @@ impl LLMObservabilityAPI { } } - /// Retrieve all interactions and their annotations for a given annotation queue. + /// Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue. pub async fn get_llm_obs_annotated_interactions_with_http_info( &self, queue_id: String, diff --git a/src/datadogV2/model/model_llm_obs_annotated_interaction_item.rs b/src/datadogV2/model/model_llm_obs_annotated_interaction_item.rs index d26001eef..4fd50346c 100644 --- a/src/datadogV2/model/model_llm_obs_annotated_interaction_item.rs +++ b/src/datadogV2/model/model_llm_obs_annotated_interaction_item.rs @@ -14,7 +14,7 @@ pub struct LLMObsAnnotatedInteractionItem { /// List of annotations for this interaction. #[serde(rename = "annotations")] pub annotations: Vec, - /// Identifier of the content for this interaction. + /// Identifier of the content (trace ID or session ID) for this interaction. #[serde(rename = "content_id")] pub content_id: String, /// Unique identifier of the interaction. diff --git a/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_item.rs b/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_item.rs index 4145b1b87..1633e857c 100644 --- a/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_item.rs +++ b/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_item.rs @@ -11,7 +11,7 @@ use std::fmt::{self, Formatter}; #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)] pub struct LLMObsAnnotationQueueInteractionItem { - /// Identifier of the content (such as trace ID) for this interaction. + /// Identifier of the content (trace ID or session ID) for this interaction. #[serde(rename = "content_id")] pub content_id: String, /// Type of interaction in an annotation queue. diff --git a/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_response_item.rs b/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_response_item.rs index 35702d1c6..4a301cbbd 100644 --- a/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_response_item.rs +++ b/src/datadogV2/model/model_llm_obs_annotation_queue_interaction_response_item.rs @@ -14,7 +14,7 @@ pub struct LLMObsAnnotationQueueInteractionResponseItem { /// Whether this interaction already existed in the queue. #[serde(rename = "already_existed")] pub already_existed: bool, - /// Identifier of the content for this interaction. + /// Identifier of the content (trace ID or session ID) for this interaction. #[serde(rename = "content_id")] pub content_id: String, /// Unique identifier of the interaction. diff --git a/src/datadogV2/model/model_llm_obs_interaction_type.rs b/src/datadogV2/model/model_llm_obs_interaction_type.rs index 3129ba29f..461e2b86b 100644 --- a/src/datadogV2/model/model_llm_obs_interaction_type.rs +++ b/src/datadogV2/model/model_llm_obs_interaction_type.rs @@ -9,6 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; pub enum LLMObsInteractionType { TRACE, EXPERIMENT_TRACE, + SESSION, UnparsedObject(crate::datadog::UnparsedObject), } @@ -17,6 +18,7 @@ impl ToString for LLMObsInteractionType { match self { Self::TRACE => String::from("trace"), Self::EXPERIMENT_TRACE => String::from("experiment_trace"), + Self::SESSION => String::from("session"), Self::UnparsedObject(v) => v.value.to_string(), } } @@ -43,6 +45,7 @@ impl<'de> Deserialize<'de> for LLMObsInteractionType { Ok(match s.as_str() { "trace" => Self::TRACE, "experiment_trace" => Self::EXPERIMENT_TRACE, + "session" => Self::SESSION, _ => Self::UnparsedObject(crate::datadog::UnparsedObject { value: serde_json::Value::String(s.into()), }),