You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: A single chat message in a prompt template.
63773
63792
properties:
@@ -63891,6 +63910,47 @@ components:
63891
63910
required:
63892
63911
- id
63893
63912
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
63894
63954
LLMObsPromptResponse:
63895
63955
description: Response containing a single Agent Observability prompt.
63896
63956
example:
@@ -63995,11 +64055,13 @@ components:
63995
64055
- data
63996
64056
type: object
63997
64057
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.
63999
64060
example: "You are a helpful assistant for {{audience}}."
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.
64034
64097
properties:
64035
64098
author:
64036
64099
description: UUID of the user who authored this version.
64037
64100
type: string
64101
+
authoring_template:
64102
+
$ref: "#/components/schemas/LLMObsPromptTemplate"
64038
64103
created_at:
64039
64104
description: Timestamp stored on this prompt version.
64040
64105
format: date-time
@@ -173374,6 +173439,31 @@ paths:
173374
173439
content:
173375
173440
application/json:
173376
173441
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
0 commit comments