opik 1.7.21 → 1.7.23
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/{Client-DS_VmSC5.d.cts → Client-D5CWaY7n.d.cts} +23 -40
- package/dist/{Client-DS_VmSC5.d.ts → Client-D5CWaY7n.d.ts} +23 -40
- package/dist/chunk-PCSI2276.js +4 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/vercel/index.cjs +4 -4
- package/dist/vercel/index.d.cts +1 -1
- package/dist/vercel/index.d.ts +1 -1
- package/dist/vercel/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FGGM2UHS.js +0 -4
|
@@ -1036,6 +1036,10 @@ interface ChatCompletionRequest {
|
|
|
1036
1036
|
tools?: Tool[];
|
|
1037
1037
|
toolChoice?: Record<string, unknown>;
|
|
1038
1038
|
parallelToolCalls?: boolean;
|
|
1039
|
+
store?: boolean;
|
|
1040
|
+
metadata?: Record<string, string>;
|
|
1041
|
+
reasoningEffort?: string;
|
|
1042
|
+
serviceTier?: string;
|
|
1039
1043
|
functions?: Function$1[];
|
|
1040
1044
|
functionCall?: FunctionCall;
|
|
1041
1045
|
}
|
|
@@ -1398,12 +1402,13 @@ interface LlmAsJudgeCode {
|
|
|
1398
1402
|
/**
|
|
1399
1403
|
* This file was auto-generated by Fern from our API Definition.
|
|
1400
1404
|
*/
|
|
1401
|
-
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1405
|
+
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1402
1406
|
declare const LlmAsJudgeMessageRole: {
|
|
1403
1407
|
readonly System: "SYSTEM";
|
|
1404
1408
|
readonly User: "USER";
|
|
1405
1409
|
readonly Ai: "AI";
|
|
1406
1410
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1411
|
+
readonly Custom: "CUSTOM";
|
|
1407
1412
|
};
|
|
1408
1413
|
|
|
1409
1414
|
/**
|
|
@@ -1501,12 +1506,13 @@ interface LlmAsJudgeCodeWrite {
|
|
|
1501
1506
|
/**
|
|
1502
1507
|
* This file was auto-generated by Fern from our API Definition.
|
|
1503
1508
|
*/
|
|
1504
|
-
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1509
|
+
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1505
1510
|
declare const LlmAsJudgeMessageWriteRole: {
|
|
1506
1511
|
readonly System: "SYSTEM";
|
|
1507
1512
|
readonly User: "USER";
|
|
1508
1513
|
readonly Ai: "AI";
|
|
1509
1514
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1515
|
+
readonly Custom: "CUSTOM";
|
|
1510
1516
|
};
|
|
1511
1517
|
|
|
1512
1518
|
/**
|
|
@@ -1628,12 +1634,13 @@ interface LlmAsJudgeCodePublic {
|
|
|
1628
1634
|
/**
|
|
1629
1635
|
* This file was auto-generated by Fern from our API Definition.
|
|
1630
1636
|
*/
|
|
1631
|
-
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1637
|
+
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1632
1638
|
declare const LlmAsJudgeMessagePublicRole: {
|
|
1633
1639
|
readonly System: "SYSTEM";
|
|
1634
1640
|
readonly User: "USER";
|
|
1635
1641
|
readonly Ai: "AI";
|
|
1636
1642
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1643
|
+
readonly Custom: "CUSTOM";
|
|
1637
1644
|
};
|
|
1638
1645
|
|
|
1639
1646
|
/**
|
|
@@ -1825,6 +1832,7 @@ interface ChatCompletionResponse {
|
|
|
1825
1832
|
choices?: ChatCompletionChoice[];
|
|
1826
1833
|
usage?: Usage;
|
|
1827
1834
|
systemFingerprint?: string;
|
|
1835
|
+
serviceTier?: string;
|
|
1828
1836
|
}
|
|
1829
1837
|
|
|
1830
1838
|
/**
|
|
@@ -1834,24 +1842,12 @@ interface CompletionTokensDetails {
|
|
|
1834
1842
|
reasoningTokens?: number;
|
|
1835
1843
|
}
|
|
1836
1844
|
|
|
1837
|
-
/**
|
|
1838
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1839
|
-
*/
|
|
1840
|
-
type DeltaRole = "system" | "user" | "assistant" | "tool" | "function";
|
|
1841
|
-
declare const DeltaRole: {
|
|
1842
|
-
readonly System: "system";
|
|
1843
|
-
readonly User: "user";
|
|
1844
|
-
readonly Assistant: "assistant";
|
|
1845
|
-
readonly Tool: "tool";
|
|
1846
|
-
readonly Function: "function";
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
1845
|
/**
|
|
1850
1846
|
* This file was auto-generated by Fern from our API Definition.
|
|
1851
1847
|
*/
|
|
1852
1848
|
|
|
1853
1849
|
interface Delta {
|
|
1854
|
-
role?:
|
|
1850
|
+
role?: string;
|
|
1855
1851
|
content?: string;
|
|
1856
1852
|
toolCalls?: ToolCall[];
|
|
1857
1853
|
functionCall?: FunctionCall;
|
|
@@ -1865,6 +1861,13 @@ interface FunctionCall {
|
|
|
1865
1861
|
arguments?: string;
|
|
1866
1862
|
}
|
|
1867
1863
|
|
|
1864
|
+
/**
|
|
1865
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1866
|
+
*/
|
|
1867
|
+
interface PromptTokensDetails {
|
|
1868
|
+
cachedTokens?: number;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1868
1871
|
/**
|
|
1869
1872
|
* This file was auto-generated by Fern from our API Definition.
|
|
1870
1873
|
*/
|
|
@@ -1883,6 +1886,7 @@ interface ToolCall {
|
|
|
1883
1886
|
interface Usage {
|
|
1884
1887
|
totalTokens?: number;
|
|
1885
1888
|
promptTokens?: number;
|
|
1889
|
+
promptTokensDetails?: PromptTokensDetails;
|
|
1886
1890
|
completionTokens?: number;
|
|
1887
1891
|
completionTokensDetails?: CompletionTokensDetails;
|
|
1888
1892
|
}
|
|
@@ -1890,42 +1894,20 @@ interface Usage {
|
|
|
1890
1894
|
/**
|
|
1891
1895
|
* This file was auto-generated by Fern from our API Definition.
|
|
1892
1896
|
*/
|
|
1893
|
-
|
|
1894
1897
|
interface Function$1 {
|
|
1895
1898
|
name?: string;
|
|
1896
1899
|
description?: string;
|
|
1897
1900
|
strict?: boolean;
|
|
1898
|
-
parameters?:
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
/**
|
|
1902
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1903
|
-
*/
|
|
1904
|
-
|
|
1905
|
-
interface JsonObjectSchema {
|
|
1906
|
-
type?: string;
|
|
1907
|
-
description?: string;
|
|
1908
|
-
properties?: Record<string, JsonSchemaElement>;
|
|
1909
|
-
required?: string[];
|
|
1910
|
-
additionalProperties?: boolean;
|
|
1911
|
-
defs?: Record<string, JsonSchemaElement>;
|
|
1901
|
+
parameters?: Record<string, Record<string, unknown>>;
|
|
1912
1902
|
}
|
|
1913
1903
|
|
|
1914
1904
|
/**
|
|
1915
1905
|
* This file was auto-generated by Fern from our API Definition.
|
|
1916
1906
|
*/
|
|
1917
|
-
|
|
1918
1907
|
interface JsonSchema {
|
|
1919
1908
|
name?: string;
|
|
1920
1909
|
strict?: boolean;
|
|
1921
|
-
schema?:
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1926
|
-
*/
|
|
1927
|
-
interface JsonSchemaElement {
|
|
1928
|
-
type?: string;
|
|
1910
|
+
schema?: Record<string, Record<string, unknown>>;
|
|
1929
1911
|
}
|
|
1930
1912
|
|
|
1931
1913
|
/**
|
|
@@ -3167,6 +3149,7 @@ interface SpanWrite {
|
|
|
3167
3149
|
tags?: string[];
|
|
3168
3150
|
usage?: Record<string, number>;
|
|
3169
3151
|
errorInfo?: ErrorInfoWrite;
|
|
3152
|
+
lastUpdatedAt?: Date;
|
|
3170
3153
|
totalEstimatedCost?: number;
|
|
3171
3154
|
totalEstimatedCostVersion?: string;
|
|
3172
3155
|
}
|
|
@@ -1036,6 +1036,10 @@ interface ChatCompletionRequest {
|
|
|
1036
1036
|
tools?: Tool[];
|
|
1037
1037
|
toolChoice?: Record<string, unknown>;
|
|
1038
1038
|
parallelToolCalls?: boolean;
|
|
1039
|
+
store?: boolean;
|
|
1040
|
+
metadata?: Record<string, string>;
|
|
1041
|
+
reasoningEffort?: string;
|
|
1042
|
+
serviceTier?: string;
|
|
1039
1043
|
functions?: Function$1[];
|
|
1040
1044
|
functionCall?: FunctionCall;
|
|
1041
1045
|
}
|
|
@@ -1398,12 +1402,13 @@ interface LlmAsJudgeCode {
|
|
|
1398
1402
|
/**
|
|
1399
1403
|
* This file was auto-generated by Fern from our API Definition.
|
|
1400
1404
|
*/
|
|
1401
|
-
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1405
|
+
type LlmAsJudgeMessageRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1402
1406
|
declare const LlmAsJudgeMessageRole: {
|
|
1403
1407
|
readonly System: "SYSTEM";
|
|
1404
1408
|
readonly User: "USER";
|
|
1405
1409
|
readonly Ai: "AI";
|
|
1406
1410
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1411
|
+
readonly Custom: "CUSTOM";
|
|
1407
1412
|
};
|
|
1408
1413
|
|
|
1409
1414
|
/**
|
|
@@ -1501,12 +1506,13 @@ interface LlmAsJudgeCodeWrite {
|
|
|
1501
1506
|
/**
|
|
1502
1507
|
* This file was auto-generated by Fern from our API Definition.
|
|
1503
1508
|
*/
|
|
1504
|
-
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1509
|
+
type LlmAsJudgeMessageWriteRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1505
1510
|
declare const LlmAsJudgeMessageWriteRole: {
|
|
1506
1511
|
readonly System: "SYSTEM";
|
|
1507
1512
|
readonly User: "USER";
|
|
1508
1513
|
readonly Ai: "AI";
|
|
1509
1514
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1515
|
+
readonly Custom: "CUSTOM";
|
|
1510
1516
|
};
|
|
1511
1517
|
|
|
1512
1518
|
/**
|
|
@@ -1628,12 +1634,13 @@ interface LlmAsJudgeCodePublic {
|
|
|
1628
1634
|
/**
|
|
1629
1635
|
* This file was auto-generated by Fern from our API Definition.
|
|
1630
1636
|
*/
|
|
1631
|
-
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT";
|
|
1637
|
+
type LlmAsJudgeMessagePublicRole = "SYSTEM" | "USER" | "AI" | "TOOL_EXECUTION_RESULT" | "CUSTOM";
|
|
1632
1638
|
declare const LlmAsJudgeMessagePublicRole: {
|
|
1633
1639
|
readonly System: "SYSTEM";
|
|
1634
1640
|
readonly User: "USER";
|
|
1635
1641
|
readonly Ai: "AI";
|
|
1636
1642
|
readonly ToolExecutionResult: "TOOL_EXECUTION_RESULT";
|
|
1643
|
+
readonly Custom: "CUSTOM";
|
|
1637
1644
|
};
|
|
1638
1645
|
|
|
1639
1646
|
/**
|
|
@@ -1825,6 +1832,7 @@ interface ChatCompletionResponse {
|
|
|
1825
1832
|
choices?: ChatCompletionChoice[];
|
|
1826
1833
|
usage?: Usage;
|
|
1827
1834
|
systemFingerprint?: string;
|
|
1835
|
+
serviceTier?: string;
|
|
1828
1836
|
}
|
|
1829
1837
|
|
|
1830
1838
|
/**
|
|
@@ -1834,24 +1842,12 @@ interface CompletionTokensDetails {
|
|
|
1834
1842
|
reasoningTokens?: number;
|
|
1835
1843
|
}
|
|
1836
1844
|
|
|
1837
|
-
/**
|
|
1838
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1839
|
-
*/
|
|
1840
|
-
type DeltaRole = "system" | "user" | "assistant" | "tool" | "function";
|
|
1841
|
-
declare const DeltaRole: {
|
|
1842
|
-
readonly System: "system";
|
|
1843
|
-
readonly User: "user";
|
|
1844
|
-
readonly Assistant: "assistant";
|
|
1845
|
-
readonly Tool: "tool";
|
|
1846
|
-
readonly Function: "function";
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
1845
|
/**
|
|
1850
1846
|
* This file was auto-generated by Fern from our API Definition.
|
|
1851
1847
|
*/
|
|
1852
1848
|
|
|
1853
1849
|
interface Delta {
|
|
1854
|
-
role?:
|
|
1850
|
+
role?: string;
|
|
1855
1851
|
content?: string;
|
|
1856
1852
|
toolCalls?: ToolCall[];
|
|
1857
1853
|
functionCall?: FunctionCall;
|
|
@@ -1865,6 +1861,13 @@ interface FunctionCall {
|
|
|
1865
1861
|
arguments?: string;
|
|
1866
1862
|
}
|
|
1867
1863
|
|
|
1864
|
+
/**
|
|
1865
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
1866
|
+
*/
|
|
1867
|
+
interface PromptTokensDetails {
|
|
1868
|
+
cachedTokens?: number;
|
|
1869
|
+
}
|
|
1870
|
+
|
|
1868
1871
|
/**
|
|
1869
1872
|
* This file was auto-generated by Fern from our API Definition.
|
|
1870
1873
|
*/
|
|
@@ -1883,6 +1886,7 @@ interface ToolCall {
|
|
|
1883
1886
|
interface Usage {
|
|
1884
1887
|
totalTokens?: number;
|
|
1885
1888
|
promptTokens?: number;
|
|
1889
|
+
promptTokensDetails?: PromptTokensDetails;
|
|
1886
1890
|
completionTokens?: number;
|
|
1887
1891
|
completionTokensDetails?: CompletionTokensDetails;
|
|
1888
1892
|
}
|
|
@@ -1890,42 +1894,20 @@ interface Usage {
|
|
|
1890
1894
|
/**
|
|
1891
1895
|
* This file was auto-generated by Fern from our API Definition.
|
|
1892
1896
|
*/
|
|
1893
|
-
|
|
1894
1897
|
interface Function$1 {
|
|
1895
1898
|
name?: string;
|
|
1896
1899
|
description?: string;
|
|
1897
1900
|
strict?: boolean;
|
|
1898
|
-
parameters?:
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
/**
|
|
1902
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1903
|
-
*/
|
|
1904
|
-
|
|
1905
|
-
interface JsonObjectSchema {
|
|
1906
|
-
type?: string;
|
|
1907
|
-
description?: string;
|
|
1908
|
-
properties?: Record<string, JsonSchemaElement>;
|
|
1909
|
-
required?: string[];
|
|
1910
|
-
additionalProperties?: boolean;
|
|
1911
|
-
defs?: Record<string, JsonSchemaElement>;
|
|
1901
|
+
parameters?: Record<string, Record<string, unknown>>;
|
|
1912
1902
|
}
|
|
1913
1903
|
|
|
1914
1904
|
/**
|
|
1915
1905
|
* This file was auto-generated by Fern from our API Definition.
|
|
1916
1906
|
*/
|
|
1917
|
-
|
|
1918
1907
|
interface JsonSchema {
|
|
1919
1908
|
name?: string;
|
|
1920
1909
|
strict?: boolean;
|
|
1921
|
-
schema?:
|
|
1922
|
-
}
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
1926
|
-
*/
|
|
1927
|
-
interface JsonSchemaElement {
|
|
1928
|
-
type?: string;
|
|
1910
|
+
schema?: Record<string, Record<string, unknown>>;
|
|
1929
1911
|
}
|
|
1930
1912
|
|
|
1931
1913
|
/**
|
|
@@ -3167,6 +3149,7 @@ interface SpanWrite {
|
|
|
3167
3149
|
tags?: string[];
|
|
3168
3150
|
usage?: Record<string, number>;
|
|
3169
3151
|
errorInfo?: ErrorInfoWrite;
|
|
3152
|
+
lastUpdatedAt?: Date;
|
|
3170
3153
|
totalEstimatedCost?: number;
|
|
3171
3154
|
totalEstimatedCostVersion?: string;
|
|
3172
3155
|
}
|