Skip to content

Commit 23217bb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5fd6c35 of spec repo
1 parent 61d2b93 commit 23217bb

10 files changed

Lines changed: 976 additions & 11 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 136 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63768,6 +63768,25 @@ components:
6376863768
required:
6376963769
- data
6377063770
type: object
63771+
LLMObsPromptAuthoringChatTemplate:
63772+
description: A chat prompt containing messages, pinned includes, or both.
63773+
items:
63774+
$ref: "#/components/schemas/LLMObsPromptAuthoringItem"
63775+
minItems: 1
63776+
type: array
63777+
LLMObsPromptAuthoringItem:
63778+
description: A chat message or an explicitly versioned prompt include.
63779+
oneOf:
63780+
- $ref: "#/components/schemas/LLMObsPromptChatMessage"
63781+
- $ref: "#/components/schemas/LLMObsPromptIncludeItem"
63782+
LLMObsPromptAuthoringMessagesTemplate:
63783+
description: A chat prompt whose authored items are stored under `messages`.
63784+
properties:
63785+
messages:
63786+
$ref: "#/components/schemas/LLMObsPromptAuthoringChatTemplate"
63787+
required:
63788+
- messages
63789+
type: object
6377163790
LLMObsPromptChatMessage:
6377263791
description: A single chat message in a prompt template.
6377363792
properties:
@@ -63891,6 +63910,47 @@ components:
6389163910
required:
6389263911
- id
6389363912
type: object
63913+
LLMObsPromptInclude:
63914+
additionalProperties: false
63915+
description: >-
63916+
An explicitly versioned prompt included as chat items. Omitting `items` includes every child message in its original order. When `items` is present, its zero-based indexes are inserted in the order provided; duplicate indexes are preserved.
63917+
properties:
63918+
items:
63919+
description: Optional ordered zero-based child-message indexes. Order and duplicate indexes are preserved.
63920+
items:
63921+
format: int64
63922+
maximum: 2147483647
63923+
minimum: 0
63924+
type: integer
63925+
minItems: 1
63926+
type: array
63927+
prompt_id:
63928+
description: >-
63929+
Customer-provided identifier of the included prompt. It cannot contain spaces, tabs, line breaks, braces, an equals sign, a comma, or quotes.
63930+
example: "response-policy"
63931+
minLength: 1
63932+
pattern: "^[^\\s{}=,\"']+$"
63933+
type: string
63934+
version:
63935+
description: Positive sequential version number of the included prompt.
63936+
example: 3
63937+
format: int64
63938+
maximum: 2147483647
63939+
minimum: 1
63940+
type: integer
63941+
required:
63942+
- prompt_id
63943+
- version
63944+
type: object
63945+
LLMObsPromptIncludeItem:
63946+
additionalProperties: false
63947+
description: An explicitly versioned whole-chat or selective-message include.
63948+
properties:
63949+
include:
63950+
$ref: "#/components/schemas/LLMObsPromptInclude"
63951+
required:
63952+
- include
63953+
type: object
6389463954
LLMObsPromptResponse:
6389563955
description: Response containing a single Agent Observability prompt.
6389663956
example:
@@ -63995,11 +64055,13 @@ components:
6399564055
- data
6399664056
type: object
6399764057
LLMObsPromptTemplate:
63998-
description: A text template or a list of chat messages.
64058+
description: >-
64059+
A text template, a list of chat messages, or an authored chat object. Text can include an exact prompt version with `{{>prompt-id version=N}}`. Use an authored chat object when including prompts as chat messages.
6399964060
example: "You are a helpful assistant for {{audience}}."
6400064061
oneOf:
6400164062
- $ref: "#/components/schemas/LLMObsPromptTextTemplate"
6400264063
- $ref: "#/components/schemas/LLMObsPromptChatTemplate"
64064+
- $ref: "#/components/schemas/LLMObsPromptAuthoringMessagesTemplate"
6400364065
LLMObsPromptTextTemplate:
6400464066
description: A text prompt template.
6400564067
minLength: 1
@@ -64030,11 +64092,14 @@ components:
6403064092
- attributes
6403164093
type: object
6403264094
LLMObsPromptVersionDataAttributes:
64033-
description: Attributes of a specific version of an Agent Observability prompt.
64095+
description: >-
64096+
Attributes of a specific version of an Agent Observability prompt. For a composed version, `authoring_template` contains its pinned include-bearing source; ordinary versions omit that attribute.
6403464097
properties:
6403564098
author:
6403664099
description: UUID of the user who authored this version.
6403764100
type: string
64101+
authoring_template:
64102+
$ref: "#/components/schemas/LLMObsPromptTemplate"
6403864103
created_at:
6403964104
description: Timestamp stored on this prompt version.
6404064105
format: date-time
@@ -173374,6 +173439,31 @@ paths:
173374173439
content:
173375173440
application/json:
173376173441
examples:
173442+
composed_chat:
173443+
summary: Create a version with whole-chat and selective pinned includes
173444+
value:
173445+
data:
173446+
attributes:
173447+
template:
173448+
messages:
173449+
- include:
173450+
prompt_id: "assistant-introduction"
173451+
version: 2
173452+
- include:
173453+
items: [2, 0, 0]
173454+
prompt_id: "response-examples"
173455+
version: 4
173456+
- content: "Answer {{question}}."
173457+
role: "user"
173458+
type: prompt-template-versions
173459+
composed_text:
173460+
summary: Create a version with an inline pinned include
173461+
value:
173462+
data:
173463+
attributes:
173464+
description: "Reuse the exact response policy."
173465+
template: "{{>response-policy version=3}}\n\nAnswer {{question}}."
173466+
type: prompt-template-versions
173377173467
default:
173378173468
value:
173379173469
data:
@@ -173394,6 +173484,50 @@ paths:
173394173484
content:
173395173485
application/json:
173396173486
examples:
173487+
composed_chat:
173488+
summary: A composed chat version preserves structured authored includes
173489+
value:
173490+
data:
173491+
attributes:
173492+
authoring_template:
173493+
messages:
173494+
- include:
173495+
prompt_id: "assistant-introduction"
173496+
version: 2
173497+
- include:
173498+
items: [2, 0, 0]
173499+
prompt_id: "response-examples"
173500+
version: 4
173501+
- content: "Answer {{question}}."
173502+
role: "user"
173503+
prompt_id: "support-chat"
173504+
prompt_uuid: "4a1a28ff-8a25-5f0f-946f-f48264d772eb"
173505+
template:
173506+
- content: "You are a helpful assistant."
173507+
role: "system"
173508+
- content: "Here is one concise example."
173509+
role: "assistant"
173510+
- content: "You are a helpful assistant."
173511+
role: "system"
173512+
- content: "You are a helpful assistant."
173513+
role: "system"
173514+
- content: "Answer {{question}}."
173515+
role: "user"
173516+
version: 2
173517+
id: "d83ab666-61cc-5545-a83b-2424bb85467b"
173518+
type: prompt-template-versions
173519+
composed_text:
173520+
summary: A composed text version returns compiled and authored templates
173521+
value:
173522+
data:
173523+
attributes:
173524+
authoring_template: "{{>response-policy version=3}}\n\nAnswer {{question}}."
173525+
prompt_id: "support-answer"
173526+
prompt_uuid: "4a1a28ff-8a25-5f0f-946f-f48264d772eb"
173527+
template: "Follow the approved response policy.\n\nAnswer {{question}}."
173528+
version: 2
173529+
id: "d83ab666-61cc-5545-a83b-2424bb85467b"
173530+
type: prompt-template-versions
173397173531
default:
173398173532
value:
173399173533
data:

src/main/java/com/datadog/api/client/v2/model/LLMObsCreatePromptDataAttributes.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public LLMObsCreatePromptDataAttributes template(LLMObsPromptTemplate template)
180180
}
181181

182182
/**
183-
* A text template or a list of chat messages.
183+
* A text template, a list of chat messages, or an authored chat object. Text can include an exact
184+
* prompt version with <code>{{&gt;prompt-id version=N}}</code>. Use an authored chat object when
185+
* including prompts as chat messages.
184186
*
185187
* @return template
186188
*/

src/main/java/com/datadog/api/client/v2/model/LLMObsCreatePromptVersionDataAttributes.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ public LLMObsCreatePromptVersionDataAttributes template(LLMObsPromptTemplate tem
151151
}
152152

153153
/**
154-
* A text template or a list of chat messages.
154+
* A text template, a list of chat messages, or an authored chat object. Text can include an exact
155+
* prompt version with <code>{{&gt;prompt-id version=N}}</code>. Use an authored chat object when
156+
* including prompts as chat messages.
155157
*
156158
* @return template
157159
*/

0 commit comments

Comments
 (0)