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
4 changes: 2 additions & 2 deletions api/datadogV2/api_llm_observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (a *LLMObservabilityApi) CreateLLMObsAnnotationQueue(ctx _context.Context,
}

// CreateLLMObsAnnotationQueueInteractions Add annotation queue interactions.
// 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.
func (a *LLMObservabilityApi) CreateLLMObsAnnotationQueueInteractions(ctx _context.Context, queueId string, body LLMObsAnnotationQueueInteractionsRequest) (LLMObsAnnotationQueueInteractionsResponse, *_nethttp.Response, error) {
var (
Expand Down Expand Up @@ -1320,7 +1320,7 @@ func (a *LLMObservabilityApi) DeleteLLMObsProjects(ctx _context.Context, body LL
}

// GetLLMObsAnnotatedInteractions Get annotated queue interactions.
// 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.
func (a *LLMObservabilityApi) GetLLMObsAnnotatedInteractions(ctx _context.Context, queueId string) (LLMObsAnnotatedInteractionsResponse, *_nethttp.Response, error) {
var (
localVarHTTPMethod = _nethttp.MethodGet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
type LLMObsAnnotatedInteractionItem struct {
// List of annotations for this interaction.
Annotations []LLMObsAnnotationItem `json:"annotations"`
// Identifier of the content for this interaction.
// Identifier of the content (trace ID or session ID) for this interaction.
ContentId string `json:"content_id"`
// Unique identifier of the interaction.
Id string `json:"id"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

// LLMObsAnnotationQueueInteractionItem A single interaction to add to an annotation queue.
type LLMObsAnnotationQueueInteractionItem struct {
// Identifier of the content (such as trace ID) for this interaction.
// Identifier of the content (trace ID or session ID) for this interaction.
ContentId string `json:"content_id"`
// Type of interaction in an annotation queue.
Type LLMObsInteractionType `json:"type"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
type LLMObsAnnotationQueueInteractionResponseItem struct {
// Whether this interaction already existed in the queue.
AlreadyExisted bool `json:"already_existed"`
// Identifier of the content for this interaction.
// Identifier of the content (trace ID or session ID) for this interaction.
ContentId string `json:"content_id"`
// Unique identifier of the interaction.
Id string `json:"id"`
Expand Down
2 changes: 2 additions & 0 deletions api/datadogV2/model_llm_obs_interaction_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ type LLMObsInteractionType string
const (
LLMOBSINTERACTIONTYPE_TRACE LLMObsInteractionType = "trace"
LLMOBSINTERACTIONTYPE_EXPERIMENT_TRACE LLMObsInteractionType = "experiment_trace"
LLMOBSINTERACTIONTYPE_SESSION LLMObsInteractionType = "session"
)

var allowedLLMObsInteractionTypeEnumValues = []LLMObsInteractionType{
LLMOBSINTERACTIONTYPE_TRACE,
LLMOBSINTERACTIONTYPE_EXPERIMENT_TRACE,
LLMOBSINTERACTIONTYPE_SESSION,
}

// GetAllowedValues reeturns the list of possible values.
Expand Down
Loading