Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions src/datadogV2/api/api_llm_observability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub struct LLMObsAnnotatedInteractionItem {
/// List of annotations for this interaction.
#[serde(rename = "annotations")]
pub annotations: Vec<crate::datadogV2::model::LLMObsAnnotationItem>,
/// 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions src/datadogV2/model/model_llm_obs_interaction_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
pub enum LLMObsInteractionType {
TRACE,
EXPERIMENT_TRACE,
SESSION,
UnparsedObject(crate::datadog::UnparsedObject),
}

Expand All @@ -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(),
}
}
Expand All @@ -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()),
}),
Expand Down
Loading