phonic 0.32.22 → 0.32.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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/types/GeneratedToolCall.d.ts +2 -2
- package/dist/cjs/api/types/GeneratedToolReference.d.ts +7 -0
- package/dist/cjs/api/types/GeneratedToolReference.js +3 -0
- package/dist/cjs/api/types/ResponsesToolCall.d.ts +2 -2
- package/dist/cjs/api/types/ResponsesToolReference.d.ts +9 -0
- package/dist/cjs/api/types/ResponsesToolReference.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/types/GeneratedToolCall.d.mts +2 -2
- package/dist/esm/api/types/GeneratedToolReference.d.mts +7 -0
- package/dist/esm/api/types/GeneratedToolReference.mjs +2 -0
- package/dist/esm/api/types/ResponsesToolCall.d.mts +2 -2
- package/dist/esm/api/types/ResponsesToolReference.d.mts +9 -0
- package/dist/esm/api/types/ResponsesToolReference.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phonic",
|
|
46
|
-
"X-Fern-SDK-Version": "0.32.
|
|
47
|
-
"User-Agent": "phonic/0.32.
|
|
46
|
+
"X-Fern-SDK-Version": "0.32.23",
|
|
47
|
+
"User-Agent": "phonic/0.32.23",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type * as Phonic from "../index.js";
|
|
1
2
|
export interface GeneratedToolCall {
|
|
2
3
|
/** Identifier for this tool call. Send it back as the `tool_call_id` of the matching `tool_call_output` input item. */
|
|
3
4
|
tool_call_id: string;
|
|
4
|
-
|
|
5
|
-
tool_name: string;
|
|
5
|
+
tool: Phonic.GeneratedToolReference;
|
|
6
6
|
/** Arguments the assistant produced for the request body. */
|
|
7
7
|
request_body?: Record<string, unknown> | undefined;
|
|
8
8
|
/** Arguments the assistant produced as query parameters. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type * as Phonic from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* A tool call the assistant made earlier in the conversation.
|
|
3
4
|
*/
|
|
4
5
|
export interface ResponsesToolCall {
|
|
5
6
|
/** Identifier for this tool call, unique within `input`. */
|
|
6
7
|
tool_call_id: string;
|
|
7
|
-
|
|
8
|
-
tool_name: string;
|
|
8
|
+
tool: Phonic.ResponsesToolReference;
|
|
9
9
|
/** Arguments the assistant passed in the request body. */
|
|
10
10
|
request_body?: (Record<string, unknown> | null) | undefined;
|
|
11
11
|
/** Arguments the assistant passed as query parameters. An argument cannot appear in both `request_body` and `query_params`. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pointer to the tool that was called by the assistant (see ResponsesToolCall).
|
|
3
|
+
*/
|
|
4
|
+
export interface ResponsesToolReference {
|
|
5
|
+
/** Optional tool ID, accepted for compatibility with tool calls copied from conversation items. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Name of the tool that was called. */
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
@@ -40,6 +40,7 @@ export * from "./ExtractionField.js";
|
|
|
40
40
|
export * from "./ExtractionSchema.js";
|
|
41
41
|
export * from "./GeneratedResponse.js";
|
|
42
42
|
export * from "./GeneratedToolCall.js";
|
|
43
|
+
export * from "./GeneratedToolReference.js";
|
|
43
44
|
export * from "./GenerateReplyPayload.js";
|
|
44
45
|
export * from "./GenerateResponsesResponse.js";
|
|
45
46
|
export * from "./InlineWebSocketTool.js";
|
|
@@ -64,6 +65,7 @@ export * from "./ResponsesInputItem.js";
|
|
|
64
65
|
export * from "./ResponsesToolCall.js";
|
|
65
66
|
export * from "./ResponsesToolCallOutput.js";
|
|
66
67
|
export * from "./ResponsesToolDefinition.js";
|
|
68
|
+
export * from "./ResponsesToolReference.js";
|
|
67
69
|
export * from "./ResponsesUserMessage.js";
|
|
68
70
|
export * from "./SayPayload.js";
|
|
69
71
|
export * from "./SetExternalIdPayload.js";
|
|
@@ -56,6 +56,7 @@ __exportStar(require("./ExtractionField.js"), exports);
|
|
|
56
56
|
__exportStar(require("./ExtractionSchema.js"), exports);
|
|
57
57
|
__exportStar(require("./GeneratedResponse.js"), exports);
|
|
58
58
|
__exportStar(require("./GeneratedToolCall.js"), exports);
|
|
59
|
+
__exportStar(require("./GeneratedToolReference.js"), exports);
|
|
59
60
|
__exportStar(require("./GenerateReplyPayload.js"), exports);
|
|
60
61
|
__exportStar(require("./GenerateResponsesResponse.js"), exports);
|
|
61
62
|
__exportStar(require("./InlineWebSocketTool.js"), exports);
|
|
@@ -80,6 +81,7 @@ __exportStar(require("./ResponsesInputItem.js"), exports);
|
|
|
80
81
|
__exportStar(require("./ResponsesToolCall.js"), exports);
|
|
81
82
|
__exportStar(require("./ResponsesToolCallOutput.js"), exports);
|
|
82
83
|
__exportStar(require("./ResponsesToolDefinition.js"), exports);
|
|
84
|
+
__exportStar(require("./ResponsesToolReference.js"), exports);
|
|
83
85
|
__exportStar(require("./ResponsesUserMessage.js"), exports);
|
|
84
86
|
__exportStar(require("./SayPayload.js"), exports);
|
|
85
87
|
__exportStar(require("./SetExternalIdPayload.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.23";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phonic",
|
|
9
|
-
"X-Fern-SDK-Version": "0.32.
|
|
10
|
-
"User-Agent": "phonic/0.32.
|
|
9
|
+
"X-Fern-SDK-Version": "0.32.23",
|
|
10
|
+
"User-Agent": "phonic/0.32.23",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type * as Phonic from "../index.mjs";
|
|
1
2
|
export interface GeneratedToolCall {
|
|
2
3
|
/** Identifier for this tool call. Send it back as the `tool_call_id` of the matching `tool_call_output` input item. */
|
|
3
4
|
tool_call_id: string;
|
|
4
|
-
|
|
5
|
-
tool_name: string;
|
|
5
|
+
tool: Phonic.GeneratedToolReference;
|
|
6
6
|
/** Arguments the assistant produced for the request body. */
|
|
7
7
|
request_body?: Record<string, unknown> | undefined;
|
|
8
8
|
/** Arguments the assistant produced as query parameters. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type * as Phonic from "../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* A tool call the assistant made earlier in the conversation.
|
|
3
4
|
*/
|
|
4
5
|
export interface ResponsesToolCall {
|
|
5
6
|
/** Identifier for this tool call, unique within `input`. */
|
|
6
7
|
tool_call_id: string;
|
|
7
|
-
|
|
8
|
-
tool_name: string;
|
|
8
|
+
tool: Phonic.ResponsesToolReference;
|
|
9
9
|
/** Arguments the assistant passed in the request body. */
|
|
10
10
|
request_body?: (Record<string, unknown> | null) | undefined;
|
|
11
11
|
/** Arguments the assistant passed as query parameters. An argument cannot appear in both `request_body` and `query_params`. */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A pointer to the tool that was called by the assistant (see ResponsesToolCall).
|
|
3
|
+
*/
|
|
4
|
+
export interface ResponsesToolReference {
|
|
5
|
+
/** Optional tool ID, accepted for compatibility with tool calls copied from conversation items. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Name of the tool that was called. */
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
@@ -40,6 +40,7 @@ export * from "./ExtractionField.mjs";
|
|
|
40
40
|
export * from "./ExtractionSchema.mjs";
|
|
41
41
|
export * from "./GeneratedResponse.mjs";
|
|
42
42
|
export * from "./GeneratedToolCall.mjs";
|
|
43
|
+
export * from "./GeneratedToolReference.mjs";
|
|
43
44
|
export * from "./GenerateReplyPayload.mjs";
|
|
44
45
|
export * from "./GenerateResponsesResponse.mjs";
|
|
45
46
|
export * from "./InlineWebSocketTool.mjs";
|
|
@@ -64,6 +65,7 @@ export * from "./ResponsesInputItem.mjs";
|
|
|
64
65
|
export * from "./ResponsesToolCall.mjs";
|
|
65
66
|
export * from "./ResponsesToolCallOutput.mjs";
|
|
66
67
|
export * from "./ResponsesToolDefinition.mjs";
|
|
68
|
+
export * from "./ResponsesToolReference.mjs";
|
|
67
69
|
export * from "./ResponsesUserMessage.mjs";
|
|
68
70
|
export * from "./SayPayload.mjs";
|
|
69
71
|
export * from "./SetExternalIdPayload.mjs";
|
|
@@ -40,6 +40,7 @@ export * from "./ExtractionField.mjs";
|
|
|
40
40
|
export * from "./ExtractionSchema.mjs";
|
|
41
41
|
export * from "./GeneratedResponse.mjs";
|
|
42
42
|
export * from "./GeneratedToolCall.mjs";
|
|
43
|
+
export * from "./GeneratedToolReference.mjs";
|
|
43
44
|
export * from "./GenerateReplyPayload.mjs";
|
|
44
45
|
export * from "./GenerateResponsesResponse.mjs";
|
|
45
46
|
export * from "./InlineWebSocketTool.mjs";
|
|
@@ -64,6 +65,7 @@ export * from "./ResponsesInputItem.mjs";
|
|
|
64
65
|
export * from "./ResponsesToolCall.mjs";
|
|
65
66
|
export * from "./ResponsesToolCallOutput.mjs";
|
|
66
67
|
export * from "./ResponsesToolDefinition.mjs";
|
|
68
|
+
export * from "./ResponsesToolReference.mjs";
|
|
67
69
|
export * from "./ResponsesUserMessage.mjs";
|
|
68
70
|
export * from "./SayPayload.mjs";
|
|
69
71
|
export * from "./SetExternalIdPayload.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.23";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.23";
|