@arizeai/phoenix-client 6.9.3 → 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 +72 -20
- 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/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 +72 -20
- 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/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/package.json +1 -1
- package/src/__generated__/api/v1.ts +72 -20
- package/src/constants/serverRequirements.ts +27 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatPromptMessages.d.ts","sourceRoot":"","sources":["../../../src/utils/formatPromptMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGhF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,oBAAoB,EAC5B,cAAc,EAAE,iBAAiB,EAAE,EACnC,SAAS,GAAE,SAAc;;;;;;;
|
|
1
|
+
{"version":3,"file":"formatPromptMessages.d.ts","sourceRoot":"","sources":["../../../src/utils/formatPromptMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGhF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,oBAAoB,EAC5B,cAAc,EAAE,iBAAiB,EAAE,EACnC,SAAS,GAAE,SAAc;;;;;;;mBA4DurxJ,uDAAsB;;;;;;;;;IAlBvuxJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPromptBySelector.d.ts","sourceRoot":"","sources":["../../../src/utils/getPromptBySelector.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG;IACjD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,MAAM,EAAE,OAAO,EACf,MAAM,GACP,EAAE,yBAAyB;;
|
|
1
|
+
{"version":3,"file":"getPromptBySelector.d.ts","sourceRoot":"","sources":["../../../src/utils/getPromptBySelector.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,QAAQ,GAAG;IACjD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,MAAM,EAAE,OAAO,EACf,MAAM,GACP,EAAE,yBAAyB;;oBAkD2v9H,uDAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAA0P,uDAAsB;qBAAoD,uDAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UADto+H"}
|
|
@@ -572,7 +572,7 @@ export interface paths {
|
|
|
572
572
|
put?: never;
|
|
573
573
|
/**
|
|
574
574
|
* Create a trace note
|
|
575
|
-
* @description Add a note annotation to a trace.
|
|
575
|
+
* @description Add a note annotation to a trace. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same trace. Callers may supply a non-empty `identifier` to upsert on (trace_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
|
|
576
576
|
*/
|
|
577
577
|
post: operations["createTraceNote"];
|
|
578
578
|
delete?: never;
|
|
@@ -677,7 +677,7 @@ export interface paths {
|
|
|
677
677
|
put?: never;
|
|
678
678
|
/**
|
|
679
679
|
* Create a span note
|
|
680
|
-
* @description Add a note annotation to a span.
|
|
680
|
+
* @description Add a note annotation to a span. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same span. Callers may supply a non-empty `identifier` to upsert on (span_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
|
|
681
681
|
*/
|
|
682
682
|
post: operations["createSpanNote"];
|
|
683
683
|
delete?: never;
|
|
@@ -1028,7 +1028,7 @@ export interface paths {
|
|
|
1028
1028
|
put?: never;
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Create a session note
|
|
1031
|
-
* @description Add a note annotation to a session.
|
|
1031
|
+
* @description Add a note annotation to a session. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same session. Callers may supply a non-empty `identifier` to upsert on (session_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.
|
|
1032
1032
|
*/
|
|
1033
1033
|
post: operations["createSessionNote"];
|
|
1034
1034
|
delete?: never;
|
|
@@ -1557,6 +1557,31 @@ export interface components {
|
|
|
1557
1557
|
/** Parts */
|
|
1558
1558
|
parts: (components["schemas"]["TextUIPart"] | components["schemas"]["ReasoningUIPart"] | components["schemas"]["ToolInputStreamingPart"] | components["schemas"]["ToolInputAvailablePart"] | components["schemas"]["ToolOutputAvailablePart"] | components["schemas"]["ToolOutputErrorPart"] | components["schemas"]["ToolApprovalRequestedPart"] | components["schemas"]["ToolApprovalRespondedPart"] | components["schemas"]["ToolOutputDeniedPart"] | components["schemas"]["DynamicToolInputStreamingPart"] | components["schemas"]["DynamicToolInputAvailablePart"] | components["schemas"]["DynamicToolOutputAvailablePart"] | components["schemas"]["DynamicToolOutputErrorPart"] | components["schemas"]["DynamicToolApprovalRequestedPart"] | components["schemas"]["DynamicToolApprovalRespondedPart"] | components["schemas"]["DynamicToolOutputDeniedPart"] | components["schemas"]["SourceUrlUIPart"] | components["schemas"]["SourceDocumentUIPart"] | components["schemas"]["FileUIPart"] | components["schemas"]["DataUIPart"] | components["schemas"]["StepStartUIPart"])[];
|
|
1559
1559
|
};
|
|
1560
|
+
/**
|
|
1561
|
+
* BuiltInProviderModelSelection
|
|
1562
|
+
* @description Chat against a Phoenix built-in provider.
|
|
1563
|
+
*
|
|
1564
|
+
* Credentials and connection details (base URL, Azure endpoint, AWS
|
|
1565
|
+
* region) are resolved from the secret store first and the process
|
|
1566
|
+
* environment second. ``openai_api_type`` is honoured by the OpenAI and
|
|
1567
|
+
* Azure OpenAI branches; other providers ignore it.
|
|
1568
|
+
*/
|
|
1569
|
+
BuiltInProviderModelSelection: {
|
|
1570
|
+
/**
|
|
1571
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1572
|
+
* @enum {string}
|
|
1573
|
+
*/
|
|
1574
|
+
providerType: "builtin";
|
|
1575
|
+
provider: components["schemas"]["ModelProvider"];
|
|
1576
|
+
/** Modelname */
|
|
1577
|
+
modelName: string;
|
|
1578
|
+
/**
|
|
1579
|
+
* Openaiapitype
|
|
1580
|
+
* @default responses
|
|
1581
|
+
* @enum {string}
|
|
1582
|
+
*/
|
|
1583
|
+
openaiApiType?: "chat_completions" | "responses";
|
|
1584
|
+
};
|
|
1560
1585
|
/** CategoricalAnnotationConfig */
|
|
1561
1586
|
CategoricalAnnotationConfig: {
|
|
1562
1587
|
/** Name */
|
|
@@ -1634,6 +1659,8 @@ export interface components {
|
|
|
1634
1659
|
/** Contexts */
|
|
1635
1660
|
contexts?: components["schemas"]["ChatContext"][];
|
|
1636
1661
|
capabilities?: components["schemas"]["AgentCapabilities"];
|
|
1662
|
+
/** Model */
|
|
1663
|
+
model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
|
|
1637
1664
|
} & {
|
|
1638
1665
|
[key: string]: unknown;
|
|
1639
1666
|
};
|
|
@@ -1669,6 +1696,8 @@ export interface components {
|
|
|
1669
1696
|
/** Contexts */
|
|
1670
1697
|
contexts?: components["schemas"]["ChatContext"][];
|
|
1671
1698
|
capabilities?: components["schemas"]["AgentCapabilities"];
|
|
1699
|
+
/** Model */
|
|
1700
|
+
model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
|
|
1672
1701
|
} & {
|
|
1673
1702
|
[key: string]: unknown;
|
|
1674
1703
|
};
|
|
@@ -1887,6 +1916,21 @@ export interface components {
|
|
|
1887
1916
|
/** Data */
|
|
1888
1917
|
data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"] | components["schemas"]["LDAPUser"];
|
|
1889
1918
|
};
|
|
1919
|
+
/**
|
|
1920
|
+
* CustomProviderModelSelection
|
|
1921
|
+
* @description Chat against a stored custom provider record.
|
|
1922
|
+
*/
|
|
1923
|
+
CustomProviderModelSelection: {
|
|
1924
|
+
/**
|
|
1925
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1926
|
+
* @enum {string}
|
|
1927
|
+
*/
|
|
1928
|
+
providerType: "custom";
|
|
1929
|
+
/** Providerid */
|
|
1930
|
+
providerId: string;
|
|
1931
|
+
/** Modelname */
|
|
1932
|
+
modelName: string;
|
|
1933
|
+
};
|
|
1890
1934
|
/**
|
|
1891
1935
|
* DataUIPart
|
|
1892
1936
|
* @description Data part with dynamic type based on data name.
|
|
@@ -3983,6 +4027,12 @@ export interface components {
|
|
|
3983
4027
|
* @description The note text to add to the session
|
|
3984
4028
|
*/
|
|
3985
4029
|
note: string;
|
|
4030
|
+
/**
|
|
4031
|
+
* Identifier
|
|
4032
|
+
* @description Optional caller-supplied identifier. When non-empty, the note is upserted on (session_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-session-note:<uuid>' identifier so each call appends a new note.
|
|
4033
|
+
* @default
|
|
4034
|
+
*/
|
|
4035
|
+
identifier?: string;
|
|
3986
4036
|
};
|
|
3987
4037
|
/** SessionTraceData */
|
|
3988
4038
|
SessionTraceData: {
|
|
@@ -4326,6 +4376,12 @@ export interface components {
|
|
|
4326
4376
|
* @description The note text to add to the span
|
|
4327
4377
|
*/
|
|
4328
4378
|
note: string;
|
|
4379
|
+
/**
|
|
4380
|
+
* Identifier
|
|
4381
|
+
* @description Optional caller-supplied identifier. When non-empty, the note is upserted on (span_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-span-note:<uuid>' identifier so each call appends a new note.
|
|
4382
|
+
* @default
|
|
4383
|
+
*/
|
|
4384
|
+
identifier?: string;
|
|
4329
4385
|
};
|
|
4330
4386
|
/** SpansResponseBody */
|
|
4331
4387
|
SpansResponseBody: {
|
|
@@ -4797,6 +4853,12 @@ export interface components {
|
|
|
4797
4853
|
* @description The note text to add to the trace
|
|
4798
4854
|
*/
|
|
4799
4855
|
note: string;
|
|
4856
|
+
/**
|
|
4857
|
+
* Identifier
|
|
4858
|
+
* @description Optional caller-supplied identifier. When non-empty, the note is upserted on (trace_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note. When omitted or empty, the server stamps a unique 'px-trace-note:<uuid>' identifier so each call appends a new note.
|
|
4859
|
+
* @default
|
|
4860
|
+
*/
|
|
4861
|
+
identifier?: string;
|
|
4800
4862
|
};
|
|
4801
4863
|
/** TraceSpanData */
|
|
4802
4864
|
TraceSpanData: {
|
|
@@ -4984,6 +5046,8 @@ export interface components {
|
|
|
4984
5046
|
exportRemoteTraces?: boolean;
|
|
4985
5047
|
/** Messages */
|
|
4986
5048
|
messages: components["schemas"]["UIMessage"][];
|
|
5049
|
+
/** Model */
|
|
5050
|
+
model: components["schemas"]["CustomProviderModelSelection"] | components["schemas"]["BuiltInProviderModelSelection"];
|
|
4987
5051
|
};
|
|
4988
5052
|
/** _SummarizeResponse */
|
|
4989
5053
|
_SummarizeResponse: {
|
|
@@ -5218,7 +5282,7 @@ export interface operations {
|
|
|
5218
5282
|
span_ids?: string[] | null;
|
|
5219
5283
|
/** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `span_ids` must be supplied. When combined with `span_ids`, results are the AND-intersection of both filters. */
|
|
5220
5284
|
identifier?: string[] | null;
|
|
5221
|
-
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned.
|
|
5285
|
+
/** @description 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). */
|
|
5222
5286
|
include_annotation_names?: string[] | null;
|
|
5223
5287
|
/** @description Optional list of annotation names to exclude from results. */
|
|
5224
5288
|
exclude_annotation_names?: string[] | null;
|
|
@@ -5342,7 +5406,7 @@ export interface operations {
|
|
|
5342
5406
|
trace_ids?: string[] | null;
|
|
5343
5407
|
/** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `trace_ids` must be supplied. When combined with `trace_ids`, results are the AND-intersection of both filters. */
|
|
5344
5408
|
identifier?: string[] | null;
|
|
5345
|
-
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned.
|
|
5409
|
+
/** @description 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). */
|
|
5346
5410
|
include_annotation_names?: string[] | null;
|
|
5347
5411
|
/** @description Optional list of annotation names to exclude from results. */
|
|
5348
5412
|
exclude_annotation_names?: string[] | null;
|
|
@@ -5466,7 +5530,7 @@ export interface operations {
|
|
|
5466
5530
|
session_ids?: string[] | null;
|
|
5467
5531
|
/** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `session_ids` must be supplied. When combined with `session_ids`, results are the AND-intersection of both filters. */
|
|
5468
5532
|
identifier?: string[] | null;
|
|
5469
|
-
/** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned.
|
|
5533
|
+
/** @description 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). */
|
|
5470
5534
|
include_annotation_names?: string[] | null;
|
|
5471
5535
|
/** @description Optional list of annotation names to exclude from results. */
|
|
5472
5536
|
exclude_annotation_names?: string[] | null;
|
|
@@ -8801,13 +8865,7 @@ export interface operations {
|
|
|
8801
8865
|
};
|
|
8802
8866
|
chat_agents__agent_id__sessions__session_id__chat_post: {
|
|
8803
8867
|
parameters: {
|
|
8804
|
-
query
|
|
8805
|
-
provider_type: "custom" | "builtin";
|
|
8806
|
-
model_name: string;
|
|
8807
|
-
provider_id?: string | null;
|
|
8808
|
-
provider?: components["schemas"]["ModelProvider"] | null;
|
|
8809
|
-
openai_api_type?: "chat_completions" | "responses";
|
|
8810
|
-
};
|
|
8868
|
+
query?: never;
|
|
8811
8869
|
header?: never;
|
|
8812
8870
|
path: {
|
|
8813
8871
|
agent_id: string;
|
|
@@ -8843,13 +8901,7 @@ export interface operations {
|
|
|
8843
8901
|
};
|
|
8844
8902
|
summarize_endpoint_agents__agent_id__sessions__session_id__summary_post: {
|
|
8845
8903
|
parameters: {
|
|
8846
|
-
query
|
|
8847
|
-
provider_type: "custom" | "builtin";
|
|
8848
|
-
model_name: string;
|
|
8849
|
-
provider_id?: string | null;
|
|
8850
|
-
provider?: components["schemas"]["ModelProvider"] | null;
|
|
8851
|
-
openai_api_type?: "chat_completions" | "responses";
|
|
8852
|
-
};
|
|
8904
|
+
query?: never;
|
|
8853
8905
|
header?: never;
|
|
8854
8906
|
path: {
|
|
8855
8907
|
agent_id: string;
|