@arizeai/phoenix-client 6.9.2 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/__generated__/api/v1.d.ts +1676 -142
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/constants/serverRequirements.d.ts +3 -0
- package/dist/esm/constants/serverRequirements.d.ts.map +1 -1
- package/dist/esm/constants/serverRequirements.js +24 -0
- package/dist/esm/constants/serverRequirements.js.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/esm/prompts/sdks/toOpenAI.js +39 -7
- package/dist/esm/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/esm/schemas/llm/constants.d.ts +1 -1
- package/dist/esm/schemas/llm/converters.d.ts +4 -4
- package/dist/esm/schemas/llm/openai/converters.d.ts +1 -1
- package/dist/esm/schemas/llm/openai/messageSchemas.d.ts +1 -1
- package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +2 -2
- package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +3 -3
- package/dist/esm/schemas/llm/schemas.d.ts +1 -1
- package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +1 -1
- package/dist/esm/sessions/addSessionNote.d.ts +11 -2
- package/dist/esm/sessions/addSessionNote.d.ts.map +1 -1
- package/dist/esm/sessions/addSessionNote.js +12 -3
- package/dist/esm/sessions/addSessionNote.js.map +1 -1
- package/dist/esm/spans/addSpanNote.d.ts +11 -5
- package/dist/esm/spans/addSpanNote.d.ts.map +1 -1
- package/dist/esm/spans/addSpanNote.js +13 -5
- package/dist/esm/spans/addSpanNote.js.map +1 -1
- package/dist/esm/spans/getSpanAnnotations.d.ts +1 -1
- package/dist/esm/spans/getSpanAnnotations.d.ts.map +1 -1
- package/dist/esm/traces/addTraceNote.d.ts +11 -5
- package/dist/esm/traces/addTraceNote.d.ts.map +1 -1
- package/dist/esm/traces/addTraceNote.js +12 -6
- package/dist/esm/traces/addTraceNote.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +1676 -142
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/constants/serverRequirements.d.ts +3 -0
- package/dist/src/constants/serverRequirements.d.ts.map +1 -1
- package/dist/src/constants/serverRequirements.js +25 -1
- package/dist/src/constants/serverRequirements.js.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.d.ts.map +1 -1
- package/dist/src/prompts/sdks/toOpenAI.js +39 -7
- package/dist/src/prompts/sdks/toOpenAI.js.map +1 -1
- package/dist/src/schemas/llm/constants.d.ts +1 -1
- package/dist/src/schemas/llm/converters.d.ts +4 -4
- package/dist/src/schemas/llm/openai/converters.d.ts +1 -1
- package/dist/src/schemas/llm/openai/messageSchemas.d.ts +1 -1
- package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +2 -2
- package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +3 -3
- package/dist/src/schemas/llm/schemas.d.ts +1 -1
- package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +1 -1
- package/dist/src/sessions/addSessionNote.d.ts +11 -2
- package/dist/src/sessions/addSessionNote.d.ts.map +1 -1
- package/dist/src/sessions/addSessionNote.js +11 -2
- package/dist/src/sessions/addSessionNote.js.map +1 -1
- package/dist/src/spans/addSpanNote.d.ts +11 -5
- package/dist/src/spans/addSpanNote.d.ts.map +1 -1
- package/dist/src/spans/addSpanNote.js +13 -5
- package/dist/src/spans/addSpanNote.js.map +1 -1
- package/dist/src/spans/getSpanAnnotations.d.ts +1 -1
- package/dist/src/spans/getSpanAnnotations.d.ts.map +1 -1
- package/dist/src/traces/addTraceNote.d.ts +11 -5
- package/dist/src/traces/addTraceNote.d.ts.map +1 -1
- package/dist/src/traces/addTraceNote.js +11 -5
- package/dist/src/traces/addTraceNote.js.map +1 -1
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/docs/annotations.mdx +7 -3
- package/docs/overview.mdx +1 -1
- package/docs/sessions.mdx +20 -0
- package/docs/traces.mdx +76 -5
- package/package.json +2 -2
- package/src/__generated__/api/v1.ts +1676 -142
- package/src/constants/serverRequirements.ts +27 -0
- package/src/prompts/sdks/toOpenAI.ts +41 -8
- package/src/sessions/addSessionNote.ts +22 -3
- package/src/spans/addSpanNote.ts +20 -5
- package/src/spans/getSpanAnnotations.ts +1 -1
- package/src/traces/addTraceNote.ts +22 -6
|
@@ -24,6 +24,9 @@ export declare const GET_SPANS_FILTERS: ParameterRequirement;
|
|
|
24
24
|
export declare const LIST_PROJECT_TRACES: RouteRequirement;
|
|
25
25
|
export declare const GET_SPANS_BY_ATTRIBUTE: ParameterRequirement;
|
|
26
26
|
export declare const DATASET_UPLOAD_EXAMPLE_IDS: ParameterRequirement;
|
|
27
|
+
export declare const ADD_TRACE_NOTE_IDENTIFIER: ParameterRequirement;
|
|
28
|
+
export declare const ADD_SPAN_NOTE_IDENTIFIER: ParameterRequirement;
|
|
29
|
+
export declare const ADD_SESSION_NOTE_IDENTIFIER: ParameterRequirement;
|
|
27
30
|
/**
|
|
28
31
|
* Aggregate list of every known capability requirement.
|
|
29
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverRequirements.d.ts","sourceRoot":"","sources":["../../../src/constants/serverRequirements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,WAAW,EAAE,gBAKzB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,gBAK5B,CAAC;AAEF,eAAO,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AAO,MAAM,0BAA0B,EAAE,oBAMxC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,oBAMvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,oBAMtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,oBAMzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,qBAAqB,EAgBnD,CAAC"}
|
|
@@ -87,6 +87,27 @@ export const DATASET_UPLOAD_EXAMPLE_IDS = {
|
|
|
87
87
|
route: "POST /v1/datasets/upload",
|
|
88
88
|
minServerVersion: [15, 0, 0],
|
|
89
89
|
};
|
|
90
|
+
export const ADD_TRACE_NOTE_IDENTIFIER = {
|
|
91
|
+
kind: "parameter",
|
|
92
|
+
parameterName: "identifier",
|
|
93
|
+
parameterLocation: "body",
|
|
94
|
+
route: "POST /v1/trace_notes",
|
|
95
|
+
minServerVersion: [15, 5, 0],
|
|
96
|
+
};
|
|
97
|
+
export const ADD_SPAN_NOTE_IDENTIFIER = {
|
|
98
|
+
kind: "parameter",
|
|
99
|
+
parameterName: "identifier",
|
|
100
|
+
parameterLocation: "body",
|
|
101
|
+
route: "POST /v1/span_notes",
|
|
102
|
+
minServerVersion: [15, 5, 0],
|
|
103
|
+
};
|
|
104
|
+
export const ADD_SESSION_NOTE_IDENTIFIER = {
|
|
105
|
+
kind: "parameter",
|
|
106
|
+
parameterName: "identifier",
|
|
107
|
+
parameterLocation: "body",
|
|
108
|
+
route: "POST /v1/session_notes",
|
|
109
|
+
minServerVersion: [15, 5, 0],
|
|
110
|
+
};
|
|
90
111
|
/**
|
|
91
112
|
* Aggregate list of every known capability requirement.
|
|
92
113
|
*
|
|
@@ -106,5 +127,8 @@ export const ALL_REQUIREMENTS = [
|
|
|
106
127
|
GET_SPANS_BY_ATTRIBUTE,
|
|
107
128
|
LIST_PROJECT_TRACES,
|
|
108
129
|
DATASET_UPLOAD_EXAMPLE_IDS,
|
|
130
|
+
ADD_TRACE_NOTE_IDENTIFIER,
|
|
131
|
+
ADD_SPAN_NOTE_IDENTIFIER,
|
|
132
|
+
ADD_SESSION_NOTE_IDENTIFIER,
|
|
109
133
|
];
|
|
110
134
|
//# sourceMappingURL=serverRequirements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverRequirements.js","sourceRoot":"","sources":["../../../src/constants/serverRequirements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,MAAM,CAAC,MAAM,WAAW,GAAqB;IAC3C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,2BAA2B;IACjC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAqB;IAC9C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,2BAA2B;IACjC,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAqB;IAC/C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qBAAqB;IAC3B,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAqB;IACrD,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oCAAoC;IAC1C,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAqB;IACjD,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,yBAAyB;IAC/B,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF,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AAM,0BAA0B,GAAyB;IAC9D,IAAI,EAAE,WAAW;IACjB,aAAa,EAAE,aAAa;IAC5B,iBAAiB,EAAE,MAAM;IACzB,KAAK,EAAE,0BAA0B;IACjC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAChE,WAAW;IACX,cAAc;IACd,eAAe;IACf,qBAAqB;IACrB,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,sBAAsB;IACtB,mBAAmB;IACnB,0BAA0B;
|
|
1
|
+
{"version":3,"file":"serverRequirements.js","sourceRoot":"","sources":["../../../src/constants/serverRequirements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,MAAM,CAAC,MAAM,WAAW,GAAqB;IAC3C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,2BAA2B;IACjC,gBAAgB,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAqB;IAC9C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,2BAA2B;IACjC,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAqB;IAC/C,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,qBAAqB;IAC3B,gBAAgB,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAqB;IACrD,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,oCAAoC;IAC1C,gBAAgB,EAAE,CAAC,EA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ACd,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,sBAAsB;IACtB,mBAAmB;IACnB,0BAA0B;IAC1B,yBAAyB;IACzB,wBAAwB;IACxB,2BAA2B;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOpenAI.d.ts","sourceRoot":"","sources":["../../../../src/prompts/sdks/toOpenAI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1D,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,GACzB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,wBAGvD,cAAc,CAAC,CAAC,CAAC,KAAG,0BAA0B,GAAG,
|
|
1
|
+
{"version":3,"file":"toOpenAI.d.ts","sourceRoot":"","sources":["../../../../src/prompts/sdks/toOpenAI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACzB,MAAM,kBAAkB,CAAC;AAY1B,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG1D,YAAY,EACV,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,GACzB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,SAAS,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,wBAGvD,cAAc,CAAC,CAAC,CAAC,KAAG,0BAA0B,GAAG,IA0HnD,CAAC"}
|
|
@@ -11,13 +11,45 @@ import { formatPromptMessages } from "../../utils/formatPromptMessages.js";
|
|
|
11
11
|
export const toOpenAI = ({ prompt, variables, }) => {
|
|
12
12
|
try {
|
|
13
13
|
let invocationParameters;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
switch (prompt.invocation_parameters.type) {
|
|
15
|
+
case "openai":
|
|
16
|
+
invocationParameters = prompt.invocation_parameters.openai;
|
|
17
|
+
break;
|
|
18
|
+
case "azure_openai":
|
|
19
|
+
invocationParameters = prompt.invocation_parameters.azure_openai;
|
|
20
|
+
break;
|
|
21
|
+
case "deepseek":
|
|
22
|
+
invocationParameters = prompt.invocation_parameters.deepseek;
|
|
23
|
+
break;
|
|
24
|
+
case "xai":
|
|
25
|
+
invocationParameters = prompt.invocation_parameters.xai;
|
|
26
|
+
break;
|
|
27
|
+
case "ollama":
|
|
28
|
+
invocationParameters = prompt.invocation_parameters.ollama;
|
|
29
|
+
break;
|
|
30
|
+
case "cerebras":
|
|
31
|
+
invocationParameters = prompt.invocation_parameters.cerebras;
|
|
32
|
+
break;
|
|
33
|
+
case "fireworks":
|
|
34
|
+
invocationParameters = prompt.invocation_parameters.fireworks;
|
|
35
|
+
break;
|
|
36
|
+
case "groq":
|
|
37
|
+
invocationParameters = prompt.invocation_parameters.groq;
|
|
38
|
+
break;
|
|
39
|
+
case "moonshot":
|
|
40
|
+
invocationParameters = prompt.invocation_parameters.moonshot;
|
|
41
|
+
break;
|
|
42
|
+
case "perplexity":
|
|
43
|
+
invocationParameters = prompt.invocation_parameters.perplexity;
|
|
44
|
+
break;
|
|
45
|
+
case "together":
|
|
46
|
+
invocationParameters = prompt.invocation_parameters.together;
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
// eslint-disable-next-line no-console
|
|
50
|
+
console.warn("Prompt is not an OpenAI-family prompt, falling back to default OpenAI invocation parameters");
|
|
51
|
+
invocationParameters = {};
|
|
52
|
+
break;
|
|
21
53
|
}
|
|
22
54
|
// parts of the prompt that can be directly converted to OpenAI params
|
|
23
55
|
const baseCompletionParams = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toOpenAI.js","sourceRoot":"","sources":["../../../../src/prompts/sdks/toOpenAI.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,GACtC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAYxE;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAkC,EACxD,MAAM,EACN,SAAS,GACS,EAAqC,EAAE;IACzD,IAAI,CAAC;QACH,IAAI,oBAAyD,CAAC;QAC9D,
|
|
1
|
+
{"version":3,"file":"toOpenAI.js","sourceRoot":"","sources":["../../../../src/prompts/sdks/toOpenAI.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EACL,8BAA8B,EAC9B,iCAAiC,EACjC,qCAAqC,GACtC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAYxE;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAkC,EACxD,MAAM,EACN,SAAS,GACS,EAAqC,EAAE;IACzD,IAAI,CAAC;QACH,IAAI,oBAAyD,CAAC;QAC9D,QAAQ,MAAM,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AAiC,KAAK;YACrD,CAAC,CAAC,CAAC,iCAAiC,CAAC;gBACjC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW;gBACtC,cAAc,EAAE,QAAQ;aACzB,CAAC,IAAI,SAAS,CAAC;YAClB,CAAC,CAAC,SAAS,CAAC;QAEd,MAAM,eAAe,GAAG,MAAM,CAAC,eAAe;YAC5C,CAAC,CAAC,6BAA6B,CAAC,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;YAC7D,CAAC,CAAC,SAAS,CAAC;QAEd,mCAAmC;QACnC,MAAM,gBAAgB,GAAG;YACvB,GAAG,oBAAoB;YACvB,QAAQ;YACR,KAAK;YACL,WAAW;YACX,eAAe;SAC8B,CAAC;QAEhD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,sCAAsC;QACtC,OAAO,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAC;QAC1D,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -668,7 +668,7 @@ export declare const SDKProviderConverterMap: {
|
|
|
668
668
|
}, z.core.$strip>>, z.ZodString]>;
|
|
669
669
|
name: z.ZodOptional<z.ZodString>;
|
|
670
670
|
}, z.core.$loose>], "role">, z.ZodTransform<{
|
|
671
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
671
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
672
672
|
content: string | ({
|
|
673
673
|
type: "text";
|
|
674
674
|
text: string;
|
|
@@ -669,7 +669,7 @@ export declare const safelyConvertMessageToProvider: <TargetProviderSDK extends
|
|
|
669
669
|
}, z.core.$strip>>, z.ZodString]>;
|
|
670
670
|
name: z.ZodOptional<z.ZodString>;
|
|
671
671
|
}, z.core.$loose>], "role">, z.ZodTransform<{
|
|
672
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
672
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
673
673
|
content: string | ({
|
|
674
674
|
type: "text";
|
|
675
675
|
text: string;
|
|
@@ -1672,7 +1672,7 @@ export declare const safelyConvertToolCallToProvider: <TargetProviderSDK extends
|
|
|
1672
1672
|
}, z.core.$strip>>, z.ZodString]>;
|
|
1673
1673
|
name: z.ZodOptional<z.ZodString>;
|
|
1674
1674
|
}, z.core.$loose>], "role">, z.ZodTransform<{
|
|
1675
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
1675
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
1676
1676
|
content: string | ({
|
|
1677
1677
|
type: "text";
|
|
1678
1678
|
text: string;
|
|
@@ -2675,7 +2675,7 @@ export declare const safelyConvertToolDefinitionToProvider: <TargetProviderSDK e
|
|
|
2675
2675
|
}, z.core.$strip>>, z.ZodString]>;
|
|
2676
2676
|
name: z.ZodOptional<z.ZodString>;
|
|
2677
2677
|
}, z.core.$loose>], "role">, z.ZodTransform<{
|
|
2678
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
2678
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
2679
2679
|
content: string | ({
|
|
2680
2680
|
type: "text";
|
|
2681
2681
|
text: string;
|
|
@@ -3678,7 +3678,7 @@ export declare const safelyConvertToolChoiceToProvider: <TargetProviderSDK exten
|
|
|
3678
3678
|
}, z.core.$strip>>, z.ZodString]>;
|
|
3679
3679
|
name: z.ZodOptional<z.ZodString>;
|
|
3680
3680
|
}, z.core.$loose>], "role">, z.ZodTransform<{
|
|
3681
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
3681
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
3682
3682
|
content: string | ({
|
|
3683
3683
|
type: "text";
|
|
3684
3684
|
text: string;
|
|
@@ -235,7 +235,7 @@ export declare const openAIMessageToPhoenixPrompt: import("zod").ZodPipe<import(
|
|
|
235
235
|
}, import("zod/v4/core").$strip>>, import("zod").ZodString]>;
|
|
236
236
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
237
237
|
}, import("zod/v4/core").$loose>], "role">, import("zod").ZodTransform<{
|
|
238
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
238
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
239
239
|
content: string | ({
|
|
240
240
|
type: "text";
|
|
241
241
|
text: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
export declare const openAIMessageRoleSchema: z.ZodEnum<{
|
|
3
|
+
system: "system";
|
|
3
4
|
user: "user";
|
|
4
5
|
assistant: "assistant";
|
|
5
6
|
tool: "tool";
|
|
6
|
-
system: "system";
|
|
7
7
|
developer: "developer";
|
|
8
8
|
}>;
|
|
9
9
|
export type OpenAIMessageRole = z.infer<typeof openAIMessageRoleSchema>;
|
|
@@ -37,12 +37,12 @@ export declare const phoenixMessagePartToOpenAI: import("zod").ZodPipe<import("z
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const phoenixMessageToOpenAI: import("zod").ZodPipe<import("zod").ZodObject<{
|
|
39
39
|
role: import("zod").ZodEnum<{
|
|
40
|
+
system: "system";
|
|
40
41
|
user: "user";
|
|
41
42
|
assistant: "assistant";
|
|
42
43
|
model: "model";
|
|
43
44
|
ai: "ai";
|
|
44
45
|
tool: "tool";
|
|
45
|
-
system: "system";
|
|
46
46
|
developer: "developer";
|
|
47
47
|
}>;
|
|
48
48
|
content: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
@@ -99,7 +99,7 @@ export declare const phoenixMessageToOpenAI: import("zod").ZodPipe<import("zod")
|
|
|
99
99
|
}[] | undefined;
|
|
100
100
|
tool_call_id?: undefined;
|
|
101
101
|
}, {
|
|
102
|
-
role: "user" | "assistant" | "model" | "ai" | "tool" | "
|
|
102
|
+
role: "system" | "user" | "assistant" | "model" | "ai" | "tool" | "developer";
|
|
103
103
|
content: string | ({
|
|
104
104
|
type: "text";
|
|
105
105
|
text: string;
|
|
@@ -5,23 +5,23 @@ import z from "zod";
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
export declare const phoenixMessageRoleSchema: z.ZodEnum<{
|
|
8
|
+
system: "system";
|
|
8
9
|
user: "user";
|
|
9
10
|
assistant: "assistant";
|
|
10
11
|
model: "model";
|
|
11
12
|
ai: "ai";
|
|
12
13
|
tool: "tool";
|
|
13
|
-
system: "system";
|
|
14
14
|
developer: "developer";
|
|
15
15
|
}>;
|
|
16
16
|
export type PhoenixMessageRole = z.infer<typeof phoenixMessageRoleSchema>;
|
|
17
17
|
export declare const phoenixMessageSchema: z.ZodObject<{
|
|
18
18
|
role: z.ZodEnum<{
|
|
19
|
+
system: "system";
|
|
19
20
|
user: "user";
|
|
20
21
|
assistant: "assistant";
|
|
21
22
|
model: "model";
|
|
22
23
|
ai: "ai";
|
|
23
24
|
tool: "tool";
|
|
24
|
-
system: "system";
|
|
25
25
|
developer: "developer";
|
|
26
26
|
}>;
|
|
27
27
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -44,12 +44,12 @@ export declare const phoenixMessageSchema: z.ZodObject<{
|
|
|
44
44
|
export type PhoenixMessage = z.infer<typeof phoenixMessageSchema>;
|
|
45
45
|
export declare const phoenixMessagesSchema: z.ZodArray<z.ZodObject<{
|
|
46
46
|
role: z.ZodEnum<{
|
|
47
|
+
system: "system";
|
|
47
48
|
user: "user";
|
|
48
49
|
assistant: "assistant";
|
|
49
50
|
model: "model";
|
|
50
51
|
ai: "ai";
|
|
51
52
|
tool: "tool";
|
|
52
|
-
system: "system";
|
|
53
53
|
developer: "developer";
|
|
54
54
|
}>;
|
|
55
55
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -103,12 +103,12 @@ export declare const llmProviderMessageSchema: z.ZodUnion<readonly [z.ZodDiscrim
|
|
|
103
103
|
}, z.core.$strip>], "type">>]>;
|
|
104
104
|
}, z.core.$loose>, z.ZodObject<{
|
|
105
105
|
role: z.ZodEnum<{
|
|
106
|
+
system: "system";
|
|
106
107
|
user: "user";
|
|
107
108
|
assistant: "assistant";
|
|
108
109
|
model: "model";
|
|
109
110
|
ai: "ai";
|
|
110
111
|
tool: "tool";
|
|
111
|
-
system: "system";
|
|
112
112
|
developer: "developer";
|
|
113
113
|
}>;
|
|
114
114
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
2
|
export declare const vercelAIMessageRoleSchema: z.ZodEnum<{
|
|
3
|
+
system: "system";
|
|
3
4
|
user: "user";
|
|
4
5
|
assistant: "assistant";
|
|
5
6
|
tool: "tool";
|
|
6
|
-
system: "system";
|
|
7
7
|
}>;
|
|
8
8
|
export type VercelAIMessageRole = z.infer<typeof vercelAIMessageRoleSchema>;
|
|
9
9
|
export declare const vercelAIMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -11,6 +11,13 @@ export interface SessionNote {
|
|
|
11
11
|
* The note text to add to the session.
|
|
12
12
|
*/
|
|
13
13
|
note: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional caller-supplied identifier. When non-empty, the note is upserted
|
|
16
|
+
* on `(sessionId, name='note', identifier)` — repeated calls with the same
|
|
17
|
+
* identifier overwrite the existing note. When omitted, the server stamps a
|
|
18
|
+
* unique `px-session-note:<uuid>` identifier so each call appends a new note.
|
|
19
|
+
*/
|
|
20
|
+
identifier?: string;
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Parameters to add a session note.
|
|
@@ -21,8 +28,10 @@ export interface AddSessionNoteParams extends ClientFn {
|
|
|
21
28
|
/**
|
|
22
29
|
* Add a note to a session.
|
|
23
30
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
31
|
+
* When `sessionNote.identifier` is omitted, each call appends a new note with
|
|
32
|
+
* an auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
33
|
+
* with the same `(sessionId, name='note', identifier)` overwrite the existing
|
|
34
|
+
* note.
|
|
26
35
|
*
|
|
27
36
|
* @param params - The parameters to add a session note.
|
|
28
37
|
* @returns The ID of the created note annotation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addSessionNote.d.ts","sourceRoot":"","sources":["../../../src/sessions/addSessionNote.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addSessionNote.d.ts","sourceRoot":"","sources":["../../../src/sessions/addSessionNote.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,QAAQ;IACpD,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,cAAc,CAAC,EACnC,MAAM,EAAE,OAAO,EACf,WAAW,GACZ,EAAE,oBAAoB,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CA6BhD"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { createClient } from "../client.js";
|
|
2
|
-
import { ADD_SESSION_NOTE } from "../constants/serverRequirements.js";
|
|
2
|
+
import { ADD_SESSION_NOTE, ADD_SESSION_NOTE_IDENTIFIER, } from "../constants/serverRequirements.js";
|
|
3
3
|
import { formatApiError } from "../utils/apiErrorUtils.js";
|
|
4
4
|
import { ensureServerCapability } from "../utils/serverVersionUtils.js";
|
|
5
5
|
/**
|
|
6
6
|
* Add a note to a session.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* When `sessionNote.identifier` is omitted, each call appends a new note with
|
|
9
|
+
* an auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
10
|
+
* with the same `(sessionId, name='note', identifier)` overwrite the existing
|
|
11
|
+
* note.
|
|
10
12
|
*
|
|
11
13
|
* @param params - The parameters to add a session note.
|
|
12
14
|
* @returns The ID of the created note annotation.
|
|
@@ -26,11 +28,18 @@ import { ensureServerCapability } from "../utils/serverVersionUtils.js";
|
|
|
26
28
|
export async function addSessionNote({ client: _client, sessionNote, }) {
|
|
27
29
|
const client = _client ?? createClient();
|
|
28
30
|
await ensureServerCapability({ client, requirement: ADD_SESSION_NOTE });
|
|
31
|
+
if (sessionNote.identifier) {
|
|
32
|
+
await ensureServerCapability({
|
|
33
|
+
client,
|
|
34
|
+
requirement: ADD_SESSION_NOTE_IDENTIFIER,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
29
37
|
const { data, error } = await client.POST("/v1/session_notes", {
|
|
30
38
|
body: {
|
|
31
39
|
data: {
|
|
32
40
|
session_id: sessionNote.sessionId.trim(),
|
|
33
41
|
note: sessionNote.note,
|
|
42
|
+
identifier: sessionNote.identifier,
|
|
34
43
|
},
|
|
35
44
|
},
|
|
36
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addSessionNote.js","sourceRoot":"","sources":["../../../src/sessions/addSessionNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"addSessionNote.js","sourceRoot":"","sources":["../../../src/sessions/addSessionNote.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Note {
|
|
|
11
11
|
* The note text to add to the span
|
|
12
12
|
*/
|
|
13
13
|
note: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional caller-supplied identifier. When non-empty, the note is upserted
|
|
16
|
+
* on `(spanId, name='note', identifier)` — repeated calls with the same
|
|
17
|
+
* identifier overwrite the existing note. When omitted, the server stamps a
|
|
18
|
+
* unique `px-span-note:<uuid>` identifier so each call appends a new note.
|
|
19
|
+
*/
|
|
20
|
+
identifier?: string;
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Parameters to add a span note
|
|
@@ -21,11 +28,10 @@ export interface AddSpanNoteParams extends ClientFn {
|
|
|
21
28
|
/**
|
|
22
29
|
* Add a note to a span.
|
|
23
30
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* identifiers; otherwise re-writing the same name overwrites the existing one.
|
|
31
|
+
* When `spanNote.identifier` is omitted, each call appends a new note with an
|
|
32
|
+
* auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
33
|
+
* with the same `(spanId, name='note', identifier)` overwrite the existing
|
|
34
|
+
* note.
|
|
29
35
|
*
|
|
30
36
|
* @param params - The parameters to add a span note
|
|
31
37
|
* @returns The ID of the created note annotation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addSpanNote.d.ts","sourceRoot":"","sources":["../../../src/spans/addSpanNote.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addSpanNote.d.ts","sourceRoot":"","sources":["../../../src/spans/addSpanNote.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,QAAQ;IACjD,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,WAAW,CAAC,EAChC,MAAM,EAAE,OAAO,EACf,QAAQ,GACT,EAAE,iBAAiB,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CA4B7C"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createClient } from "../client.js";
|
|
2
|
+
import { ADD_SPAN_NOTE_IDENTIFIER } from "../constants/serverRequirements.js";
|
|
2
3
|
import { formatApiError } from "../utils/apiErrorUtils.js";
|
|
4
|
+
import { ensureServerCapability } from "../utils/serverVersionUtils.js";
|
|
3
5
|
/**
|
|
4
6
|
* Add a note to a span.
|
|
5
7
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* identifiers; otherwise re-writing the same name overwrites the existing one.
|
|
8
|
+
* When `spanNote.identifier` is omitted, each call appends a new note with an
|
|
9
|
+
* auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
10
|
+
* with the same `(spanId, name='note', identifier)` overwrite the existing
|
|
11
|
+
* note.
|
|
11
12
|
*
|
|
12
13
|
* @param params - The parameters to add a span note
|
|
13
14
|
* @returns The ID of the created note annotation
|
|
@@ -24,11 +25,18 @@ import { formatApiError } from "../utils/apiErrorUtils.js";
|
|
|
24
25
|
*/
|
|
25
26
|
export async function addSpanNote({ client: _client, spanNote, }) {
|
|
26
27
|
const client = _client ?? createClient();
|
|
28
|
+
if (spanNote.identifier) {
|
|
29
|
+
await ensureServerCapability({
|
|
30
|
+
client,
|
|
31
|
+
requirement: ADD_SPAN_NOTE_IDENTIFIER,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
27
34
|
const { data, error } = await client.POST("/v1/span_notes", {
|
|
28
35
|
body: {
|
|
29
36
|
data: {
|
|
30
37
|
span_id: spanNote.spanId.trim(),
|
|
31
38
|
note: spanNote.note,
|
|
39
|
+
identifier: spanNote.identifier,
|
|
32
40
|
},
|
|
33
41
|
},
|
|
34
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addSpanNote.js","sourceRoot":"","sources":["../../../src/spans/addSpanNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"addSpanNote.js","sourceRoot":"","sources":["../../../src/spans/addSpanNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AA8BrE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAChC,MAAM,EAAE,OAAO,EACf,QAAQ,GACU;IAClB,MAAM,MAAM,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IACzC,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;QACxB,MAAM,sBAAsB,CAAC;YAC3B,MAAM;YACN,WAAW,EAAE,wBAAwB;SACtC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE;QAC1D,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE;gBAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,UAAU,EAAE,QAAQ,CAAC,UAAU;aAChC;SACF;KACF,CAAC,CAAC;IAEH,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,4BAA4B,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export interface GetSpanAnnotationsParams extends ClientFn {
|
|
|
9
9
|
project: ProjectIdentifier;
|
|
10
10
|
/** One or more span IDs to fetch annotations for */
|
|
11
11
|
spanIds: string[];
|
|
12
|
-
/** Optional list of annotation names to include. If provided, only annotations with these names will be returned.
|
|
12
|
+
/** Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
|
|
13
13
|
includeAnnotationNames?: string[];
|
|
14
14
|
/** Optional list of annotation names to exclude from results. */
|
|
15
15
|
excludeAnnotationNames?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSpanAnnotations.d.ts","sourceRoot":"","sources":["../../../src/spans/getSpanAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,+CAA+C;IAC/C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,oDAAoD;IACpD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"getSpanAnnotations.d.ts","sourceRoot":"","sources":["../../../src/spans/getSpanAnnotations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,QAAQ;IACxD,+CAA+C;IAC/C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,oDAAoD;IACpD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,0PAA0P;IAC1P,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,iEAAiE;IACjE,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;IAClC,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,0BAA0B,GACpC,UAAU,CAAC,8BAA8B,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC;AAEjE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;IAC/E,UAAU,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC,aAAa,CAAC,CAAC;CACtF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,MAAM,EAAE,OAAO,EACf,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,EACN,KAAW,GACZ,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAwC9D"}
|
|
@@ -11,6 +11,13 @@ export interface TraceNote {
|
|
|
11
11
|
* The note text to add to the trace.
|
|
12
12
|
*/
|
|
13
13
|
note: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional caller-supplied identifier. When non-empty, the note is upserted
|
|
16
|
+
* on `(traceId, name='note', identifier)` — repeated calls with the same
|
|
17
|
+
* identifier overwrite the existing note. When omitted, the server stamps a
|
|
18
|
+
* unique `px-trace-note:<uuid>` identifier so each call appends a new note.
|
|
19
|
+
*/
|
|
20
|
+
identifier?: string;
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Parameters to add a trace note.
|
|
@@ -21,11 +28,10 @@ export interface AddTraceNoteParams extends ClientFn {
|
|
|
21
28
|
/**
|
|
22
29
|
* Add a note to a trace.
|
|
23
30
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* identifiers; otherwise re-writing the same name overwrites the existing one.
|
|
31
|
+
* When `traceNote.identifier` is omitted, each call appends a new note with an
|
|
32
|
+
* auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
33
|
+
* with the same `(traceId, name='note', identifier)` overwrite the existing
|
|
34
|
+
* note.
|
|
29
35
|
*
|
|
30
36
|
* @param params - The parameters to add a trace note.
|
|
31
37
|
* @returns The ID of the created note annotation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTraceNote.d.ts","sourceRoot":"","sources":["../../../src/traces/addTraceNote.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addTraceNote.d.ts","sourceRoot":"","sources":["../../../src/traces/addTraceNote.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,QAAQ;IAClD,SAAS,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,YAAY,CAAC,EACjC,MAAM,EAAE,OAAO,EACf,SAAS,GACV,EAAE,kBAAkB,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CA6B9C"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { createClient } from "../client.js";
|
|
2
|
-
import { ADD_TRACE_NOTE } from "../constants/serverRequirements.js";
|
|
2
|
+
import { ADD_TRACE_NOTE, ADD_TRACE_NOTE_IDENTIFIER, } from "../constants/serverRequirements.js";
|
|
3
3
|
import { formatApiError } from "../utils/apiErrorUtils.js";
|
|
4
4
|
import { ensureServerCapability } from "../utils/serverVersionUtils.js";
|
|
5
5
|
/**
|
|
6
6
|
* Add a note to a trace.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* identifiers; otherwise re-writing the same name overwrites the existing one.
|
|
8
|
+
* When `traceNote.identifier` is omitted, each call appends a new note with an
|
|
9
|
+
* auto-generated identifier. When `identifier` is non-empty, repeated calls
|
|
10
|
+
* with the same `(traceId, name='note', identifier)` overwrite the existing
|
|
11
|
+
* note.
|
|
13
12
|
*
|
|
14
13
|
* @param params - The parameters to add a trace note.
|
|
15
14
|
* @returns The ID of the created note annotation.
|
|
@@ -27,11 +26,18 @@ import { ensureServerCapability } from "../utils/serverVersionUtils.js";
|
|
|
27
26
|
export async function addTraceNote({ client: _client, traceNote, }) {
|
|
28
27
|
const client = _client ?? createClient();
|
|
29
28
|
await ensureServerCapability({ client, requirement: ADD_TRACE_NOTE });
|
|
29
|
+
if (traceNote.identifier) {
|
|
30
|
+
await ensureServerCapability({
|
|
31
|
+
client,
|
|
32
|
+
requirement: ADD_TRACE_NOTE_IDENTIFIER,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
30
35
|
const { data, error } = await client.POST("/v1/trace_notes", {
|
|
31
36
|
body: {
|
|
32
37
|
data: {
|
|
33
38
|
trace_id: traceNote.traceId.trim(),
|
|
34
39
|
note: traceNote.note,
|
|
40
|
+
identifier: traceNote.identifier,
|
|
35
41
|
},
|
|
36
42
|
},
|
|
37
43
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTraceNote.js","sourceRoot":"","sources":["../../../src/traces/addTraceNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"addTraceNote.js","sourceRoot":"","sources":["../../../src/traces/addTraceNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACL,cAAc,EACd,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AA8BrE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,EACjC,MAAM,EAAE,OAAO,EACf,SAAS,GACU;IACnB,MAAM,MAAM,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;IACzC,MAAM,sBAAsB,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IACtE,IAAI,SAAS,CAAC,UAAU,EAAE,CAAC;QACzB,MAAM,sBAAsB,CAAC;YAC3B,MAAM;YACN,WAAW,EAAE,yBAAyB;SACvC,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE;QAC3D,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE;gBAClC,IAAI,EAAE,SAAS,CAAC,IAAI;gBACpB,UAAU,EAAE,SAAS,CAAC,UAAU;a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