@orq-ai/node 4.0.0-rc.5 → 4.0.0-rc.8
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/bin/mcp-server.js +7488 -544
- package/bin/mcp-server.js.map +52 -52
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createagent.d.ts +4141 -865
- package/models/operations/createagent.d.ts.map +1 -1
- package/models/operations/createagent.js +3767 -768
- package/models/operations/createagent.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememorystore.d.ts +42 -42
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +61 -63
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +263 -263
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +345 -345
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +10 -10
- package/models/operations/deploymentgetconfig.d.ts +19 -19
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +22 -22
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +4 -4
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +4 -4
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getagent.d.ts +1614 -11
- package/models/operations/getagent.d.ts.map +1 -1
- package/models/operations/getagent.js +1475 -9
- package/models/operations/getagent.js.map +1 -1
- package/models/operations/getallprompts.d.ts +4 -4
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -4
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +4 -4
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -4
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -4
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -4
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +1614 -11
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +1481 -9
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listagenttasks.d.ts +1614 -11
- package/models/operations/listagenttasks.d.ts.map +1 -1
- package/models/operations/listagenttasks.js +1479 -9
- package/models/operations/listagenttasks.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +4 -4
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -4
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/runagent.d.ts +2176 -503
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +1534 -9
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +2128 -455
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +1630 -89
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +4129 -853
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +3837 -825
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updateprompt.d.ts +8 -8
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -8
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createagent.ts +7853 -1626
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememorystore.ts +120 -103
- package/src/models/operations/createprompt.ts +742 -621
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/deploymentgetconfig.ts +60 -44
- package/src/models/operations/deployments.ts +25 -20
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getagent.ts +3274 -246
- package/src/models/operations/getallprompts.ts +30 -20
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +28 -20
- package/src/models/operations/getpromptversion.ts +30 -20
- package/src/models/operations/listagents.ts +3351 -270
- package/src/models/operations/listagenttasks.ts +3347 -180
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +30 -20
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/runagent.ts +3799 -610
- package/src/models/operations/streamrunagent.ts +3945 -605
- package/src/models/operations/updateagent.ts +8331 -1757
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updateprompt.ts +58 -40
- package/src/models/operations/updatetool.ts +10 -10
|
@@ -3,664 +3,2337 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
7
7
|
*/
|
|
8
|
-
export declare const
|
|
9
|
-
readonly
|
|
8
|
+
export declare const StreamRunAgentModelVoice: {
|
|
9
|
+
readonly Alloy: "alloy";
|
|
10
|
+
readonly Echo: "echo";
|
|
11
|
+
readonly Fable: "fable";
|
|
12
|
+
readonly Onyx: "onyx";
|
|
13
|
+
readonly Nova: "nova";
|
|
14
|
+
readonly Shimmer: "shimmer";
|
|
10
15
|
};
|
|
11
16
|
/**
|
|
12
|
-
*
|
|
17
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
13
18
|
*/
|
|
14
|
-
export type
|
|
19
|
+
export type StreamRunAgentModelVoice = ClosedEnum<typeof StreamRunAgentModelVoice>;
|
|
15
20
|
/**
|
|
16
|
-
*
|
|
21
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
17
22
|
*/
|
|
18
|
-
export declare const
|
|
19
|
-
readonly
|
|
23
|
+
export declare const StreamRunAgentModelFormat: {
|
|
24
|
+
readonly Wav: "wav";
|
|
25
|
+
readonly Mp3: "mp3";
|
|
26
|
+
readonly Flac: "flac";
|
|
27
|
+
readonly Opus: "opus";
|
|
28
|
+
readonly Pcm16: "pcm16";
|
|
20
29
|
};
|
|
21
30
|
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export type StreamRunAgentRoleUserMessage = ClosedEnum<typeof StreamRunAgentRoleUserMessage>;
|
|
25
|
-
/**
|
|
26
|
-
* Message role (user or tool for continuing executions)
|
|
31
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
27
32
|
*/
|
|
28
|
-
export type
|
|
29
|
-
export declare const StreamRunAgentPublicMessagePartAgentsRequestKind: {
|
|
30
|
-
readonly ToolResult: "tool_result";
|
|
31
|
-
};
|
|
32
|
-
export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartAgentsRequestKind>;
|
|
33
|
+
export type StreamRunAgentModelFormat = ClosedEnum<typeof StreamRunAgentModelFormat>;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
35
36
|
*/
|
|
36
|
-
export type
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
export type StreamRunAgentModelAudio = {
|
|
38
|
+
/**
|
|
39
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
40
|
+
*/
|
|
41
|
+
voice: StreamRunAgentModelVoice;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
44
|
+
*/
|
|
45
|
+
format: StreamRunAgentModelFormat;
|
|
43
46
|
};
|
|
44
|
-
export declare const
|
|
45
|
-
readonly
|
|
47
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestType: {
|
|
48
|
+
readonly JsonSchema: "json_schema";
|
|
46
49
|
};
|
|
47
|
-
export type
|
|
48
|
-
|
|
49
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
50
|
-
*/
|
|
51
|
-
export type StreamRunAgentFileFileInURIFormat = {
|
|
50
|
+
export type StreamRunAgentResponseFormatAgentsRequestType = ClosedEnum<typeof StreamRunAgentResponseFormatAgentsRequestType>;
|
|
51
|
+
export type StreamRunAgentResponseFormatJsonSchema = {
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
description?: string | undefined;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
name: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
schema?: any | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
66
|
+
*/
|
|
67
|
+
strict?: boolean | undefined;
|
|
68
|
+
};
|
|
69
|
+
export type StreamRunAgentResponseFormat3 = {
|
|
70
|
+
type: StreamRunAgentResponseFormatAgentsRequestType;
|
|
71
|
+
jsonSchema: StreamRunAgentResponseFormatJsonSchema;
|
|
72
|
+
};
|
|
73
|
+
export declare const StreamRunAgentResponseFormatAgentsType: {
|
|
74
|
+
readonly JsonObject: "json_object";
|
|
75
|
+
};
|
|
76
|
+
export type StreamRunAgentResponseFormatAgentsType = ClosedEnum<typeof StreamRunAgentResponseFormatAgentsType>;
|
|
77
|
+
export type StreamRunAgentResponseFormat2 = {
|
|
78
|
+
type: StreamRunAgentResponseFormatAgentsType;
|
|
79
|
+
};
|
|
80
|
+
export declare const StreamRunAgentResponseFormatType: {
|
|
81
|
+
readonly Text: "text";
|
|
82
|
+
};
|
|
83
|
+
export type StreamRunAgentResponseFormatType = ClosedEnum<typeof StreamRunAgentResponseFormatType>;
|
|
84
|
+
export type StreamRunAgentResponseFormat1 = {
|
|
85
|
+
type: StreamRunAgentResponseFormatType;
|
|
64
86
|
};
|
|
65
87
|
/**
|
|
66
|
-
*
|
|
88
|
+
* An object specifying the format that the model must output
|
|
67
89
|
*/
|
|
68
|
-
export type
|
|
90
|
+
export type StreamRunAgentModelResponseFormat = StreamRunAgentResponseFormat3 | StreamRunAgentResponseFormat1 | StreamRunAgentResponseFormat2;
|
|
91
|
+
/**
|
|
92
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
93
|
+
*/
|
|
94
|
+
export type StreamRunAgentModelStop = string | Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
97
|
+
*/
|
|
98
|
+
export type StreamRunAgentModelStreamOptions = {
|
|
69
99
|
/**
|
|
70
|
-
*
|
|
100
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
71
101
|
*/
|
|
72
|
-
|
|
102
|
+
includeUsage?: boolean | undefined;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Enables or disables the thinking mode capability
|
|
106
|
+
*/
|
|
107
|
+
export declare const StreamRunAgentModelType: {
|
|
108
|
+
readonly Enabled: "enabled";
|
|
109
|
+
readonly Disabled: "disabled";
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Enables or disables the thinking mode capability
|
|
113
|
+
*/
|
|
114
|
+
export type StreamRunAgentModelType = ClosedEnum<typeof StreamRunAgentModelType>;
|
|
115
|
+
export type StreamRunAgentModelThinking = {
|
|
73
116
|
/**
|
|
74
|
-
*
|
|
117
|
+
* Enables or disables the thinking mode capability
|
|
75
118
|
*/
|
|
76
|
-
|
|
119
|
+
type: StreamRunAgentModelType;
|
|
77
120
|
/**
|
|
78
|
-
*
|
|
121
|
+
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
79
122
|
*/
|
|
80
|
-
|
|
123
|
+
budgetTokens: number;
|
|
81
124
|
};
|
|
82
|
-
export type StreamRunAgentPublicMessagePartFile = StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
83
125
|
/**
|
|
84
|
-
*
|
|
126
|
+
* The type of the tool. Currently, only function is supported.
|
|
85
127
|
*/
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
89
|
-
metadata?: {
|
|
90
|
-
[k: string]: any;
|
|
91
|
-
} | undefined;
|
|
92
|
-
};
|
|
93
|
-
export declare const StreamRunAgentPublicMessagePartKind: {
|
|
94
|
-
readonly Text: "text";
|
|
128
|
+
export declare const StreamRunAgentToolChoiceType: {
|
|
129
|
+
readonly Function: "function";
|
|
95
130
|
};
|
|
96
|
-
export type StreamRunAgentPublicMessagePartKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
97
131
|
/**
|
|
98
|
-
*
|
|
132
|
+
* The type of the tool. Currently, only function is supported.
|
|
99
133
|
*/
|
|
100
|
-
export type
|
|
101
|
-
|
|
102
|
-
|
|
134
|
+
export type StreamRunAgentToolChoiceType = ClosedEnum<typeof StreamRunAgentToolChoiceType>;
|
|
135
|
+
export type StreamRunAgentToolChoiceFunction = {
|
|
136
|
+
/**
|
|
137
|
+
* The name of the function to call.
|
|
138
|
+
*/
|
|
139
|
+
name?: string | undefined;
|
|
140
|
+
};
|
|
141
|
+
export type StreamRunAgentToolChoice2 = {
|
|
142
|
+
/**
|
|
143
|
+
* The type of the tool. Currently, only function is supported.
|
|
144
|
+
*/
|
|
145
|
+
type?: StreamRunAgentToolChoiceType | undefined;
|
|
146
|
+
function: StreamRunAgentToolChoiceFunction;
|
|
147
|
+
};
|
|
148
|
+
export declare const StreamRunAgentToolChoice1: {
|
|
149
|
+
readonly None: "none";
|
|
150
|
+
readonly Auto: "auto";
|
|
151
|
+
readonly Required: "required";
|
|
103
152
|
};
|
|
153
|
+
export type StreamRunAgentToolChoice1 = ClosedEnum<typeof StreamRunAgentToolChoice1>;
|
|
104
154
|
/**
|
|
105
|
-
*
|
|
155
|
+
* Controls which (if any) tool is called by the model.
|
|
106
156
|
*/
|
|
107
|
-
export type
|
|
157
|
+
export type StreamRunAgentModelToolChoice = StreamRunAgentToolChoice2 | StreamRunAgentToolChoice1;
|
|
158
|
+
export declare const StreamRunAgentModelModalities: {
|
|
159
|
+
readonly Text: "text";
|
|
160
|
+
readonly Audio: "audio";
|
|
161
|
+
};
|
|
162
|
+
export type StreamRunAgentModelModalities = ClosedEnum<typeof StreamRunAgentModelModalities>;
|
|
108
163
|
/**
|
|
109
|
-
*
|
|
164
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
110
165
|
*/
|
|
111
|
-
export type
|
|
166
|
+
export type StreamRunAgentModelWebSearchOptions = {
|
|
112
167
|
/**
|
|
113
|
-
*
|
|
168
|
+
* Whether to enable web search for this request.
|
|
114
169
|
*/
|
|
115
|
-
|
|
170
|
+
enabled?: boolean | undefined;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Model parameters to customize behavior (snake_case). Common: temperature (0-1, controls randomness), max_tokens (response length). Advanced: top_p (nucleus sampling), frequency_penalty, presence_penalty, response_format, reasoning_effort. Not all parameters work with all models.
|
|
174
|
+
*/
|
|
175
|
+
export type StreamRunAgentModelParameters = {
|
|
116
176
|
/**
|
|
117
|
-
*
|
|
177
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
118
178
|
*/
|
|
119
|
-
|
|
179
|
+
audio?: StreamRunAgentModelAudio | null | undefined;
|
|
120
180
|
/**
|
|
121
|
-
*
|
|
181
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
122
182
|
*/
|
|
123
|
-
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
127
|
-
*/
|
|
128
|
-
export type StreamRunAgentContact = {
|
|
183
|
+
frequencyPenalty?: number | null | undefined;
|
|
129
184
|
/**
|
|
130
|
-
*
|
|
185
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
186
|
+
*
|
|
187
|
+
* @remarks
|
|
188
|
+
*
|
|
189
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
131
190
|
*/
|
|
132
|
-
|
|
191
|
+
maxTokens?: number | null | undefined;
|
|
133
192
|
/**
|
|
134
|
-
*
|
|
193
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
135
194
|
*/
|
|
136
|
-
|
|
195
|
+
maxCompletionTokens?: number | null | undefined;
|
|
137
196
|
/**
|
|
138
|
-
*
|
|
197
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
139
198
|
*/
|
|
140
|
-
|
|
199
|
+
logprobs?: boolean | null | undefined;
|
|
141
200
|
/**
|
|
142
|
-
*
|
|
201
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
143
202
|
*/
|
|
144
|
-
|
|
145
|
-
[k: string]: any;
|
|
146
|
-
}> | undefined;
|
|
203
|
+
topLogprobs?: number | null | undefined;
|
|
147
204
|
/**
|
|
148
|
-
*
|
|
205
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
149
206
|
*/
|
|
150
|
-
|
|
207
|
+
n?: number | null | undefined;
|
|
151
208
|
/**
|
|
152
|
-
*
|
|
209
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
153
210
|
*/
|
|
154
|
-
|
|
155
|
-
};
|
|
156
|
-
/**
|
|
157
|
-
* Thread information to group related requests
|
|
158
|
-
*/
|
|
159
|
-
export type StreamRunAgentThread = {
|
|
211
|
+
presencePenalty?: number | null | undefined;
|
|
160
212
|
/**
|
|
161
|
-
*
|
|
213
|
+
* An object specifying the format that the model must output
|
|
162
214
|
*/
|
|
163
|
-
|
|
215
|
+
responseFormat?: StreamRunAgentResponseFormat3 | StreamRunAgentResponseFormat1 | StreamRunAgentResponseFormat2 | undefined;
|
|
164
216
|
/**
|
|
165
|
-
*
|
|
217
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
166
218
|
*/
|
|
167
|
-
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
171
|
-
*/
|
|
172
|
-
export type StreamRunAgentMemory = {
|
|
219
|
+
reasoningEffort?: string | undefined;
|
|
173
220
|
/**
|
|
174
|
-
*
|
|
221
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
175
222
|
*/
|
|
176
|
-
|
|
177
|
-
};
|
|
178
|
-
export type StreamRunAgentKnowledgeBases = {
|
|
223
|
+
verbosity?: string | undefined;
|
|
179
224
|
/**
|
|
180
|
-
*
|
|
225
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
181
226
|
*/
|
|
182
|
-
|
|
183
|
-
};
|
|
184
|
-
export type StreamRunAgentTeamOfAgents = {
|
|
227
|
+
seed?: number | null | undefined;
|
|
185
228
|
/**
|
|
186
|
-
*
|
|
229
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
187
230
|
*/
|
|
188
|
-
|
|
231
|
+
stop?: string | Array<string> | null | undefined;
|
|
189
232
|
/**
|
|
190
|
-
*
|
|
233
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
191
234
|
*/
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
|
|
195
|
-
readonly Function: "function";
|
|
196
|
-
};
|
|
197
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
|
|
198
|
-
export type StreamRunAgentAgentToolInputRunFunction = {
|
|
235
|
+
streamOptions?: StreamRunAgentModelStreamOptions | null | undefined;
|
|
236
|
+
thinking?: StreamRunAgentModelThinking | undefined;
|
|
199
237
|
/**
|
|
200
|
-
*
|
|
238
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
201
239
|
*/
|
|
202
|
-
|
|
240
|
+
temperature?: number | null | undefined;
|
|
203
241
|
/**
|
|
204
|
-
*
|
|
242
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
205
243
|
*/
|
|
206
|
-
|
|
244
|
+
topP?: number | null | undefined;
|
|
207
245
|
/**
|
|
208
|
-
*
|
|
246
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
209
247
|
*/
|
|
210
|
-
|
|
248
|
+
topK?: number | null | undefined;
|
|
211
249
|
/**
|
|
212
|
-
*
|
|
250
|
+
* Controls which (if any) tool is called by the model.
|
|
213
251
|
*/
|
|
214
|
-
|
|
215
|
-
[k: string]: any;
|
|
216
|
-
} | undefined;
|
|
217
|
-
};
|
|
218
|
-
/**
|
|
219
|
-
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
220
|
-
*/
|
|
221
|
-
export type AgentToolInputRunFunctionToolRun = {
|
|
222
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
252
|
+
toolChoice?: StreamRunAgentToolChoice2 | StreamRunAgentToolChoice1 | undefined;
|
|
223
253
|
/**
|
|
224
|
-
*
|
|
254
|
+
* Whether to enable parallel function calling during tool use.
|
|
225
255
|
*/
|
|
226
|
-
|
|
227
|
-
id?: string | undefined;
|
|
228
|
-
displayName?: string | undefined;
|
|
229
|
-
description?: string | undefined;
|
|
230
|
-
function: StreamRunAgentAgentToolInputRunFunction;
|
|
231
|
-
requiresApproval?: boolean | undefined;
|
|
232
|
-
};
|
|
233
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type: {
|
|
234
|
-
readonly Code: "code";
|
|
235
|
-
};
|
|
236
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
|
|
237
|
-
export declare const AgentToolInputRunLanguage: {
|
|
238
|
-
readonly Python: "python";
|
|
239
|
-
};
|
|
240
|
-
export type AgentToolInputRunLanguage = ClosedEnum<typeof AgentToolInputRunLanguage>;
|
|
241
|
-
export type AgentToolInputRunCodeTool = {
|
|
256
|
+
parallelToolCalls?: boolean | undefined;
|
|
242
257
|
/**
|
|
243
|
-
*
|
|
258
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
244
259
|
*/
|
|
245
|
-
|
|
246
|
-
[k: string]: any;
|
|
247
|
-
} | undefined;
|
|
248
|
-
language: AgentToolInputRunLanguage;
|
|
260
|
+
modalities?: Array<StreamRunAgentModelModalities> | null | undefined;
|
|
249
261
|
/**
|
|
250
|
-
*
|
|
262
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
251
263
|
*/
|
|
252
|
-
|
|
264
|
+
webSearchOptions?: StreamRunAgentModelWebSearchOptions | undefined;
|
|
253
265
|
};
|
|
254
266
|
/**
|
|
255
|
-
*
|
|
267
|
+
* Model configuration with parameters
|
|
256
268
|
*/
|
|
257
|
-
export type
|
|
258
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
269
|
+
export type StreamRunAgentModel2 = {
|
|
259
270
|
/**
|
|
260
|
-
*
|
|
271
|
+
* Model ID or provider/model string
|
|
261
272
|
*/
|
|
262
|
-
|
|
263
|
-
id?: string | undefined;
|
|
264
|
-
displayName?: string | undefined;
|
|
273
|
+
id: string;
|
|
265
274
|
/**
|
|
266
|
-
*
|
|
275
|
+
* Optional integration ID for custom configurations
|
|
267
276
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
277
|
+
integrationId?: string | null | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* Model parameters to customize behavior (snake_case). Common: temperature (0-1, controls randomness), max_tokens (response length). Advanced: top_p (nucleus sampling), frequency_penalty, presence_penalty, response_format, reasoning_effort. Not all parameters work with all models.
|
|
280
|
+
*/
|
|
281
|
+
parameters?: StreamRunAgentModelParameters | undefined;
|
|
271
282
|
};
|
|
272
|
-
|
|
273
|
-
|
|
283
|
+
/**
|
|
284
|
+
* The language model that powers the agent. Can be a simple string (e.g., "openai/gpt-4o") or an object with model ID and parameters. The model must support tool calling capabilities.
|
|
285
|
+
*/
|
|
286
|
+
export type StreamRunAgentModel = StreamRunAgentModel2 | string;
|
|
287
|
+
/**
|
|
288
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
289
|
+
*/
|
|
290
|
+
export declare const StreamRunAgentFallbackModelsVoice: {
|
|
291
|
+
readonly Alloy: "alloy";
|
|
292
|
+
readonly Echo: "echo";
|
|
293
|
+
readonly Fable: "fable";
|
|
294
|
+
readonly Onyx: "onyx";
|
|
295
|
+
readonly Nova: "nova";
|
|
296
|
+
readonly Shimmer: "shimmer";
|
|
274
297
|
};
|
|
275
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
|
|
276
298
|
/**
|
|
277
|
-
* The
|
|
299
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
278
300
|
*/
|
|
279
|
-
export
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
301
|
+
export type StreamRunAgentFallbackModelsVoice = ClosedEnum<typeof StreamRunAgentFallbackModelsVoice>;
|
|
302
|
+
/**
|
|
303
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
304
|
+
*/
|
|
305
|
+
export declare const StreamRunAgentFallbackModelsFormat: {
|
|
306
|
+
readonly Wav: "wav";
|
|
307
|
+
readonly Mp3: "mp3";
|
|
308
|
+
readonly Flac: "flac";
|
|
309
|
+
readonly Opus: "opus";
|
|
310
|
+
readonly Pcm16: "pcm16";
|
|
284
311
|
};
|
|
285
312
|
/**
|
|
286
|
-
*
|
|
313
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
287
314
|
*/
|
|
288
|
-
export type
|
|
315
|
+
export type StreamRunAgentFallbackModelsFormat = ClosedEnum<typeof StreamRunAgentFallbackModelsFormat>;
|
|
289
316
|
/**
|
|
290
|
-
*
|
|
317
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
291
318
|
*/
|
|
292
|
-
export type
|
|
319
|
+
export type StreamRunAgentFallbackModelsAudio = {
|
|
293
320
|
/**
|
|
294
|
-
* The
|
|
321
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
295
322
|
*/
|
|
296
|
-
|
|
323
|
+
voice: StreamRunAgentFallbackModelsVoice;
|
|
297
324
|
/**
|
|
298
|
-
*
|
|
325
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
299
326
|
*/
|
|
300
|
-
|
|
327
|
+
format: StreamRunAgentFallbackModelsFormat;
|
|
328
|
+
};
|
|
329
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type: {
|
|
330
|
+
readonly JsonSchema: "json_schema";
|
|
331
|
+
};
|
|
332
|
+
export type StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type = ClosedEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type>;
|
|
333
|
+
export type StreamRunAgentResponseFormatAgentsJsonSchema = {
|
|
301
334
|
/**
|
|
302
|
-
*
|
|
335
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
303
336
|
*/
|
|
304
|
-
|
|
305
|
-
[k: string]: string;
|
|
306
|
-
} | undefined;
|
|
337
|
+
description?: string | undefined;
|
|
307
338
|
/**
|
|
308
|
-
* The
|
|
339
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
309
340
|
*/
|
|
310
|
-
|
|
311
|
-
[k: string]: any;
|
|
312
|
-
} | undefined;
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* The type of the argument.
|
|
316
|
-
*/
|
|
317
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType: {
|
|
318
|
-
readonly String: "string";
|
|
319
|
-
readonly Number: "number";
|
|
320
|
-
readonly Boolean: "boolean";
|
|
321
|
-
};
|
|
322
|
-
/**
|
|
323
|
-
* The type of the argument.
|
|
324
|
-
*/
|
|
325
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
|
|
326
|
-
/**
|
|
327
|
-
* The default value of the argument.
|
|
328
|
-
*/
|
|
329
|
-
export type AgentToolInputRunDefaultValue = string | number | boolean;
|
|
330
|
-
export type AgentToolInputRunArguments = {
|
|
331
|
-
/**
|
|
332
|
-
* The type of the argument.
|
|
333
|
-
*/
|
|
334
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
335
|
-
/**
|
|
336
|
-
* A description of the argument.
|
|
337
|
-
*/
|
|
338
|
-
description: string;
|
|
341
|
+
name: string;
|
|
339
342
|
/**
|
|
340
|
-
*
|
|
343
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
341
344
|
*/
|
|
342
|
-
|
|
345
|
+
schema?: any | undefined;
|
|
343
346
|
/**
|
|
344
|
-
*
|
|
347
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
345
348
|
*/
|
|
346
|
-
|
|
349
|
+
strict?: boolean | undefined;
|
|
347
350
|
};
|
|
348
|
-
export type
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
*/
|
|
352
|
-
blueprint: AgentToolInputRunBlueprint;
|
|
353
|
-
/**
|
|
354
|
-
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
355
|
-
*/
|
|
356
|
-
arguments?: {
|
|
357
|
-
[k: string]: AgentToolInputRunArguments;
|
|
358
|
-
} | undefined;
|
|
351
|
+
export type StreamRunAgentResponseFormatAgents3 = {
|
|
352
|
+
type: StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type;
|
|
353
|
+
jsonSchema: StreamRunAgentResponseFormatAgentsJsonSchema;
|
|
359
354
|
};
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
*/
|
|
363
|
-
export type AgentToolInputRunHTTPToolRun = {
|
|
364
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
365
|
-
/**
|
|
366
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
367
|
-
*/
|
|
368
|
-
key: string;
|
|
369
|
-
id?: string | undefined;
|
|
370
|
-
displayName?: string | undefined;
|
|
371
|
-
/**
|
|
372
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
373
|
-
*/
|
|
374
|
-
description: string;
|
|
375
|
-
http: AgentToolInputRunHttp;
|
|
376
|
-
requiresApproval?: boolean | undefined;
|
|
355
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType: {
|
|
356
|
+
readonly JsonObject: "json_object";
|
|
377
357
|
};
|
|
378
|
-
export
|
|
379
|
-
|
|
358
|
+
export type StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType = ClosedEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType>;
|
|
359
|
+
export type StreamRunAgentResponseFormatAgents2 = {
|
|
360
|
+
type: StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType;
|
|
380
361
|
};
|
|
381
|
-
export
|
|
382
|
-
|
|
383
|
-
* Returns the current date and time
|
|
384
|
-
*/
|
|
385
|
-
export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
|
|
386
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
387
|
-
/**
|
|
388
|
-
* Whether this tool requires approval before execution
|
|
389
|
-
*/
|
|
390
|
-
requiresApproval?: boolean | undefined;
|
|
362
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyType: {
|
|
363
|
+
readonly Text: "text";
|
|
391
364
|
};
|
|
392
|
-
export
|
|
393
|
-
|
|
365
|
+
export type StreamRunAgentResponseFormatAgentsRequestRequestBodyType = ClosedEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyType>;
|
|
366
|
+
export type StreamRunAgentResponseFormatAgents1 = {
|
|
367
|
+
type: StreamRunAgentResponseFormatAgentsRequestRequestBodyType;
|
|
394
368
|
};
|
|
395
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
|
|
396
369
|
/**
|
|
397
|
-
*
|
|
370
|
+
* An object specifying the format that the model must output
|
|
398
371
|
*/
|
|
399
|
-
export type
|
|
400
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
401
|
-
/**
|
|
402
|
-
* Whether this tool requires approval before execution
|
|
403
|
-
*/
|
|
404
|
-
requiresApproval?: boolean | undefined;
|
|
405
|
-
};
|
|
406
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type: {
|
|
407
|
-
readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
|
|
408
|
-
};
|
|
409
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
|
|
372
|
+
export type StreamRunAgentFallbackModelsResponseFormat = StreamRunAgentResponseFormatAgents3 | StreamRunAgentResponseFormatAgents1 | StreamRunAgentResponseFormatAgents2;
|
|
410
373
|
/**
|
|
411
|
-
*
|
|
374
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
412
375
|
*/
|
|
413
|
-
export type
|
|
414
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
415
|
-
/**
|
|
416
|
-
* Whether this tool requires approval before execution
|
|
417
|
-
*/
|
|
418
|
-
requiresApproval?: boolean | undefined;
|
|
419
|
-
};
|
|
420
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type: {
|
|
421
|
-
readonly DeleteMemoryDocument: "delete_memory_document";
|
|
422
|
-
};
|
|
423
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
|
|
376
|
+
export type StreamRunAgentFallbackModelsStop = string | Array<string>;
|
|
424
377
|
/**
|
|
425
|
-
*
|
|
378
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
426
379
|
*/
|
|
427
|
-
export type
|
|
428
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
380
|
+
export type StreamRunAgentFallbackModelsStreamOptions = {
|
|
429
381
|
/**
|
|
430
|
-
*
|
|
382
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
431
383
|
*/
|
|
432
|
-
|
|
433
|
-
};
|
|
434
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type: {
|
|
435
|
-
readonly RetrieveMemoryStores: "retrieve_memory_stores";
|
|
384
|
+
includeUsage?: boolean | undefined;
|
|
436
385
|
};
|
|
437
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type>;
|
|
438
386
|
/**
|
|
439
|
-
*
|
|
387
|
+
* Enables or disables the thinking mode capability
|
|
440
388
|
*/
|
|
441
|
-
export
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* Whether this tool requires approval before execution
|
|
445
|
-
*/
|
|
446
|
-
requiresApproval?: boolean | undefined;
|
|
447
|
-
};
|
|
448
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType: {
|
|
449
|
-
readonly WriteMemoryStore: "write_memory_store";
|
|
389
|
+
export declare const StreamRunAgentFallbackModelsType: {
|
|
390
|
+
readonly Enabled: "enabled";
|
|
391
|
+
readonly Disabled: "disabled";
|
|
450
392
|
};
|
|
451
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
|
|
452
393
|
/**
|
|
453
|
-
*
|
|
394
|
+
* Enables or disables the thinking mode capability
|
|
454
395
|
*/
|
|
455
|
-
export type
|
|
456
|
-
|
|
396
|
+
export type StreamRunAgentFallbackModelsType = ClosedEnum<typeof StreamRunAgentFallbackModelsType>;
|
|
397
|
+
export type StreamRunAgentFallbackModelsThinking = {
|
|
457
398
|
/**
|
|
458
|
-
*
|
|
399
|
+
* Enables or disables the thinking mode capability
|
|
459
400
|
*/
|
|
460
|
-
|
|
461
|
-
};
|
|
462
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType: {
|
|
463
|
-
readonly QueryMemoryStore: "query_memory_store";
|
|
464
|
-
};
|
|
465
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
|
|
466
|
-
/**
|
|
467
|
-
* Queries agent memory stores for context
|
|
468
|
-
*/
|
|
469
|
-
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
|
|
470
|
-
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
401
|
+
type: StreamRunAgentFallbackModelsType;
|
|
471
402
|
/**
|
|
472
|
-
*
|
|
403
|
+
* Determines how many tokens the model can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than `max_tokens`.
|
|
473
404
|
*/
|
|
474
|
-
|
|
475
|
-
};
|
|
476
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType: {
|
|
477
|
-
readonly RetrieveAgents: "retrieve_agents";
|
|
405
|
+
budgetTokens: number;
|
|
478
406
|
};
|
|
479
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
|
|
480
407
|
/**
|
|
481
|
-
*
|
|
408
|
+
* The type of the tool. Currently, only function is supported.
|
|
482
409
|
*/
|
|
483
|
-
export
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* Whether this tool requires approval before execution
|
|
487
|
-
*/
|
|
488
|
-
requiresApproval?: boolean | undefined;
|
|
489
|
-
};
|
|
490
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsRequestType: {
|
|
491
|
-
readonly CallSubAgent: "call_sub_agent";
|
|
410
|
+
export declare const StreamRunAgentToolChoiceAgentsType: {
|
|
411
|
+
readonly Function: "function";
|
|
492
412
|
};
|
|
493
|
-
export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType>;
|
|
494
413
|
/**
|
|
495
|
-
*
|
|
414
|
+
* The type of the tool. Currently, only function is supported.
|
|
496
415
|
*/
|
|
497
|
-
export type
|
|
498
|
-
|
|
416
|
+
export type StreamRunAgentToolChoiceAgentsType = ClosedEnum<typeof StreamRunAgentToolChoiceAgentsType>;
|
|
417
|
+
export type StreamRunAgentToolChoiceAgentsFunction = {
|
|
499
418
|
/**
|
|
500
|
-
*
|
|
419
|
+
* The name of the function to call.
|
|
501
420
|
*/
|
|
502
|
-
|
|
503
|
-
};
|
|
504
|
-
export declare const StreamRunAgentAgentToolInputRunAgentsType: {
|
|
505
|
-
readonly WebScraper: "web_scraper";
|
|
421
|
+
name?: string | undefined;
|
|
506
422
|
};
|
|
507
|
-
export type
|
|
508
|
-
/**
|
|
509
|
-
* Scrapes and extracts content from web pages
|
|
510
|
-
*/
|
|
511
|
-
export type StreamRunAgentAgentToolInputRunWebScraperTool = {
|
|
512
|
-
type: StreamRunAgentAgentToolInputRunAgentsType;
|
|
423
|
+
export type StreamRunAgentToolChoiceAgents2 = {
|
|
513
424
|
/**
|
|
514
|
-
*
|
|
425
|
+
* The type of the tool. Currently, only function is supported.
|
|
515
426
|
*/
|
|
516
|
-
|
|
427
|
+
type?: StreamRunAgentToolChoiceAgentsType | undefined;
|
|
428
|
+
function: StreamRunAgentToolChoiceAgentsFunction;
|
|
517
429
|
};
|
|
518
|
-
export declare const
|
|
519
|
-
readonly
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
/**
|
|
523
|
-
* Performs Google searches to retrieve web content
|
|
524
|
-
*/
|
|
525
|
-
export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
526
|
-
type: StreamRunAgentAgentToolInputRunType;
|
|
527
|
-
/**
|
|
528
|
-
* Whether this tool requires approval before execution
|
|
529
|
-
*/
|
|
530
|
-
requiresApproval?: boolean | undefined;
|
|
430
|
+
export declare const StreamRunAgentToolChoiceAgents1: {
|
|
431
|
+
readonly None: "none";
|
|
432
|
+
readonly Auto: "auto";
|
|
433
|
+
readonly Required: "required";
|
|
531
434
|
};
|
|
435
|
+
export type StreamRunAgentToolChoiceAgents1 = ClosedEnum<typeof StreamRunAgentToolChoiceAgents1>;
|
|
532
436
|
/**
|
|
533
|
-
*
|
|
534
|
-
*/
|
|
535
|
-
export type StreamRunAgentAgentToolInputRun = AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool;
|
|
536
|
-
/**
|
|
537
|
-
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
437
|
+
* Controls which (if any) tool is called by the model.
|
|
538
438
|
*/
|
|
539
|
-
export
|
|
540
|
-
|
|
541
|
-
readonly
|
|
542
|
-
readonly
|
|
439
|
+
export type StreamRunAgentFallbackModelsToolChoice = StreamRunAgentToolChoiceAgents2 | StreamRunAgentToolChoiceAgents1;
|
|
440
|
+
export declare const StreamRunAgentFallbackModelsModalities: {
|
|
441
|
+
readonly Text: "text";
|
|
442
|
+
readonly Audio: "audio";
|
|
543
443
|
};
|
|
444
|
+
export type StreamRunAgentFallbackModelsModalities = ClosedEnum<typeof StreamRunAgentFallbackModelsModalities>;
|
|
544
445
|
/**
|
|
545
|
-
*
|
|
446
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
546
447
|
*/
|
|
547
|
-
export type
|
|
548
|
-
export type StreamRunAgentSettings = {
|
|
448
|
+
export type StreamRunAgentFallbackModelsWebSearchOptions = {
|
|
549
449
|
/**
|
|
550
|
-
*
|
|
450
|
+
* Whether to enable web search for this request.
|
|
551
451
|
*/
|
|
552
|
-
|
|
452
|
+
enabled?: boolean | undefined;
|
|
453
|
+
};
|
|
454
|
+
export type StreamRunAgentFallbackModelsParameters = {
|
|
553
455
|
/**
|
|
554
|
-
*
|
|
456
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
555
457
|
*/
|
|
556
|
-
|
|
458
|
+
audio?: StreamRunAgentFallbackModelsAudio | null | undefined;
|
|
557
459
|
/**
|
|
558
|
-
*
|
|
460
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
559
461
|
*/
|
|
560
|
-
|
|
462
|
+
frequencyPenalty?: number | null | undefined;
|
|
561
463
|
/**
|
|
562
|
-
*
|
|
464
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
465
|
+
*
|
|
466
|
+
* @remarks
|
|
467
|
+
*
|
|
468
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
563
469
|
*/
|
|
564
|
-
|
|
565
|
-
};
|
|
566
|
-
export type StreamRunAgentRequestBody = {
|
|
470
|
+
maxTokens?: number | null | undefined;
|
|
567
471
|
/**
|
|
568
|
-
*
|
|
472
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
569
473
|
*/
|
|
570
|
-
|
|
474
|
+
maxCompletionTokens?: number | null | undefined;
|
|
571
475
|
/**
|
|
572
|
-
*
|
|
476
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
573
477
|
*/
|
|
574
|
-
|
|
478
|
+
logprobs?: boolean | null | undefined;
|
|
575
479
|
/**
|
|
576
|
-
*
|
|
480
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
577
481
|
*/
|
|
578
|
-
|
|
482
|
+
topLogprobs?: number | null | undefined;
|
|
579
483
|
/**
|
|
580
|
-
*
|
|
484
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
581
485
|
*/
|
|
582
|
-
|
|
486
|
+
n?: number | null | undefined;
|
|
583
487
|
/**
|
|
584
|
-
*
|
|
488
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
585
489
|
*/
|
|
586
|
-
|
|
490
|
+
presencePenalty?: number | null | undefined;
|
|
587
491
|
/**
|
|
588
|
-
*
|
|
492
|
+
* An object specifying the format that the model must output
|
|
589
493
|
*/
|
|
590
|
-
|
|
494
|
+
responseFormat?: StreamRunAgentResponseFormatAgents3 | StreamRunAgentResponseFormatAgents1 | StreamRunAgentResponseFormatAgents2 | undefined;
|
|
591
495
|
/**
|
|
592
|
-
*
|
|
496
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
593
497
|
*/
|
|
594
|
-
|
|
498
|
+
reasoningEffort?: string | undefined;
|
|
595
499
|
/**
|
|
596
|
-
*
|
|
500
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
597
501
|
*/
|
|
598
|
-
|
|
599
|
-
[k: string]: any;
|
|
600
|
-
} | undefined;
|
|
502
|
+
verbosity?: string | undefined;
|
|
601
503
|
/**
|
|
602
|
-
*
|
|
504
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
603
505
|
*/
|
|
604
|
-
|
|
506
|
+
seed?: number | null | undefined;
|
|
605
507
|
/**
|
|
606
|
-
*
|
|
508
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
607
509
|
*/
|
|
608
|
-
|
|
510
|
+
stop?: string | Array<string> | null | undefined;
|
|
609
511
|
/**
|
|
610
|
-
*
|
|
512
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
611
513
|
*/
|
|
612
|
-
|
|
514
|
+
streamOptions?: StreamRunAgentFallbackModelsStreamOptions | null | undefined;
|
|
515
|
+
thinking?: StreamRunAgentFallbackModelsThinking | undefined;
|
|
613
516
|
/**
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
* @remarks
|
|
617
|
-
*
|
|
618
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
619
|
-
*
|
|
620
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
517
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
621
518
|
*/
|
|
622
|
-
|
|
519
|
+
temperature?: number | null | undefined;
|
|
623
520
|
/**
|
|
624
|
-
*
|
|
521
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
625
522
|
*/
|
|
626
|
-
|
|
523
|
+
topP?: number | null | undefined;
|
|
627
524
|
/**
|
|
628
|
-
*
|
|
525
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
629
526
|
*/
|
|
630
|
-
|
|
527
|
+
topK?: number | null | undefined;
|
|
631
528
|
/**
|
|
632
|
-
*
|
|
529
|
+
* Controls which (if any) tool is called by the model.
|
|
633
530
|
*/
|
|
634
|
-
|
|
531
|
+
toolChoice?: StreamRunAgentToolChoiceAgents2 | StreamRunAgentToolChoiceAgents1 | undefined;
|
|
635
532
|
/**
|
|
636
|
-
*
|
|
533
|
+
* Whether to enable parallel function calling during tool use.
|
|
637
534
|
*/
|
|
638
|
-
|
|
535
|
+
parallelToolCalls?: boolean | undefined;
|
|
639
536
|
/**
|
|
640
|
-
*
|
|
537
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
641
538
|
*/
|
|
642
|
-
|
|
643
|
-
settings: StreamRunAgentSettings;
|
|
539
|
+
modalities?: Array<StreamRunAgentFallbackModelsModalities> | null | undefined;
|
|
644
540
|
/**
|
|
645
|
-
*
|
|
541
|
+
* This tool searches the web for relevant results to use in a response. Learn more about the web search tool.
|
|
646
542
|
*/
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
543
|
+
webSearchOptions?: StreamRunAgentFallbackModelsWebSearchOptions | undefined;
|
|
544
|
+
};
|
|
545
|
+
export type StreamRunAgentFallbackModels2 = {
|
|
650
546
|
/**
|
|
651
|
-
*
|
|
547
|
+
* Fallback model ID
|
|
652
548
|
*/
|
|
653
|
-
|
|
549
|
+
id: string;
|
|
550
|
+
integrationId?: string | null | undefined;
|
|
551
|
+
parameters?: StreamRunAgentFallbackModelsParameters | undefined;
|
|
654
552
|
};
|
|
553
|
+
export type StreamRunAgentFallbackModels = StreamRunAgentFallbackModels2 | string;
|
|
655
554
|
/**
|
|
656
|
-
*
|
|
555
|
+
* Tool message
|
|
657
556
|
*/
|
|
658
|
-
export
|
|
557
|
+
export declare const StreamRunAgentRoleToolMessage: {
|
|
558
|
+
readonly Tool: "tool";
|
|
559
|
+
};
|
|
560
|
+
/**
|
|
561
|
+
* Tool message
|
|
562
|
+
*/
|
|
563
|
+
export type StreamRunAgentRoleToolMessage = ClosedEnum<typeof StreamRunAgentRoleToolMessage>;
|
|
564
|
+
/**
|
|
565
|
+
* User message
|
|
566
|
+
*/
|
|
567
|
+
export declare const StreamRunAgentRoleUserMessage: {
|
|
568
|
+
readonly User: "user";
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* User message
|
|
572
|
+
*/
|
|
573
|
+
export type StreamRunAgentRoleUserMessage = ClosedEnum<typeof StreamRunAgentRoleUserMessage>;
|
|
574
|
+
/**
|
|
575
|
+
* Message role (user or tool for continuing executions)
|
|
576
|
+
*/
|
|
577
|
+
export type StreamRunAgentRole = StreamRunAgentRoleUserMessage | StreamRunAgentRoleToolMessage;
|
|
578
|
+
export declare const StreamRunAgentPublicMessagePartAgentsRequestKind: {
|
|
579
|
+
readonly ToolResult: "tool_result";
|
|
580
|
+
};
|
|
581
|
+
export type StreamRunAgentPublicMessagePartAgentsRequestKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartAgentsRequestKind>;
|
|
582
|
+
/**
|
|
583
|
+
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
584
|
+
*/
|
|
585
|
+
export type StreamRunAgentPublicMessagePartToolResultPart = {
|
|
586
|
+
kind: StreamRunAgentPublicMessagePartAgentsRequestKind;
|
|
587
|
+
toolCallId: string;
|
|
588
|
+
result?: any | undefined;
|
|
589
|
+
metadata?: {
|
|
590
|
+
[k: string]: any;
|
|
591
|
+
} | undefined;
|
|
592
|
+
};
|
|
593
|
+
export declare const StreamRunAgentPublicMessagePartAgentsKind: {
|
|
594
|
+
readonly File: "file";
|
|
595
|
+
};
|
|
596
|
+
export type StreamRunAgentPublicMessagePartAgentsKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartAgentsKind>;
|
|
597
|
+
/**
|
|
598
|
+
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
599
|
+
*/
|
|
600
|
+
export type StreamRunAgentFileFileInURIFormat = {
|
|
659
601
|
/**
|
|
660
|
-
*
|
|
602
|
+
* URL for the File content
|
|
661
603
|
*/
|
|
662
|
-
|
|
604
|
+
uri: string;
|
|
605
|
+
/**
|
|
606
|
+
* Optional mimeType for the file
|
|
607
|
+
*/
|
|
608
|
+
mimeType?: string | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* Optional name for the file
|
|
611
|
+
*/
|
|
612
|
+
name?: string | undefined;
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
616
|
+
*/
|
|
617
|
+
export type StreamRunAgentFileBinaryFormat = {
|
|
618
|
+
/**
|
|
619
|
+
* base64 encoded content of the file
|
|
620
|
+
*/
|
|
621
|
+
bytes: string;
|
|
622
|
+
/**
|
|
623
|
+
* Optional mimeType for the file
|
|
624
|
+
*/
|
|
625
|
+
mimeType?: string | undefined;
|
|
626
|
+
/**
|
|
627
|
+
* Optional name for the file
|
|
628
|
+
*/
|
|
629
|
+
name?: string | undefined;
|
|
630
|
+
};
|
|
631
|
+
export type StreamRunAgentPublicMessagePartFile = StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
632
|
+
/**
|
|
633
|
+
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
634
|
+
*/
|
|
635
|
+
export type StreamRunAgentPublicMessagePartFilePart = {
|
|
636
|
+
kind: StreamRunAgentPublicMessagePartAgentsKind;
|
|
637
|
+
file: StreamRunAgentFileBinaryFormat | StreamRunAgentFileFileInURIFormat;
|
|
638
|
+
metadata?: {
|
|
639
|
+
[k: string]: any;
|
|
640
|
+
} | undefined;
|
|
641
|
+
};
|
|
642
|
+
export declare const StreamRunAgentPublicMessagePartKind: {
|
|
643
|
+
readonly Text: "text";
|
|
644
|
+
};
|
|
645
|
+
export type StreamRunAgentPublicMessagePartKind = ClosedEnum<typeof StreamRunAgentPublicMessagePartKind>;
|
|
646
|
+
/**
|
|
647
|
+
* Text content part. Use this to send text messages to the agent.
|
|
648
|
+
*/
|
|
649
|
+
export type StreamRunAgentPublicMessagePartTextPart = {
|
|
650
|
+
kind: StreamRunAgentPublicMessagePartKind;
|
|
651
|
+
text: string;
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
655
|
+
*/
|
|
656
|
+
export type StreamRunAgentPublicMessagePart = StreamRunAgentPublicMessagePartTextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart;
|
|
657
|
+
/**
|
|
658
|
+
* The A2A format message containing the task for the agent to perform.
|
|
659
|
+
*/
|
|
660
|
+
export type StreamRunAgentMessage = {
|
|
661
|
+
/**
|
|
662
|
+
* Optional A2A message ID in ULID format
|
|
663
|
+
*/
|
|
664
|
+
messageId?: string | undefined;
|
|
665
|
+
/**
|
|
666
|
+
* Message role (user or tool for continuing executions)
|
|
667
|
+
*/
|
|
668
|
+
role: StreamRunAgentRoleUserMessage | StreamRunAgentRoleToolMessage;
|
|
669
|
+
/**
|
|
670
|
+
* A2A message parts (text, file, or tool_result only)
|
|
671
|
+
*/
|
|
672
|
+
parts: Array<StreamRunAgentPublicMessagePartTextPart | StreamRunAgentPublicMessagePartFilePart | StreamRunAgentPublicMessagePartToolResultPart>;
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
676
|
+
*/
|
|
677
|
+
export type StreamRunAgentContact = {
|
|
678
|
+
/**
|
|
679
|
+
* Unique identifier for the contact
|
|
680
|
+
*/
|
|
681
|
+
id: string;
|
|
682
|
+
/**
|
|
683
|
+
* Display name of the contact
|
|
684
|
+
*/
|
|
685
|
+
displayName?: string | undefined;
|
|
686
|
+
/**
|
|
687
|
+
* Email address of the contact
|
|
688
|
+
*/
|
|
689
|
+
email?: string | undefined;
|
|
690
|
+
/**
|
|
691
|
+
* A hash of key/value pairs containing any other data about the contact
|
|
692
|
+
*/
|
|
693
|
+
metadata?: Array<{
|
|
694
|
+
[k: string]: any;
|
|
695
|
+
}> | undefined;
|
|
696
|
+
/**
|
|
697
|
+
* URL to the contact's avatar or logo
|
|
698
|
+
*/
|
|
699
|
+
logoUrl?: string | undefined;
|
|
700
|
+
/**
|
|
701
|
+
* A list of tags associated with the contact
|
|
702
|
+
*/
|
|
703
|
+
tags?: Array<string> | undefined;
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* Thread information to group related requests
|
|
707
|
+
*/
|
|
708
|
+
export type StreamRunAgentThread = {
|
|
709
|
+
/**
|
|
710
|
+
* Unique thread identifier to group related invocations.
|
|
711
|
+
*/
|
|
712
|
+
id: string;
|
|
713
|
+
/**
|
|
714
|
+
* Optional tags to differentiate or categorize threads
|
|
715
|
+
*/
|
|
716
|
+
tags?: Array<string> | undefined;
|
|
717
|
+
};
|
|
718
|
+
/**
|
|
719
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
720
|
+
*/
|
|
721
|
+
export type StreamRunAgentMemory = {
|
|
722
|
+
/**
|
|
723
|
+
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
724
|
+
*/
|
|
725
|
+
entityId: string;
|
|
726
|
+
};
|
|
727
|
+
export type StreamRunAgentKnowledgeBases = {
|
|
728
|
+
/**
|
|
729
|
+
* Unique identifier of the knowledge base to search
|
|
730
|
+
*/
|
|
731
|
+
knowledgeId: string;
|
|
732
|
+
};
|
|
733
|
+
export type StreamRunAgentTeamOfAgents = {
|
|
734
|
+
/**
|
|
735
|
+
* The unique key of the agent within the workspace
|
|
736
|
+
*/
|
|
737
|
+
key: string;
|
|
738
|
+
/**
|
|
739
|
+
* The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
|
|
740
|
+
*/
|
|
741
|
+
role?: string | undefined;
|
|
742
|
+
};
|
|
743
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
|
|
744
|
+
readonly Function: "function";
|
|
745
|
+
};
|
|
746
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
|
|
747
|
+
export type StreamRunAgentAgentToolInputRunFunction = {
|
|
748
|
+
/**
|
|
749
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
750
|
+
*/
|
|
751
|
+
name: string;
|
|
752
|
+
/**
|
|
753
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
754
|
+
*/
|
|
755
|
+
description?: string | undefined;
|
|
756
|
+
/**
|
|
757
|
+
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
758
|
+
*/
|
|
759
|
+
strict?: boolean | undefined;
|
|
760
|
+
/**
|
|
761
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
762
|
+
*/
|
|
763
|
+
parameters?: {
|
|
764
|
+
[k: string]: any;
|
|
765
|
+
} | undefined;
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
* Function tool with inline definition for on-the-fly creation in run endpoint
|
|
769
|
+
*/
|
|
770
|
+
export type AgentToolInputRunFunctionToolRun = {
|
|
771
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type;
|
|
772
|
+
/**
|
|
773
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
774
|
+
*/
|
|
775
|
+
key: string;
|
|
776
|
+
id?: string | undefined;
|
|
777
|
+
displayName?: string | undefined;
|
|
778
|
+
description?: string | undefined;
|
|
779
|
+
function: StreamRunAgentAgentToolInputRunFunction;
|
|
780
|
+
requiresApproval?: boolean | undefined;
|
|
781
|
+
};
|
|
782
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type: {
|
|
783
|
+
readonly Code: "code";
|
|
784
|
+
};
|
|
785
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
|
|
786
|
+
export declare const AgentToolInputRunLanguage: {
|
|
787
|
+
readonly Python: "python";
|
|
788
|
+
};
|
|
789
|
+
export type AgentToolInputRunLanguage = ClosedEnum<typeof AgentToolInputRunLanguage>;
|
|
790
|
+
export type AgentToolInputRunCodeTool = {
|
|
791
|
+
/**
|
|
792
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
793
|
+
*/
|
|
794
|
+
parameters?: {
|
|
795
|
+
[k: string]: any;
|
|
796
|
+
} | undefined;
|
|
797
|
+
language: AgentToolInputRunLanguage;
|
|
798
|
+
/**
|
|
799
|
+
* The code to execute.
|
|
800
|
+
*/
|
|
801
|
+
code: string;
|
|
663
802
|
};
|
|
803
|
+
/**
|
|
804
|
+
* Code execution tool with inline definition for on-the-fly creation in run endpoint
|
|
805
|
+
*/
|
|
806
|
+
export type AgentToolInputRunCodeToolRun = {
|
|
807
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type;
|
|
808
|
+
/**
|
|
809
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
810
|
+
*/
|
|
811
|
+
key: string;
|
|
812
|
+
id?: string | undefined;
|
|
813
|
+
displayName?: string | undefined;
|
|
814
|
+
/**
|
|
815
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
816
|
+
*/
|
|
817
|
+
description: string;
|
|
818
|
+
codeTool: AgentToolInputRunCodeTool;
|
|
819
|
+
requiresApproval?: boolean | undefined;
|
|
820
|
+
};
|
|
821
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type: {
|
|
822
|
+
readonly Http: "http";
|
|
823
|
+
};
|
|
824
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type>;
|
|
825
|
+
/**
|
|
826
|
+
* The HTTP method to use.
|
|
827
|
+
*/
|
|
828
|
+
export declare const AgentToolInputRunMethod: {
|
|
829
|
+
readonly Get: "GET";
|
|
830
|
+
readonly Post: "POST";
|
|
831
|
+
readonly Put: "PUT";
|
|
832
|
+
readonly Delete: "DELETE";
|
|
833
|
+
};
|
|
834
|
+
/**
|
|
835
|
+
* The HTTP method to use.
|
|
836
|
+
*/
|
|
837
|
+
export type AgentToolInputRunMethod = ClosedEnum<typeof AgentToolInputRunMethod>;
|
|
838
|
+
/**
|
|
839
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
840
|
+
*/
|
|
841
|
+
export type AgentToolInputRunBlueprint = {
|
|
842
|
+
/**
|
|
843
|
+
* The URL to send the request to.
|
|
844
|
+
*/
|
|
845
|
+
url: string;
|
|
846
|
+
/**
|
|
847
|
+
* The HTTP method to use.
|
|
848
|
+
*/
|
|
849
|
+
method: AgentToolInputRunMethod;
|
|
850
|
+
/**
|
|
851
|
+
* The headers to send with the request.
|
|
852
|
+
*/
|
|
853
|
+
headers?: {
|
|
854
|
+
[k: string]: string;
|
|
855
|
+
} | undefined;
|
|
856
|
+
/**
|
|
857
|
+
* The body to send with the request.
|
|
858
|
+
*/
|
|
859
|
+
body?: {
|
|
860
|
+
[k: string]: any;
|
|
861
|
+
} | undefined;
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* The type of the argument.
|
|
865
|
+
*/
|
|
866
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType: {
|
|
867
|
+
readonly String: "string";
|
|
868
|
+
readonly Number: "number";
|
|
869
|
+
readonly Boolean: "boolean";
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* The type of the argument.
|
|
873
|
+
*/
|
|
874
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType>;
|
|
875
|
+
/**
|
|
876
|
+
* The default value of the argument.
|
|
877
|
+
*/
|
|
878
|
+
export type AgentToolInputRunDefaultValue = string | number | boolean;
|
|
879
|
+
export type AgentToolInputRunArguments = {
|
|
880
|
+
/**
|
|
881
|
+
* The type of the argument.
|
|
882
|
+
*/
|
|
883
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12HttpType;
|
|
884
|
+
/**
|
|
885
|
+
* A description of the argument.
|
|
886
|
+
*/
|
|
887
|
+
description: string;
|
|
888
|
+
/**
|
|
889
|
+
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
890
|
+
*/
|
|
891
|
+
sendToModel?: boolean | undefined;
|
|
892
|
+
/**
|
|
893
|
+
* The default value of the argument.
|
|
894
|
+
*/
|
|
895
|
+
defaultValue?: string | number | boolean | undefined;
|
|
896
|
+
};
|
|
897
|
+
export type AgentToolInputRunHttp = {
|
|
898
|
+
/**
|
|
899
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
900
|
+
*/
|
|
901
|
+
blueprint: AgentToolInputRunBlueprint;
|
|
902
|
+
/**
|
|
903
|
+
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
904
|
+
*/
|
|
905
|
+
arguments?: {
|
|
906
|
+
[k: string]: AgentToolInputRunArguments;
|
|
907
|
+
} | undefined;
|
|
908
|
+
};
|
|
909
|
+
/**
|
|
910
|
+
* HTTP tool with inline definition for on-the-fly creation in run endpoint
|
|
911
|
+
*/
|
|
912
|
+
export type AgentToolInputRunHTTPToolRun = {
|
|
913
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools12Type;
|
|
914
|
+
/**
|
|
915
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
916
|
+
*/
|
|
917
|
+
key: string;
|
|
918
|
+
id?: string | undefined;
|
|
919
|
+
displayName?: string | undefined;
|
|
920
|
+
/**
|
|
921
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
922
|
+
*/
|
|
923
|
+
description: string;
|
|
924
|
+
http: AgentToolInputRunHttp;
|
|
925
|
+
requiresApproval?: boolean | undefined;
|
|
926
|
+
};
|
|
927
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type: {
|
|
928
|
+
readonly CurrentDate: "current_date";
|
|
929
|
+
};
|
|
930
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type>;
|
|
931
|
+
/**
|
|
932
|
+
* Returns the current date and time
|
|
933
|
+
*/
|
|
934
|
+
export type StreamRunAgentAgentToolInputRunCurrentDateTool = {
|
|
935
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type;
|
|
936
|
+
/**
|
|
937
|
+
* Whether this tool requires approval before execution
|
|
938
|
+
*/
|
|
939
|
+
requiresApproval?: boolean | undefined;
|
|
940
|
+
};
|
|
941
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type: {
|
|
942
|
+
readonly QueryKnowledgeBase: "query_knowledge_base";
|
|
943
|
+
};
|
|
944
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type>;
|
|
945
|
+
/**
|
|
946
|
+
* Queries knowledge bases for information
|
|
947
|
+
*/
|
|
948
|
+
export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool = {
|
|
949
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type;
|
|
950
|
+
/**
|
|
951
|
+
* Whether this tool requires approval before execution
|
|
952
|
+
*/
|
|
953
|
+
requiresApproval?: boolean | undefined;
|
|
954
|
+
};
|
|
955
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type: {
|
|
956
|
+
readonly RetrieveKnowledgeBases: "retrieve_knowledge_bases";
|
|
957
|
+
};
|
|
958
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type>;
|
|
959
|
+
/**
|
|
960
|
+
* Lists available knowledge bases
|
|
961
|
+
*/
|
|
962
|
+
export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool = {
|
|
963
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type;
|
|
964
|
+
/**
|
|
965
|
+
* Whether this tool requires approval before execution
|
|
966
|
+
*/
|
|
967
|
+
requiresApproval?: boolean | undefined;
|
|
968
|
+
};
|
|
969
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type: {
|
|
970
|
+
readonly DeleteMemoryDocument: "delete_memory_document";
|
|
971
|
+
};
|
|
972
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type>;
|
|
973
|
+
/**
|
|
974
|
+
* Deletes documents from memory stores
|
|
975
|
+
*/
|
|
976
|
+
export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool = {
|
|
977
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type;
|
|
978
|
+
/**
|
|
979
|
+
* Whether this tool requires approval before execution
|
|
980
|
+
*/
|
|
981
|
+
requiresApproval?: boolean | undefined;
|
|
982
|
+
};
|
|
983
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type: {
|
|
984
|
+
readonly RetrieveMemoryStores: "retrieve_memory_stores";
|
|
985
|
+
};
|
|
986
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type>;
|
|
987
|
+
/**
|
|
988
|
+
* Lists available memory stores
|
|
989
|
+
*/
|
|
990
|
+
export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool = {
|
|
991
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type;
|
|
992
|
+
/**
|
|
993
|
+
* Whether this tool requires approval before execution
|
|
994
|
+
*/
|
|
995
|
+
requiresApproval?: boolean | undefined;
|
|
996
|
+
};
|
|
997
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType: {
|
|
998
|
+
readonly WriteMemoryStore: "write_memory_store";
|
|
999
|
+
};
|
|
1000
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Writes information to agent memory stores
|
|
1003
|
+
*/
|
|
1004
|
+
export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool = {
|
|
1005
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType;
|
|
1006
|
+
/**
|
|
1007
|
+
* Whether this tool requires approval before execution
|
|
1008
|
+
*/
|
|
1009
|
+
requiresApproval?: boolean | undefined;
|
|
1010
|
+
};
|
|
1011
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType: {
|
|
1012
|
+
readonly QueryMemoryStore: "query_memory_store";
|
|
1013
|
+
};
|
|
1014
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType>;
|
|
1015
|
+
/**
|
|
1016
|
+
* Queries agent memory stores for context
|
|
1017
|
+
*/
|
|
1018
|
+
export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool = {
|
|
1019
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType;
|
|
1020
|
+
/**
|
|
1021
|
+
* Whether this tool requires approval before execution
|
|
1022
|
+
*/
|
|
1023
|
+
requiresApproval?: boolean | undefined;
|
|
1024
|
+
};
|
|
1025
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType: {
|
|
1026
|
+
readonly RetrieveAgents: "retrieve_agents";
|
|
1027
|
+
};
|
|
1028
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Retrieves available agents in the system
|
|
1031
|
+
*/
|
|
1032
|
+
export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool = {
|
|
1033
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType;
|
|
1034
|
+
/**
|
|
1035
|
+
* Whether this tool requires approval before execution
|
|
1036
|
+
*/
|
|
1037
|
+
requiresApproval?: boolean | undefined;
|
|
1038
|
+
};
|
|
1039
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsRequestType: {
|
|
1040
|
+
readonly CallSubAgent: "call_sub_agent";
|
|
1041
|
+
};
|
|
1042
|
+
export type StreamRunAgentAgentToolInputRunAgentsRequestType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsRequestType>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Delegates tasks to specialized sub-agents
|
|
1045
|
+
*/
|
|
1046
|
+
export type StreamRunAgentAgentToolInputRunCallSubAgentTool = {
|
|
1047
|
+
type: StreamRunAgentAgentToolInputRunAgentsRequestType;
|
|
1048
|
+
/**
|
|
1049
|
+
* Whether this tool requires approval before execution
|
|
1050
|
+
*/
|
|
1051
|
+
requiresApproval?: boolean | undefined;
|
|
1052
|
+
};
|
|
1053
|
+
export declare const StreamRunAgentAgentToolInputRunAgentsType: {
|
|
1054
|
+
readonly WebScraper: "web_scraper";
|
|
1055
|
+
};
|
|
1056
|
+
export type StreamRunAgentAgentToolInputRunAgentsType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunAgentsType>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Scrapes and extracts content from web pages
|
|
1059
|
+
*/
|
|
1060
|
+
export type StreamRunAgentAgentToolInputRunWebScraperTool = {
|
|
1061
|
+
type: StreamRunAgentAgentToolInputRunAgentsType;
|
|
1062
|
+
/**
|
|
1063
|
+
* Whether this tool requires approval before execution
|
|
1064
|
+
*/
|
|
1065
|
+
requiresApproval?: boolean | undefined;
|
|
1066
|
+
};
|
|
1067
|
+
export declare const StreamRunAgentAgentToolInputRunType: {
|
|
1068
|
+
readonly GoogleSearch: "google_search";
|
|
1069
|
+
};
|
|
1070
|
+
export type StreamRunAgentAgentToolInputRunType = ClosedEnum<typeof StreamRunAgentAgentToolInputRunType>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Performs Google searches to retrieve web content
|
|
1073
|
+
*/
|
|
1074
|
+
export type StreamRunAgentAgentToolInputRunGoogleSearchTool = {
|
|
1075
|
+
type: StreamRunAgentAgentToolInputRunType;
|
|
1076
|
+
/**
|
|
1077
|
+
* Whether this tool requires approval before execution
|
|
1078
|
+
*/
|
|
1079
|
+
requiresApproval?: boolean | undefined;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
|
|
1083
|
+
*/
|
|
1084
|
+
export type StreamRunAgentAgentToolInputRun = AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool;
|
|
1085
|
+
/**
|
|
1086
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare const StreamRunAgentToolApprovalRequired: {
|
|
1089
|
+
readonly All: "all";
|
|
1090
|
+
readonly RespectTool: "respect_tool";
|
|
1091
|
+
readonly None: "none";
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1095
|
+
*/
|
|
1096
|
+
export type StreamRunAgentToolApprovalRequired = ClosedEnum<typeof StreamRunAgentToolApprovalRequired>;
|
|
1097
|
+
export type StreamRunAgentSettings = {
|
|
1098
|
+
/**
|
|
1099
|
+
* Tools available to the agent
|
|
1100
|
+
*/
|
|
1101
|
+
tools?: Array<AgentToolInputRunHTTPToolRun | AgentToolInputRunCodeToolRun | AgentToolInputRunFunctionToolRun | StreamRunAgentAgentToolInputRunGoogleSearchTool | StreamRunAgentAgentToolInputRunWebScraperTool | StreamRunAgentAgentToolInputRunCallSubAgentTool | StreamRunAgentAgentToolInputRunRetrieveAgentsTool | StreamRunAgentAgentToolInputRunQueryMemoryStoreTool | StreamRunAgentAgentToolInputRunWriteMemoryStoreTool | StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool | StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool | StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool | StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool | StreamRunAgentAgentToolInputRunCurrentDateTool> | undefined;
|
|
1102
|
+
/**
|
|
1103
|
+
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
1104
|
+
*/
|
|
1105
|
+
toolApprovalRequired?: StreamRunAgentToolApprovalRequired | undefined;
|
|
1106
|
+
/**
|
|
1107
|
+
* Maximum iterations(llm calls) before the agent will stop executing.
|
|
1108
|
+
*/
|
|
1109
|
+
maxIterations?: number | undefined;
|
|
1110
|
+
/**
|
|
1111
|
+
* Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
|
|
1112
|
+
*/
|
|
1113
|
+
maxExecutionTime?: number | undefined;
|
|
1114
|
+
};
|
|
1115
|
+
export type StreamRunAgentRequestBody = {
|
|
1116
|
+
/**
|
|
1117
|
+
* A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
|
|
1118
|
+
*/
|
|
1119
|
+
key: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
1122
|
+
*/
|
|
1123
|
+
taskId?: string | undefined;
|
|
1124
|
+
/**
|
|
1125
|
+
* The language model that powers the agent. Can be a simple string (e.g., "openai/gpt-4o") or an object with model ID and parameters. The model must support tool calling capabilities.
|
|
1126
|
+
*/
|
|
1127
|
+
model: StreamRunAgentModel2 | string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Optional array of fallback models (string IDs or config objects) to use when the primary model fails. Models are tried in order. All models must support tool calling capabilities.
|
|
1130
|
+
*/
|
|
1131
|
+
fallbackModels?: Array<StreamRunAgentFallbackModels2 | string> | undefined;
|
|
1132
|
+
/**
|
|
1133
|
+
* Specifies the agent's function and area of expertise.
|
|
1134
|
+
*/
|
|
1135
|
+
role: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Provides context and purpose for the agent. Combined with the system prompt template to generate the agent's instructions.
|
|
1138
|
+
*/
|
|
1139
|
+
instructions: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* The A2A format message containing the task for the agent to perform.
|
|
1142
|
+
*/
|
|
1143
|
+
message: StreamRunAgentMessage;
|
|
1144
|
+
/**
|
|
1145
|
+
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
1146
|
+
*/
|
|
1147
|
+
variables?: {
|
|
1148
|
+
[k: string]: any;
|
|
1149
|
+
} | undefined;
|
|
1150
|
+
/**
|
|
1151
|
+
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
1152
|
+
*/
|
|
1153
|
+
contact?: StreamRunAgentContact | undefined;
|
|
1154
|
+
/**
|
|
1155
|
+
* Thread information to group related requests
|
|
1156
|
+
*/
|
|
1157
|
+
thread?: StreamRunAgentThread | undefined;
|
|
1158
|
+
/**
|
|
1159
|
+
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
1160
|
+
*/
|
|
1161
|
+
memory?: StreamRunAgentMemory | undefined;
|
|
1162
|
+
/**
|
|
1163
|
+
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1164
|
+
*
|
|
1165
|
+
* @remarks
|
|
1166
|
+
*
|
|
1167
|
+
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1168
|
+
*
|
|
1169
|
+
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1170
|
+
*/
|
|
1171
|
+
path: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* A brief summary of the agent's purpose.
|
|
1174
|
+
*/
|
|
1175
|
+
description?: string | undefined;
|
|
1176
|
+
/**
|
|
1177
|
+
* A custom system prompt template for the agent. If omitted, the default template is used.
|
|
1178
|
+
*/
|
|
1179
|
+
systemPrompt?: string | undefined;
|
|
1180
|
+
/**
|
|
1181
|
+
* The list of keys of the memory stores that are accessible to the agent.
|
|
1182
|
+
*/
|
|
1183
|
+
memoryStores?: Array<string> | undefined;
|
|
1184
|
+
/**
|
|
1185
|
+
* Knowledge base configurations for the agent to access
|
|
1186
|
+
*/
|
|
1187
|
+
knowledgeBases?: Array<StreamRunAgentKnowledgeBases> | undefined;
|
|
1188
|
+
/**
|
|
1189
|
+
* The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
|
|
1190
|
+
*/
|
|
1191
|
+
teamOfAgents?: Array<StreamRunAgentTeamOfAgents> | undefined;
|
|
1192
|
+
settings: StreamRunAgentSettings;
|
|
1193
|
+
/**
|
|
1194
|
+
* Optional metadata for the agent run as key-value pairs that will be included in traces
|
|
1195
|
+
*/
|
|
1196
|
+
metadata?: {
|
|
1197
|
+
[k: string]: any;
|
|
1198
|
+
} | undefined;
|
|
1199
|
+
/**
|
|
1200
|
+
* Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
|
|
1201
|
+
*/
|
|
1202
|
+
streamTimeoutSeconds?: number | undefined;
|
|
1203
|
+
};
|
|
1204
|
+
/**
|
|
1205
|
+
* SSE stream of agent events
|
|
1206
|
+
*/
|
|
1207
|
+
export type StreamRunAgentResponseBody = {
|
|
1208
|
+
/**
|
|
1209
|
+
* JSON-encoded event data
|
|
1210
|
+
*/
|
|
1211
|
+
data: string;
|
|
1212
|
+
};
|
|
1213
|
+
/** @internal */
|
|
1214
|
+
export declare const StreamRunAgentModelVoice$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelVoice>;
|
|
1215
|
+
/** @internal */
|
|
1216
|
+
export declare const StreamRunAgentModelVoice$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelVoice>;
|
|
1217
|
+
/**
|
|
1218
|
+
* @internal
|
|
1219
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1220
|
+
*/
|
|
1221
|
+
export declare namespace StreamRunAgentModelVoice$ {
|
|
1222
|
+
/** @deprecated use `StreamRunAgentModelVoice$inboundSchema` instead. */
|
|
1223
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1224
|
+
readonly Alloy: "alloy";
|
|
1225
|
+
readonly Echo: "echo";
|
|
1226
|
+
readonly Fable: "fable";
|
|
1227
|
+
readonly Onyx: "onyx";
|
|
1228
|
+
readonly Nova: "nova";
|
|
1229
|
+
readonly Shimmer: "shimmer";
|
|
1230
|
+
}>;
|
|
1231
|
+
/** @deprecated use `StreamRunAgentModelVoice$outboundSchema` instead. */
|
|
1232
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1233
|
+
readonly Alloy: "alloy";
|
|
1234
|
+
readonly Echo: "echo";
|
|
1235
|
+
readonly Fable: "fable";
|
|
1236
|
+
readonly Onyx: "onyx";
|
|
1237
|
+
readonly Nova: "nova";
|
|
1238
|
+
readonly Shimmer: "shimmer";
|
|
1239
|
+
}>;
|
|
1240
|
+
}
|
|
1241
|
+
/** @internal */
|
|
1242
|
+
export declare const StreamRunAgentModelFormat$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelFormat>;
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export declare const StreamRunAgentModelFormat$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelFormat>;
|
|
1245
|
+
/**
|
|
1246
|
+
* @internal
|
|
1247
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1248
|
+
*/
|
|
1249
|
+
export declare namespace StreamRunAgentModelFormat$ {
|
|
1250
|
+
/** @deprecated use `StreamRunAgentModelFormat$inboundSchema` instead. */
|
|
1251
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1252
|
+
readonly Wav: "wav";
|
|
1253
|
+
readonly Mp3: "mp3";
|
|
1254
|
+
readonly Flac: "flac";
|
|
1255
|
+
readonly Opus: "opus";
|
|
1256
|
+
readonly Pcm16: "pcm16";
|
|
1257
|
+
}>;
|
|
1258
|
+
/** @deprecated use `StreamRunAgentModelFormat$outboundSchema` instead. */
|
|
1259
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1260
|
+
readonly Wav: "wav";
|
|
1261
|
+
readonly Mp3: "mp3";
|
|
1262
|
+
readonly Flac: "flac";
|
|
1263
|
+
readonly Opus: "opus";
|
|
1264
|
+
readonly Pcm16: "pcm16";
|
|
1265
|
+
}>;
|
|
1266
|
+
}
|
|
1267
|
+
/** @internal */
|
|
1268
|
+
export declare const StreamRunAgentModelAudio$inboundSchema: z.ZodType<StreamRunAgentModelAudio, z.ZodTypeDef, unknown>;
|
|
1269
|
+
/** @internal */
|
|
1270
|
+
export type StreamRunAgentModelAudio$Outbound = {
|
|
1271
|
+
voice: string;
|
|
1272
|
+
format: string;
|
|
1273
|
+
};
|
|
1274
|
+
/** @internal */
|
|
1275
|
+
export declare const StreamRunAgentModelAudio$outboundSchema: z.ZodType<StreamRunAgentModelAudio$Outbound, z.ZodTypeDef, StreamRunAgentModelAudio>;
|
|
1276
|
+
/**
|
|
1277
|
+
* @internal
|
|
1278
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1279
|
+
*/
|
|
1280
|
+
export declare namespace StreamRunAgentModelAudio$ {
|
|
1281
|
+
/** @deprecated use `StreamRunAgentModelAudio$inboundSchema` instead. */
|
|
1282
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelAudio, z.ZodTypeDef, unknown>;
|
|
1283
|
+
/** @deprecated use `StreamRunAgentModelAudio$outboundSchema` instead. */
|
|
1284
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelAudio$Outbound, z.ZodTypeDef, StreamRunAgentModelAudio>;
|
|
1285
|
+
/** @deprecated use `StreamRunAgentModelAudio$Outbound` instead. */
|
|
1286
|
+
type Outbound = StreamRunAgentModelAudio$Outbound;
|
|
1287
|
+
}
|
|
1288
|
+
export declare function streamRunAgentModelAudioToJSON(streamRunAgentModelAudio: StreamRunAgentModelAudio): string;
|
|
1289
|
+
export declare function streamRunAgentModelAudioFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelAudio, SDKValidationError>;
|
|
1290
|
+
/** @internal */
|
|
1291
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestType>;
|
|
1292
|
+
/** @internal */
|
|
1293
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestType>;
|
|
1294
|
+
/**
|
|
1295
|
+
* @internal
|
|
1296
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1297
|
+
*/
|
|
1298
|
+
export declare namespace StreamRunAgentResponseFormatAgentsRequestType$ {
|
|
1299
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestType$inboundSchema` instead. */
|
|
1300
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1301
|
+
readonly JsonSchema: "json_schema";
|
|
1302
|
+
}>;
|
|
1303
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestType$outboundSchema` instead. */
|
|
1304
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1305
|
+
readonly JsonSchema: "json_schema";
|
|
1306
|
+
}>;
|
|
1307
|
+
}
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
export declare const StreamRunAgentResponseFormatJsonSchema$inboundSchema: z.ZodType<StreamRunAgentResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
export type StreamRunAgentResponseFormatJsonSchema$Outbound = {
|
|
1312
|
+
description?: string | undefined;
|
|
1313
|
+
name: string;
|
|
1314
|
+
schema?: any | undefined;
|
|
1315
|
+
strict?: boolean | undefined;
|
|
1316
|
+
};
|
|
1317
|
+
/** @internal */
|
|
1318
|
+
export declare const StreamRunAgentResponseFormatJsonSchema$outboundSchema: z.ZodType<StreamRunAgentResponseFormatJsonSchema$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatJsonSchema>;
|
|
1319
|
+
/**
|
|
1320
|
+
* @internal
|
|
1321
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare namespace StreamRunAgentResponseFormatJsonSchema$ {
|
|
1324
|
+
/** @deprecated use `StreamRunAgentResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1325
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1326
|
+
/** @deprecated use `StreamRunAgentResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1327
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormatJsonSchema$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatJsonSchema>;
|
|
1328
|
+
/** @deprecated use `StreamRunAgentResponseFormatJsonSchema$Outbound` instead. */
|
|
1329
|
+
type Outbound = StreamRunAgentResponseFormatJsonSchema$Outbound;
|
|
1330
|
+
}
|
|
1331
|
+
export declare function streamRunAgentResponseFormatJsonSchemaToJSON(streamRunAgentResponseFormatJsonSchema: StreamRunAgentResponseFormatJsonSchema): string;
|
|
1332
|
+
export declare function streamRunAgentResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormatJsonSchema, SDKValidationError>;
|
|
1333
|
+
/** @internal */
|
|
1334
|
+
export declare const StreamRunAgentResponseFormat3$inboundSchema: z.ZodType<StreamRunAgentResponseFormat3, z.ZodTypeDef, unknown>;
|
|
1335
|
+
/** @internal */
|
|
1336
|
+
export type StreamRunAgentResponseFormat3$Outbound = {
|
|
1337
|
+
type: string;
|
|
1338
|
+
json_schema: StreamRunAgentResponseFormatJsonSchema$Outbound;
|
|
1339
|
+
};
|
|
1340
|
+
/** @internal */
|
|
1341
|
+
export declare const StreamRunAgentResponseFormat3$outboundSchema: z.ZodType<StreamRunAgentResponseFormat3$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat3>;
|
|
1342
|
+
/**
|
|
1343
|
+
* @internal
|
|
1344
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1345
|
+
*/
|
|
1346
|
+
export declare namespace StreamRunAgentResponseFormat3$ {
|
|
1347
|
+
/** @deprecated use `StreamRunAgentResponseFormat3$inboundSchema` instead. */
|
|
1348
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormat3, z.ZodTypeDef, unknown>;
|
|
1349
|
+
/** @deprecated use `StreamRunAgentResponseFormat3$outboundSchema` instead. */
|
|
1350
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormat3$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat3>;
|
|
1351
|
+
/** @deprecated use `StreamRunAgentResponseFormat3$Outbound` instead. */
|
|
1352
|
+
type Outbound = StreamRunAgentResponseFormat3$Outbound;
|
|
1353
|
+
}
|
|
1354
|
+
export declare function streamRunAgentResponseFormat3ToJSON(streamRunAgentResponseFormat3: StreamRunAgentResponseFormat3): string;
|
|
1355
|
+
export declare function streamRunAgentResponseFormat3FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormat3, SDKValidationError>;
|
|
1356
|
+
/** @internal */
|
|
1357
|
+
export declare const StreamRunAgentResponseFormatAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsType>;
|
|
1358
|
+
/** @internal */
|
|
1359
|
+
export declare const StreamRunAgentResponseFormatAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsType>;
|
|
1360
|
+
/**
|
|
1361
|
+
* @internal
|
|
1362
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1363
|
+
*/
|
|
1364
|
+
export declare namespace StreamRunAgentResponseFormatAgentsType$ {
|
|
1365
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsType$inboundSchema` instead. */
|
|
1366
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1367
|
+
readonly JsonObject: "json_object";
|
|
1368
|
+
}>;
|
|
1369
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsType$outboundSchema` instead. */
|
|
1370
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1371
|
+
readonly JsonObject: "json_object";
|
|
1372
|
+
}>;
|
|
1373
|
+
}
|
|
1374
|
+
/** @internal */
|
|
1375
|
+
export declare const StreamRunAgentResponseFormat2$inboundSchema: z.ZodType<StreamRunAgentResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1376
|
+
/** @internal */
|
|
1377
|
+
export type StreamRunAgentResponseFormat2$Outbound = {
|
|
1378
|
+
type: string;
|
|
1379
|
+
};
|
|
1380
|
+
/** @internal */
|
|
1381
|
+
export declare const StreamRunAgentResponseFormat2$outboundSchema: z.ZodType<StreamRunAgentResponseFormat2$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat2>;
|
|
1382
|
+
/**
|
|
1383
|
+
* @internal
|
|
1384
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1385
|
+
*/
|
|
1386
|
+
export declare namespace StreamRunAgentResponseFormat2$ {
|
|
1387
|
+
/** @deprecated use `StreamRunAgentResponseFormat2$inboundSchema` instead. */
|
|
1388
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1389
|
+
/** @deprecated use `StreamRunAgentResponseFormat2$outboundSchema` instead. */
|
|
1390
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormat2$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat2>;
|
|
1391
|
+
/** @deprecated use `StreamRunAgentResponseFormat2$Outbound` instead. */
|
|
1392
|
+
type Outbound = StreamRunAgentResponseFormat2$Outbound;
|
|
1393
|
+
}
|
|
1394
|
+
export declare function streamRunAgentResponseFormat2ToJSON(streamRunAgentResponseFormat2: StreamRunAgentResponseFormat2): string;
|
|
1395
|
+
export declare function streamRunAgentResponseFormat2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormat2, SDKValidationError>;
|
|
1396
|
+
/** @internal */
|
|
1397
|
+
export declare const StreamRunAgentResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatType>;
|
|
1398
|
+
/** @internal */
|
|
1399
|
+
export declare const StreamRunAgentResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatType>;
|
|
1400
|
+
/**
|
|
1401
|
+
* @internal
|
|
1402
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1403
|
+
*/
|
|
1404
|
+
export declare namespace StreamRunAgentResponseFormatType$ {
|
|
1405
|
+
/** @deprecated use `StreamRunAgentResponseFormatType$inboundSchema` instead. */
|
|
1406
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1407
|
+
readonly Text: "text";
|
|
1408
|
+
}>;
|
|
1409
|
+
/** @deprecated use `StreamRunAgentResponseFormatType$outboundSchema` instead. */
|
|
1410
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1411
|
+
readonly Text: "text";
|
|
1412
|
+
}>;
|
|
1413
|
+
}
|
|
1414
|
+
/** @internal */
|
|
1415
|
+
export declare const StreamRunAgentResponseFormat1$inboundSchema: z.ZodType<StreamRunAgentResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export type StreamRunAgentResponseFormat1$Outbound = {
|
|
1418
|
+
type: string;
|
|
1419
|
+
};
|
|
1420
|
+
/** @internal */
|
|
1421
|
+
export declare const StreamRunAgentResponseFormat1$outboundSchema: z.ZodType<StreamRunAgentResponseFormat1$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat1>;
|
|
1422
|
+
/**
|
|
1423
|
+
* @internal
|
|
1424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1425
|
+
*/
|
|
1426
|
+
export declare namespace StreamRunAgentResponseFormat1$ {
|
|
1427
|
+
/** @deprecated use `StreamRunAgentResponseFormat1$inboundSchema` instead. */
|
|
1428
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1429
|
+
/** @deprecated use `StreamRunAgentResponseFormat1$outboundSchema` instead. */
|
|
1430
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormat1$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormat1>;
|
|
1431
|
+
/** @deprecated use `StreamRunAgentResponseFormat1$Outbound` instead. */
|
|
1432
|
+
type Outbound = StreamRunAgentResponseFormat1$Outbound;
|
|
1433
|
+
}
|
|
1434
|
+
export declare function streamRunAgentResponseFormat1ToJSON(streamRunAgentResponseFormat1: StreamRunAgentResponseFormat1): string;
|
|
1435
|
+
export declare function streamRunAgentResponseFormat1FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormat1, SDKValidationError>;
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export declare const StreamRunAgentModelResponseFormat$inboundSchema: z.ZodType<StreamRunAgentModelResponseFormat, z.ZodTypeDef, unknown>;
|
|
1438
|
+
/** @internal */
|
|
1439
|
+
export type StreamRunAgentModelResponseFormat$Outbound = StreamRunAgentResponseFormat3$Outbound | StreamRunAgentResponseFormat1$Outbound | StreamRunAgentResponseFormat2$Outbound;
|
|
1440
|
+
/** @internal */
|
|
1441
|
+
export declare const StreamRunAgentModelResponseFormat$outboundSchema: z.ZodType<StreamRunAgentModelResponseFormat$Outbound, z.ZodTypeDef, StreamRunAgentModelResponseFormat>;
|
|
1442
|
+
/**
|
|
1443
|
+
* @internal
|
|
1444
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1445
|
+
*/
|
|
1446
|
+
export declare namespace StreamRunAgentModelResponseFormat$ {
|
|
1447
|
+
/** @deprecated use `StreamRunAgentModelResponseFormat$inboundSchema` instead. */
|
|
1448
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelResponseFormat, z.ZodTypeDef, unknown>;
|
|
1449
|
+
/** @deprecated use `StreamRunAgentModelResponseFormat$outboundSchema` instead. */
|
|
1450
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelResponseFormat$Outbound, z.ZodTypeDef, StreamRunAgentModelResponseFormat>;
|
|
1451
|
+
/** @deprecated use `StreamRunAgentModelResponseFormat$Outbound` instead. */
|
|
1452
|
+
type Outbound = StreamRunAgentModelResponseFormat$Outbound;
|
|
1453
|
+
}
|
|
1454
|
+
export declare function streamRunAgentModelResponseFormatToJSON(streamRunAgentModelResponseFormat: StreamRunAgentModelResponseFormat): string;
|
|
1455
|
+
export declare function streamRunAgentModelResponseFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelResponseFormat, SDKValidationError>;
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export declare const StreamRunAgentModelStop$inboundSchema: z.ZodType<StreamRunAgentModelStop, z.ZodTypeDef, unknown>;
|
|
1458
|
+
/** @internal */
|
|
1459
|
+
export type StreamRunAgentModelStop$Outbound = string | Array<string>;
|
|
1460
|
+
/** @internal */
|
|
1461
|
+
export declare const StreamRunAgentModelStop$outboundSchema: z.ZodType<StreamRunAgentModelStop$Outbound, z.ZodTypeDef, StreamRunAgentModelStop>;
|
|
1462
|
+
/**
|
|
1463
|
+
* @internal
|
|
1464
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1465
|
+
*/
|
|
1466
|
+
export declare namespace StreamRunAgentModelStop$ {
|
|
1467
|
+
/** @deprecated use `StreamRunAgentModelStop$inboundSchema` instead. */
|
|
1468
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelStop, z.ZodTypeDef, unknown>;
|
|
1469
|
+
/** @deprecated use `StreamRunAgentModelStop$outboundSchema` instead. */
|
|
1470
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelStop$Outbound, z.ZodTypeDef, StreamRunAgentModelStop>;
|
|
1471
|
+
/** @deprecated use `StreamRunAgentModelStop$Outbound` instead. */
|
|
1472
|
+
type Outbound = StreamRunAgentModelStop$Outbound;
|
|
1473
|
+
}
|
|
1474
|
+
export declare function streamRunAgentModelStopToJSON(streamRunAgentModelStop: StreamRunAgentModelStop): string;
|
|
1475
|
+
export declare function streamRunAgentModelStopFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelStop, SDKValidationError>;
|
|
1476
|
+
/** @internal */
|
|
1477
|
+
export declare const StreamRunAgentModelStreamOptions$inboundSchema: z.ZodType<StreamRunAgentModelStreamOptions, z.ZodTypeDef, unknown>;
|
|
1478
|
+
/** @internal */
|
|
1479
|
+
export type StreamRunAgentModelStreamOptions$Outbound = {
|
|
1480
|
+
include_usage?: boolean | undefined;
|
|
1481
|
+
};
|
|
1482
|
+
/** @internal */
|
|
1483
|
+
export declare const StreamRunAgentModelStreamOptions$outboundSchema: z.ZodType<StreamRunAgentModelStreamOptions$Outbound, z.ZodTypeDef, StreamRunAgentModelStreamOptions>;
|
|
1484
|
+
/**
|
|
1485
|
+
* @internal
|
|
1486
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1487
|
+
*/
|
|
1488
|
+
export declare namespace StreamRunAgentModelStreamOptions$ {
|
|
1489
|
+
/** @deprecated use `StreamRunAgentModelStreamOptions$inboundSchema` instead. */
|
|
1490
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelStreamOptions, z.ZodTypeDef, unknown>;
|
|
1491
|
+
/** @deprecated use `StreamRunAgentModelStreamOptions$outboundSchema` instead. */
|
|
1492
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelStreamOptions$Outbound, z.ZodTypeDef, StreamRunAgentModelStreamOptions>;
|
|
1493
|
+
/** @deprecated use `StreamRunAgentModelStreamOptions$Outbound` instead. */
|
|
1494
|
+
type Outbound = StreamRunAgentModelStreamOptions$Outbound;
|
|
1495
|
+
}
|
|
1496
|
+
export declare function streamRunAgentModelStreamOptionsToJSON(streamRunAgentModelStreamOptions: StreamRunAgentModelStreamOptions): string;
|
|
1497
|
+
export declare function streamRunAgentModelStreamOptionsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelStreamOptions, SDKValidationError>;
|
|
1498
|
+
/** @internal */
|
|
1499
|
+
export declare const StreamRunAgentModelType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelType>;
|
|
1500
|
+
/** @internal */
|
|
1501
|
+
export declare const StreamRunAgentModelType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelType>;
|
|
1502
|
+
/**
|
|
1503
|
+
* @internal
|
|
1504
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1505
|
+
*/
|
|
1506
|
+
export declare namespace StreamRunAgentModelType$ {
|
|
1507
|
+
/** @deprecated use `StreamRunAgentModelType$inboundSchema` instead. */
|
|
1508
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1509
|
+
readonly Enabled: "enabled";
|
|
1510
|
+
readonly Disabled: "disabled";
|
|
1511
|
+
}>;
|
|
1512
|
+
/** @deprecated use `StreamRunAgentModelType$outboundSchema` instead. */
|
|
1513
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1514
|
+
readonly Enabled: "enabled";
|
|
1515
|
+
readonly Disabled: "disabled";
|
|
1516
|
+
}>;
|
|
1517
|
+
}
|
|
1518
|
+
/** @internal */
|
|
1519
|
+
export declare const StreamRunAgentModelThinking$inboundSchema: z.ZodType<StreamRunAgentModelThinking, z.ZodTypeDef, unknown>;
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
export type StreamRunAgentModelThinking$Outbound = {
|
|
1522
|
+
type: string;
|
|
1523
|
+
budget_tokens: number;
|
|
1524
|
+
};
|
|
1525
|
+
/** @internal */
|
|
1526
|
+
export declare const StreamRunAgentModelThinking$outboundSchema: z.ZodType<StreamRunAgentModelThinking$Outbound, z.ZodTypeDef, StreamRunAgentModelThinking>;
|
|
1527
|
+
/**
|
|
1528
|
+
* @internal
|
|
1529
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1530
|
+
*/
|
|
1531
|
+
export declare namespace StreamRunAgentModelThinking$ {
|
|
1532
|
+
/** @deprecated use `StreamRunAgentModelThinking$inboundSchema` instead. */
|
|
1533
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelThinking, z.ZodTypeDef, unknown>;
|
|
1534
|
+
/** @deprecated use `StreamRunAgentModelThinking$outboundSchema` instead. */
|
|
1535
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelThinking$Outbound, z.ZodTypeDef, StreamRunAgentModelThinking>;
|
|
1536
|
+
/** @deprecated use `StreamRunAgentModelThinking$Outbound` instead. */
|
|
1537
|
+
type Outbound = StreamRunAgentModelThinking$Outbound;
|
|
1538
|
+
}
|
|
1539
|
+
export declare function streamRunAgentModelThinkingToJSON(streamRunAgentModelThinking: StreamRunAgentModelThinking): string;
|
|
1540
|
+
export declare function streamRunAgentModelThinkingFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelThinking, SDKValidationError>;
|
|
1541
|
+
/** @internal */
|
|
1542
|
+
export declare const StreamRunAgentToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceType>;
|
|
1543
|
+
/** @internal */
|
|
1544
|
+
export declare const StreamRunAgentToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceType>;
|
|
1545
|
+
/**
|
|
1546
|
+
* @internal
|
|
1547
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1548
|
+
*/
|
|
1549
|
+
export declare namespace StreamRunAgentToolChoiceType$ {
|
|
1550
|
+
/** @deprecated use `StreamRunAgentToolChoiceType$inboundSchema` instead. */
|
|
1551
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1552
|
+
readonly Function: "function";
|
|
1553
|
+
}>;
|
|
1554
|
+
/** @deprecated use `StreamRunAgentToolChoiceType$outboundSchema` instead. */
|
|
1555
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1556
|
+
readonly Function: "function";
|
|
1557
|
+
}>;
|
|
1558
|
+
}
|
|
1559
|
+
/** @internal */
|
|
1560
|
+
export declare const StreamRunAgentToolChoiceFunction$inboundSchema: z.ZodType<StreamRunAgentToolChoiceFunction, z.ZodTypeDef, unknown>;
|
|
1561
|
+
/** @internal */
|
|
1562
|
+
export type StreamRunAgentToolChoiceFunction$Outbound = {
|
|
1563
|
+
name?: string | undefined;
|
|
1564
|
+
};
|
|
1565
|
+
/** @internal */
|
|
1566
|
+
export declare const StreamRunAgentToolChoiceFunction$outboundSchema: z.ZodType<StreamRunAgentToolChoiceFunction$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceFunction>;
|
|
1567
|
+
/**
|
|
1568
|
+
* @internal
|
|
1569
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1570
|
+
*/
|
|
1571
|
+
export declare namespace StreamRunAgentToolChoiceFunction$ {
|
|
1572
|
+
/** @deprecated use `StreamRunAgentToolChoiceFunction$inboundSchema` instead. */
|
|
1573
|
+
const inboundSchema: z.ZodType<StreamRunAgentToolChoiceFunction, z.ZodTypeDef, unknown>;
|
|
1574
|
+
/** @deprecated use `StreamRunAgentToolChoiceFunction$outboundSchema` instead. */
|
|
1575
|
+
const outboundSchema: z.ZodType<StreamRunAgentToolChoiceFunction$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceFunction>;
|
|
1576
|
+
/** @deprecated use `StreamRunAgentToolChoiceFunction$Outbound` instead. */
|
|
1577
|
+
type Outbound = StreamRunAgentToolChoiceFunction$Outbound;
|
|
1578
|
+
}
|
|
1579
|
+
export declare function streamRunAgentToolChoiceFunctionToJSON(streamRunAgentToolChoiceFunction: StreamRunAgentToolChoiceFunction): string;
|
|
1580
|
+
export declare function streamRunAgentToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<StreamRunAgentToolChoiceFunction, SDKValidationError>;
|
|
1581
|
+
/** @internal */
|
|
1582
|
+
export declare const StreamRunAgentToolChoice2$inboundSchema: z.ZodType<StreamRunAgentToolChoice2, z.ZodTypeDef, unknown>;
|
|
1583
|
+
/** @internal */
|
|
1584
|
+
export type StreamRunAgentToolChoice2$Outbound = {
|
|
1585
|
+
type?: string | undefined;
|
|
1586
|
+
function: StreamRunAgentToolChoiceFunction$Outbound;
|
|
1587
|
+
};
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export declare const StreamRunAgentToolChoice2$outboundSchema: z.ZodType<StreamRunAgentToolChoice2$Outbound, z.ZodTypeDef, StreamRunAgentToolChoice2>;
|
|
1590
|
+
/**
|
|
1591
|
+
* @internal
|
|
1592
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1593
|
+
*/
|
|
1594
|
+
export declare namespace StreamRunAgentToolChoice2$ {
|
|
1595
|
+
/** @deprecated use `StreamRunAgentToolChoice2$inboundSchema` instead. */
|
|
1596
|
+
const inboundSchema: z.ZodType<StreamRunAgentToolChoice2, z.ZodTypeDef, unknown>;
|
|
1597
|
+
/** @deprecated use `StreamRunAgentToolChoice2$outboundSchema` instead. */
|
|
1598
|
+
const outboundSchema: z.ZodType<StreamRunAgentToolChoice2$Outbound, z.ZodTypeDef, StreamRunAgentToolChoice2>;
|
|
1599
|
+
/** @deprecated use `StreamRunAgentToolChoice2$Outbound` instead. */
|
|
1600
|
+
type Outbound = StreamRunAgentToolChoice2$Outbound;
|
|
1601
|
+
}
|
|
1602
|
+
export declare function streamRunAgentToolChoice2ToJSON(streamRunAgentToolChoice2: StreamRunAgentToolChoice2): string;
|
|
1603
|
+
export declare function streamRunAgentToolChoice2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentToolChoice2, SDKValidationError>;
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
export declare const StreamRunAgentToolChoice1$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoice1>;
|
|
1606
|
+
/** @internal */
|
|
1607
|
+
export declare const StreamRunAgentToolChoice1$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoice1>;
|
|
1608
|
+
/**
|
|
1609
|
+
* @internal
|
|
1610
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1611
|
+
*/
|
|
1612
|
+
export declare namespace StreamRunAgentToolChoice1$ {
|
|
1613
|
+
/** @deprecated use `StreamRunAgentToolChoice1$inboundSchema` instead. */
|
|
1614
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1615
|
+
readonly None: "none";
|
|
1616
|
+
readonly Auto: "auto";
|
|
1617
|
+
readonly Required: "required";
|
|
1618
|
+
}>;
|
|
1619
|
+
/** @deprecated use `StreamRunAgentToolChoice1$outboundSchema` instead. */
|
|
1620
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1621
|
+
readonly None: "none";
|
|
1622
|
+
readonly Auto: "auto";
|
|
1623
|
+
readonly Required: "required";
|
|
1624
|
+
}>;
|
|
1625
|
+
}
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
export declare const StreamRunAgentModelToolChoice$inboundSchema: z.ZodType<StreamRunAgentModelToolChoice, z.ZodTypeDef, unknown>;
|
|
1628
|
+
/** @internal */
|
|
1629
|
+
export type StreamRunAgentModelToolChoice$Outbound = StreamRunAgentToolChoice2$Outbound | string;
|
|
1630
|
+
/** @internal */
|
|
1631
|
+
export declare const StreamRunAgentModelToolChoice$outboundSchema: z.ZodType<StreamRunAgentModelToolChoice$Outbound, z.ZodTypeDef, StreamRunAgentModelToolChoice>;
|
|
1632
|
+
/**
|
|
1633
|
+
* @internal
|
|
1634
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1635
|
+
*/
|
|
1636
|
+
export declare namespace StreamRunAgentModelToolChoice$ {
|
|
1637
|
+
/** @deprecated use `StreamRunAgentModelToolChoice$inboundSchema` instead. */
|
|
1638
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelToolChoice, z.ZodTypeDef, unknown>;
|
|
1639
|
+
/** @deprecated use `StreamRunAgentModelToolChoice$outboundSchema` instead. */
|
|
1640
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelToolChoice$Outbound, z.ZodTypeDef, StreamRunAgentModelToolChoice>;
|
|
1641
|
+
/** @deprecated use `StreamRunAgentModelToolChoice$Outbound` instead. */
|
|
1642
|
+
type Outbound = StreamRunAgentModelToolChoice$Outbound;
|
|
1643
|
+
}
|
|
1644
|
+
export declare function streamRunAgentModelToolChoiceToJSON(streamRunAgentModelToolChoice: StreamRunAgentModelToolChoice): string;
|
|
1645
|
+
export declare function streamRunAgentModelToolChoiceFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelToolChoice, SDKValidationError>;
|
|
1646
|
+
/** @internal */
|
|
1647
|
+
export declare const StreamRunAgentModelModalities$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelModalities>;
|
|
1648
|
+
/** @internal */
|
|
1649
|
+
export declare const StreamRunAgentModelModalities$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentModelModalities>;
|
|
1650
|
+
/**
|
|
1651
|
+
* @internal
|
|
1652
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1653
|
+
*/
|
|
1654
|
+
export declare namespace StreamRunAgentModelModalities$ {
|
|
1655
|
+
/** @deprecated use `StreamRunAgentModelModalities$inboundSchema` instead. */
|
|
1656
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1657
|
+
readonly Text: "text";
|
|
1658
|
+
readonly Audio: "audio";
|
|
1659
|
+
}>;
|
|
1660
|
+
/** @deprecated use `StreamRunAgentModelModalities$outboundSchema` instead. */
|
|
1661
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1662
|
+
readonly Text: "text";
|
|
1663
|
+
readonly Audio: "audio";
|
|
1664
|
+
}>;
|
|
1665
|
+
}
|
|
1666
|
+
/** @internal */
|
|
1667
|
+
export declare const StreamRunAgentModelWebSearchOptions$inboundSchema: z.ZodType<StreamRunAgentModelWebSearchOptions, z.ZodTypeDef, unknown>;
|
|
1668
|
+
/** @internal */
|
|
1669
|
+
export type StreamRunAgentModelWebSearchOptions$Outbound = {
|
|
1670
|
+
enabled?: boolean | undefined;
|
|
1671
|
+
};
|
|
1672
|
+
/** @internal */
|
|
1673
|
+
export declare const StreamRunAgentModelWebSearchOptions$outboundSchema: z.ZodType<StreamRunAgentModelWebSearchOptions$Outbound, z.ZodTypeDef, StreamRunAgentModelWebSearchOptions>;
|
|
1674
|
+
/**
|
|
1675
|
+
* @internal
|
|
1676
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1677
|
+
*/
|
|
1678
|
+
export declare namespace StreamRunAgentModelWebSearchOptions$ {
|
|
1679
|
+
/** @deprecated use `StreamRunAgentModelWebSearchOptions$inboundSchema` instead. */
|
|
1680
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelWebSearchOptions, z.ZodTypeDef, unknown>;
|
|
1681
|
+
/** @deprecated use `StreamRunAgentModelWebSearchOptions$outboundSchema` instead. */
|
|
1682
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelWebSearchOptions$Outbound, z.ZodTypeDef, StreamRunAgentModelWebSearchOptions>;
|
|
1683
|
+
/** @deprecated use `StreamRunAgentModelWebSearchOptions$Outbound` instead. */
|
|
1684
|
+
type Outbound = StreamRunAgentModelWebSearchOptions$Outbound;
|
|
1685
|
+
}
|
|
1686
|
+
export declare function streamRunAgentModelWebSearchOptionsToJSON(streamRunAgentModelWebSearchOptions: StreamRunAgentModelWebSearchOptions): string;
|
|
1687
|
+
export declare function streamRunAgentModelWebSearchOptionsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelWebSearchOptions, SDKValidationError>;
|
|
1688
|
+
/** @internal */
|
|
1689
|
+
export declare const StreamRunAgentModelParameters$inboundSchema: z.ZodType<StreamRunAgentModelParameters, z.ZodTypeDef, unknown>;
|
|
1690
|
+
/** @internal */
|
|
1691
|
+
export type StreamRunAgentModelParameters$Outbound = {
|
|
1692
|
+
audio?: StreamRunAgentModelAudio$Outbound | null | undefined;
|
|
1693
|
+
frequency_penalty?: number | null | undefined;
|
|
1694
|
+
max_tokens?: number | null | undefined;
|
|
1695
|
+
max_completion_tokens?: number | null | undefined;
|
|
1696
|
+
logprobs?: boolean | null | undefined;
|
|
1697
|
+
top_logprobs?: number | null | undefined;
|
|
1698
|
+
n?: number | null | undefined;
|
|
1699
|
+
presence_penalty?: number | null | undefined;
|
|
1700
|
+
response_format?: StreamRunAgentResponseFormat3$Outbound | StreamRunAgentResponseFormat1$Outbound | StreamRunAgentResponseFormat2$Outbound | undefined;
|
|
1701
|
+
reasoning_effort?: string | undefined;
|
|
1702
|
+
verbosity?: string | undefined;
|
|
1703
|
+
seed?: number | null | undefined;
|
|
1704
|
+
stop?: string | Array<string> | null | undefined;
|
|
1705
|
+
stream_options?: StreamRunAgentModelStreamOptions$Outbound | null | undefined;
|
|
1706
|
+
thinking?: StreamRunAgentModelThinking$Outbound | undefined;
|
|
1707
|
+
temperature?: number | null | undefined;
|
|
1708
|
+
top_p?: number | null | undefined;
|
|
1709
|
+
top_k?: number | null | undefined;
|
|
1710
|
+
tool_choice?: StreamRunAgentToolChoice2$Outbound | string | undefined;
|
|
1711
|
+
parallel_tool_calls?: boolean | undefined;
|
|
1712
|
+
modalities?: Array<string> | null | undefined;
|
|
1713
|
+
web_search_options?: StreamRunAgentModelWebSearchOptions$Outbound | undefined;
|
|
1714
|
+
};
|
|
1715
|
+
/** @internal */
|
|
1716
|
+
export declare const StreamRunAgentModelParameters$outboundSchema: z.ZodType<StreamRunAgentModelParameters$Outbound, z.ZodTypeDef, StreamRunAgentModelParameters>;
|
|
1717
|
+
/**
|
|
1718
|
+
* @internal
|
|
1719
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1720
|
+
*/
|
|
1721
|
+
export declare namespace StreamRunAgentModelParameters$ {
|
|
1722
|
+
/** @deprecated use `StreamRunAgentModelParameters$inboundSchema` instead. */
|
|
1723
|
+
const inboundSchema: z.ZodType<StreamRunAgentModelParameters, z.ZodTypeDef, unknown>;
|
|
1724
|
+
/** @deprecated use `StreamRunAgentModelParameters$outboundSchema` instead. */
|
|
1725
|
+
const outboundSchema: z.ZodType<StreamRunAgentModelParameters$Outbound, z.ZodTypeDef, StreamRunAgentModelParameters>;
|
|
1726
|
+
/** @deprecated use `StreamRunAgentModelParameters$Outbound` instead. */
|
|
1727
|
+
type Outbound = StreamRunAgentModelParameters$Outbound;
|
|
1728
|
+
}
|
|
1729
|
+
export declare function streamRunAgentModelParametersToJSON(streamRunAgentModelParameters: StreamRunAgentModelParameters): string;
|
|
1730
|
+
export declare function streamRunAgentModelParametersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModelParameters, SDKValidationError>;
|
|
1731
|
+
/** @internal */
|
|
1732
|
+
export declare const StreamRunAgentModel2$inboundSchema: z.ZodType<StreamRunAgentModel2, z.ZodTypeDef, unknown>;
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
export type StreamRunAgentModel2$Outbound = {
|
|
1735
|
+
id: string;
|
|
1736
|
+
integration_id?: string | null | undefined;
|
|
1737
|
+
parameters?: StreamRunAgentModelParameters$Outbound | undefined;
|
|
1738
|
+
};
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export declare const StreamRunAgentModel2$outboundSchema: z.ZodType<StreamRunAgentModel2$Outbound, z.ZodTypeDef, StreamRunAgentModel2>;
|
|
1741
|
+
/**
|
|
1742
|
+
* @internal
|
|
1743
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1744
|
+
*/
|
|
1745
|
+
export declare namespace StreamRunAgentModel2$ {
|
|
1746
|
+
/** @deprecated use `StreamRunAgentModel2$inboundSchema` instead. */
|
|
1747
|
+
const inboundSchema: z.ZodType<StreamRunAgentModel2, z.ZodTypeDef, unknown>;
|
|
1748
|
+
/** @deprecated use `StreamRunAgentModel2$outboundSchema` instead. */
|
|
1749
|
+
const outboundSchema: z.ZodType<StreamRunAgentModel2$Outbound, z.ZodTypeDef, StreamRunAgentModel2>;
|
|
1750
|
+
/** @deprecated use `StreamRunAgentModel2$Outbound` instead. */
|
|
1751
|
+
type Outbound = StreamRunAgentModel2$Outbound;
|
|
1752
|
+
}
|
|
1753
|
+
export declare function streamRunAgentModel2ToJSON(streamRunAgentModel2: StreamRunAgentModel2): string;
|
|
1754
|
+
export declare function streamRunAgentModel2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentModel2, SDKValidationError>;
|
|
1755
|
+
/** @internal */
|
|
1756
|
+
export declare const StreamRunAgentModel$inboundSchema: z.ZodType<StreamRunAgentModel, z.ZodTypeDef, unknown>;
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export type StreamRunAgentModel$Outbound = StreamRunAgentModel2$Outbound | string;
|
|
1759
|
+
/** @internal */
|
|
1760
|
+
export declare const StreamRunAgentModel$outboundSchema: z.ZodType<StreamRunAgentModel$Outbound, z.ZodTypeDef, StreamRunAgentModel>;
|
|
1761
|
+
/**
|
|
1762
|
+
* @internal
|
|
1763
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1764
|
+
*/
|
|
1765
|
+
export declare namespace StreamRunAgentModel$ {
|
|
1766
|
+
/** @deprecated use `StreamRunAgentModel$inboundSchema` instead. */
|
|
1767
|
+
const inboundSchema: z.ZodType<StreamRunAgentModel, z.ZodTypeDef, unknown>;
|
|
1768
|
+
/** @deprecated use `StreamRunAgentModel$outboundSchema` instead. */
|
|
1769
|
+
const outboundSchema: z.ZodType<StreamRunAgentModel$Outbound, z.ZodTypeDef, StreamRunAgentModel>;
|
|
1770
|
+
/** @deprecated use `StreamRunAgentModel$Outbound` instead. */
|
|
1771
|
+
type Outbound = StreamRunAgentModel$Outbound;
|
|
1772
|
+
}
|
|
1773
|
+
export declare function streamRunAgentModelToJSON(streamRunAgentModel: StreamRunAgentModel): string;
|
|
1774
|
+
export declare function streamRunAgentModelFromJSON(jsonString: string): SafeParseResult<StreamRunAgentModel, SDKValidationError>;
|
|
1775
|
+
/** @internal */
|
|
1776
|
+
export declare const StreamRunAgentFallbackModelsVoice$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsVoice>;
|
|
1777
|
+
/** @internal */
|
|
1778
|
+
export declare const StreamRunAgentFallbackModelsVoice$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsVoice>;
|
|
1779
|
+
/**
|
|
1780
|
+
* @internal
|
|
1781
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1782
|
+
*/
|
|
1783
|
+
export declare namespace StreamRunAgentFallbackModelsVoice$ {
|
|
1784
|
+
/** @deprecated use `StreamRunAgentFallbackModelsVoice$inboundSchema` instead. */
|
|
1785
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1786
|
+
readonly Alloy: "alloy";
|
|
1787
|
+
readonly Echo: "echo";
|
|
1788
|
+
readonly Fable: "fable";
|
|
1789
|
+
readonly Onyx: "onyx";
|
|
1790
|
+
readonly Nova: "nova";
|
|
1791
|
+
readonly Shimmer: "shimmer";
|
|
1792
|
+
}>;
|
|
1793
|
+
/** @deprecated use `StreamRunAgentFallbackModelsVoice$outboundSchema` instead. */
|
|
1794
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1795
|
+
readonly Alloy: "alloy";
|
|
1796
|
+
readonly Echo: "echo";
|
|
1797
|
+
readonly Fable: "fable";
|
|
1798
|
+
readonly Onyx: "onyx";
|
|
1799
|
+
readonly Nova: "nova";
|
|
1800
|
+
readonly Shimmer: "shimmer";
|
|
1801
|
+
}>;
|
|
1802
|
+
}
|
|
1803
|
+
/** @internal */
|
|
1804
|
+
export declare const StreamRunAgentFallbackModelsFormat$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsFormat>;
|
|
1805
|
+
/** @internal */
|
|
1806
|
+
export declare const StreamRunAgentFallbackModelsFormat$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsFormat>;
|
|
1807
|
+
/**
|
|
1808
|
+
* @internal
|
|
1809
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1810
|
+
*/
|
|
1811
|
+
export declare namespace StreamRunAgentFallbackModelsFormat$ {
|
|
1812
|
+
/** @deprecated use `StreamRunAgentFallbackModelsFormat$inboundSchema` instead. */
|
|
1813
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1814
|
+
readonly Wav: "wav";
|
|
1815
|
+
readonly Mp3: "mp3";
|
|
1816
|
+
readonly Flac: "flac";
|
|
1817
|
+
readonly Opus: "opus";
|
|
1818
|
+
readonly Pcm16: "pcm16";
|
|
1819
|
+
}>;
|
|
1820
|
+
/** @deprecated use `StreamRunAgentFallbackModelsFormat$outboundSchema` instead. */
|
|
1821
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1822
|
+
readonly Wav: "wav";
|
|
1823
|
+
readonly Mp3: "mp3";
|
|
1824
|
+
readonly Flac: "flac";
|
|
1825
|
+
readonly Opus: "opus";
|
|
1826
|
+
readonly Pcm16: "pcm16";
|
|
1827
|
+
}>;
|
|
1828
|
+
}
|
|
1829
|
+
/** @internal */
|
|
1830
|
+
export declare const StreamRunAgentFallbackModelsAudio$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsAudio, z.ZodTypeDef, unknown>;
|
|
1831
|
+
/** @internal */
|
|
1832
|
+
export type StreamRunAgentFallbackModelsAudio$Outbound = {
|
|
1833
|
+
voice: string;
|
|
1834
|
+
format: string;
|
|
1835
|
+
};
|
|
1836
|
+
/** @internal */
|
|
1837
|
+
export declare const StreamRunAgentFallbackModelsAudio$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsAudio$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsAudio>;
|
|
1838
|
+
/**
|
|
1839
|
+
* @internal
|
|
1840
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1841
|
+
*/
|
|
1842
|
+
export declare namespace StreamRunAgentFallbackModelsAudio$ {
|
|
1843
|
+
/** @deprecated use `StreamRunAgentFallbackModelsAudio$inboundSchema` instead. */
|
|
1844
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsAudio, z.ZodTypeDef, unknown>;
|
|
1845
|
+
/** @deprecated use `StreamRunAgentFallbackModelsAudio$outboundSchema` instead. */
|
|
1846
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsAudio$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsAudio>;
|
|
1847
|
+
/** @deprecated use `StreamRunAgentFallbackModelsAudio$Outbound` instead. */
|
|
1848
|
+
type Outbound = StreamRunAgentFallbackModelsAudio$Outbound;
|
|
1849
|
+
}
|
|
1850
|
+
export declare function streamRunAgentFallbackModelsAudioToJSON(streamRunAgentFallbackModelsAudio: StreamRunAgentFallbackModelsAudio): string;
|
|
1851
|
+
export declare function streamRunAgentFallbackModelsAudioFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsAudio, SDKValidationError>;
|
|
1852
|
+
/** @internal */
|
|
1853
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type>;
|
|
1854
|
+
/** @internal */
|
|
1855
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type>;
|
|
1856
|
+
/**
|
|
1857
|
+
* @internal
|
|
1858
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1859
|
+
*/
|
|
1860
|
+
export declare namespace StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type$ {
|
|
1861
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type$inboundSchema` instead. */
|
|
1862
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1863
|
+
readonly JsonSchema: "json_schema";
|
|
1864
|
+
}>;
|
|
1865
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModels2Type$outboundSchema` instead. */
|
|
1866
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1867
|
+
readonly JsonSchema: "json_schema";
|
|
1868
|
+
}>;
|
|
1869
|
+
}
|
|
1870
|
+
/** @internal */
|
|
1871
|
+
export declare const StreamRunAgentResponseFormatAgentsJsonSchema$inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgentsJsonSchema, z.ZodTypeDef, unknown>;
|
|
1872
|
+
/** @internal */
|
|
1873
|
+
export type StreamRunAgentResponseFormatAgentsJsonSchema$Outbound = {
|
|
1874
|
+
description?: string | undefined;
|
|
1875
|
+
name: string;
|
|
1876
|
+
schema?: any | undefined;
|
|
1877
|
+
strict?: boolean | undefined;
|
|
1878
|
+
};
|
|
1879
|
+
/** @internal */
|
|
1880
|
+
export declare const StreamRunAgentResponseFormatAgentsJsonSchema$outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgentsJsonSchema$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgentsJsonSchema>;
|
|
1881
|
+
/**
|
|
1882
|
+
* @internal
|
|
1883
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1884
|
+
*/
|
|
1885
|
+
export declare namespace StreamRunAgentResponseFormatAgentsJsonSchema$ {
|
|
1886
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsJsonSchema$inboundSchema` instead. */
|
|
1887
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgentsJsonSchema, z.ZodTypeDef, unknown>;
|
|
1888
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsJsonSchema$outboundSchema` instead. */
|
|
1889
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgentsJsonSchema$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgentsJsonSchema>;
|
|
1890
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsJsonSchema$Outbound` instead. */
|
|
1891
|
+
type Outbound = StreamRunAgentResponseFormatAgentsJsonSchema$Outbound;
|
|
1892
|
+
}
|
|
1893
|
+
export declare function streamRunAgentResponseFormatAgentsJsonSchemaToJSON(streamRunAgentResponseFormatAgentsJsonSchema: StreamRunAgentResponseFormatAgentsJsonSchema): string;
|
|
1894
|
+
export declare function streamRunAgentResponseFormatAgentsJsonSchemaFromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormatAgentsJsonSchema, SDKValidationError>;
|
|
1895
|
+
/** @internal */
|
|
1896
|
+
export declare const StreamRunAgentResponseFormatAgents3$inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents3, z.ZodTypeDef, unknown>;
|
|
1897
|
+
/** @internal */
|
|
1898
|
+
export type StreamRunAgentResponseFormatAgents3$Outbound = {
|
|
1899
|
+
type: string;
|
|
1900
|
+
json_schema: StreamRunAgentResponseFormatAgentsJsonSchema$Outbound;
|
|
1901
|
+
};
|
|
1902
|
+
/** @internal */
|
|
1903
|
+
export declare const StreamRunAgentResponseFormatAgents3$outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents3$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents3>;
|
|
1904
|
+
/**
|
|
1905
|
+
* @internal
|
|
1906
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1907
|
+
*/
|
|
1908
|
+
export declare namespace StreamRunAgentResponseFormatAgents3$ {
|
|
1909
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents3$inboundSchema` instead. */
|
|
1910
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents3, z.ZodTypeDef, unknown>;
|
|
1911
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents3$outboundSchema` instead. */
|
|
1912
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents3$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents3>;
|
|
1913
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents3$Outbound` instead. */
|
|
1914
|
+
type Outbound = StreamRunAgentResponseFormatAgents3$Outbound;
|
|
1915
|
+
}
|
|
1916
|
+
export declare function streamRunAgentResponseFormatAgents3ToJSON(streamRunAgentResponseFormatAgents3: StreamRunAgentResponseFormatAgents3): string;
|
|
1917
|
+
export declare function streamRunAgentResponseFormatAgents3FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormatAgents3, SDKValidationError>;
|
|
1918
|
+
/** @internal */
|
|
1919
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType>;
|
|
1920
|
+
/** @internal */
|
|
1921
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType>;
|
|
1922
|
+
/**
|
|
1923
|
+
* @internal
|
|
1924
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1925
|
+
*/
|
|
1926
|
+
export declare namespace StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType$ {
|
|
1927
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType$inboundSchema` instead. */
|
|
1928
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1929
|
+
readonly JsonObject: "json_object";
|
|
1930
|
+
}>;
|
|
1931
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyFallbackModelsType$outboundSchema` instead. */
|
|
1932
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1933
|
+
readonly JsonObject: "json_object";
|
|
1934
|
+
}>;
|
|
1935
|
+
}
|
|
1936
|
+
/** @internal */
|
|
1937
|
+
export declare const StreamRunAgentResponseFormatAgents2$inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents2, z.ZodTypeDef, unknown>;
|
|
1938
|
+
/** @internal */
|
|
1939
|
+
export type StreamRunAgentResponseFormatAgents2$Outbound = {
|
|
1940
|
+
type: string;
|
|
1941
|
+
};
|
|
1942
|
+
/** @internal */
|
|
1943
|
+
export declare const StreamRunAgentResponseFormatAgents2$outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents2$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents2>;
|
|
1944
|
+
/**
|
|
1945
|
+
* @internal
|
|
1946
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1947
|
+
*/
|
|
1948
|
+
export declare namespace StreamRunAgentResponseFormatAgents2$ {
|
|
1949
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents2$inboundSchema` instead. */
|
|
1950
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents2, z.ZodTypeDef, unknown>;
|
|
1951
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents2$outboundSchema` instead. */
|
|
1952
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents2$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents2>;
|
|
1953
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents2$Outbound` instead. */
|
|
1954
|
+
type Outbound = StreamRunAgentResponseFormatAgents2$Outbound;
|
|
1955
|
+
}
|
|
1956
|
+
export declare function streamRunAgentResponseFormatAgents2ToJSON(streamRunAgentResponseFormatAgents2: StreamRunAgentResponseFormatAgents2): string;
|
|
1957
|
+
export declare function streamRunAgentResponseFormatAgents2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormatAgents2, SDKValidationError>;
|
|
1958
|
+
/** @internal */
|
|
1959
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyType>;
|
|
1960
|
+
/** @internal */
|
|
1961
|
+
export declare const StreamRunAgentResponseFormatAgentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentResponseFormatAgentsRequestRequestBodyType>;
|
|
1962
|
+
/**
|
|
1963
|
+
* @internal
|
|
1964
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1965
|
+
*/
|
|
1966
|
+
export declare namespace StreamRunAgentResponseFormatAgentsRequestRequestBodyType$ {
|
|
1967
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyType$inboundSchema` instead. */
|
|
1968
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1969
|
+
readonly Text: "text";
|
|
1970
|
+
}>;
|
|
1971
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgentsRequestRequestBodyType$outboundSchema` instead. */
|
|
1972
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1973
|
+
readonly Text: "text";
|
|
1974
|
+
}>;
|
|
1975
|
+
}
|
|
1976
|
+
/** @internal */
|
|
1977
|
+
export declare const StreamRunAgentResponseFormatAgents1$inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents1, z.ZodTypeDef, unknown>;
|
|
1978
|
+
/** @internal */
|
|
1979
|
+
export type StreamRunAgentResponseFormatAgents1$Outbound = {
|
|
1980
|
+
type: string;
|
|
1981
|
+
};
|
|
1982
|
+
/** @internal */
|
|
1983
|
+
export declare const StreamRunAgentResponseFormatAgents1$outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents1$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents1>;
|
|
1984
|
+
/**
|
|
1985
|
+
* @internal
|
|
1986
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1987
|
+
*/
|
|
1988
|
+
export declare namespace StreamRunAgentResponseFormatAgents1$ {
|
|
1989
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents1$inboundSchema` instead. */
|
|
1990
|
+
const inboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents1, z.ZodTypeDef, unknown>;
|
|
1991
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents1$outboundSchema` instead. */
|
|
1992
|
+
const outboundSchema: z.ZodType<StreamRunAgentResponseFormatAgents1$Outbound, z.ZodTypeDef, StreamRunAgentResponseFormatAgents1>;
|
|
1993
|
+
/** @deprecated use `StreamRunAgentResponseFormatAgents1$Outbound` instead. */
|
|
1994
|
+
type Outbound = StreamRunAgentResponseFormatAgents1$Outbound;
|
|
1995
|
+
}
|
|
1996
|
+
export declare function streamRunAgentResponseFormatAgents1ToJSON(streamRunAgentResponseFormatAgents1: StreamRunAgentResponseFormatAgents1): string;
|
|
1997
|
+
export declare function streamRunAgentResponseFormatAgents1FromJSON(jsonString: string): SafeParseResult<StreamRunAgentResponseFormatAgents1, SDKValidationError>;
|
|
1998
|
+
/** @internal */
|
|
1999
|
+
export declare const StreamRunAgentFallbackModelsResponseFormat$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsResponseFormat, z.ZodTypeDef, unknown>;
|
|
2000
|
+
/** @internal */
|
|
2001
|
+
export type StreamRunAgentFallbackModelsResponseFormat$Outbound = StreamRunAgentResponseFormatAgents3$Outbound | StreamRunAgentResponseFormatAgents1$Outbound | StreamRunAgentResponseFormatAgents2$Outbound;
|
|
2002
|
+
/** @internal */
|
|
2003
|
+
export declare const StreamRunAgentFallbackModelsResponseFormat$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsResponseFormat$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsResponseFormat>;
|
|
2004
|
+
/**
|
|
2005
|
+
* @internal
|
|
2006
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2007
|
+
*/
|
|
2008
|
+
export declare namespace StreamRunAgentFallbackModelsResponseFormat$ {
|
|
2009
|
+
/** @deprecated use `StreamRunAgentFallbackModelsResponseFormat$inboundSchema` instead. */
|
|
2010
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsResponseFormat, z.ZodTypeDef, unknown>;
|
|
2011
|
+
/** @deprecated use `StreamRunAgentFallbackModelsResponseFormat$outboundSchema` instead. */
|
|
2012
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsResponseFormat$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsResponseFormat>;
|
|
2013
|
+
/** @deprecated use `StreamRunAgentFallbackModelsResponseFormat$Outbound` instead. */
|
|
2014
|
+
type Outbound = StreamRunAgentFallbackModelsResponseFormat$Outbound;
|
|
2015
|
+
}
|
|
2016
|
+
export declare function streamRunAgentFallbackModelsResponseFormatToJSON(streamRunAgentFallbackModelsResponseFormat: StreamRunAgentFallbackModelsResponseFormat): string;
|
|
2017
|
+
export declare function streamRunAgentFallbackModelsResponseFormatFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsResponseFormat, SDKValidationError>;
|
|
2018
|
+
/** @internal */
|
|
2019
|
+
export declare const StreamRunAgentFallbackModelsStop$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsStop, z.ZodTypeDef, unknown>;
|
|
2020
|
+
/** @internal */
|
|
2021
|
+
export type StreamRunAgentFallbackModelsStop$Outbound = string | Array<string>;
|
|
2022
|
+
/** @internal */
|
|
2023
|
+
export declare const StreamRunAgentFallbackModelsStop$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsStop$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsStop>;
|
|
2024
|
+
/**
|
|
2025
|
+
* @internal
|
|
2026
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2027
|
+
*/
|
|
2028
|
+
export declare namespace StreamRunAgentFallbackModelsStop$ {
|
|
2029
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStop$inboundSchema` instead. */
|
|
2030
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsStop, z.ZodTypeDef, unknown>;
|
|
2031
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStop$outboundSchema` instead. */
|
|
2032
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsStop$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsStop>;
|
|
2033
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStop$Outbound` instead. */
|
|
2034
|
+
type Outbound = StreamRunAgentFallbackModelsStop$Outbound;
|
|
2035
|
+
}
|
|
2036
|
+
export declare function streamRunAgentFallbackModelsStopToJSON(streamRunAgentFallbackModelsStop: StreamRunAgentFallbackModelsStop): string;
|
|
2037
|
+
export declare function streamRunAgentFallbackModelsStopFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsStop, SDKValidationError>;
|
|
2038
|
+
/** @internal */
|
|
2039
|
+
export declare const StreamRunAgentFallbackModelsStreamOptions$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsStreamOptions, z.ZodTypeDef, unknown>;
|
|
2040
|
+
/** @internal */
|
|
2041
|
+
export type StreamRunAgentFallbackModelsStreamOptions$Outbound = {
|
|
2042
|
+
include_usage?: boolean | undefined;
|
|
2043
|
+
};
|
|
2044
|
+
/** @internal */
|
|
2045
|
+
export declare const StreamRunAgentFallbackModelsStreamOptions$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsStreamOptions$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsStreamOptions>;
|
|
2046
|
+
/**
|
|
2047
|
+
* @internal
|
|
2048
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2049
|
+
*/
|
|
2050
|
+
export declare namespace StreamRunAgentFallbackModelsStreamOptions$ {
|
|
2051
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStreamOptions$inboundSchema` instead. */
|
|
2052
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsStreamOptions, z.ZodTypeDef, unknown>;
|
|
2053
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStreamOptions$outboundSchema` instead. */
|
|
2054
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsStreamOptions$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsStreamOptions>;
|
|
2055
|
+
/** @deprecated use `StreamRunAgentFallbackModelsStreamOptions$Outbound` instead. */
|
|
2056
|
+
type Outbound = StreamRunAgentFallbackModelsStreamOptions$Outbound;
|
|
2057
|
+
}
|
|
2058
|
+
export declare function streamRunAgentFallbackModelsStreamOptionsToJSON(streamRunAgentFallbackModelsStreamOptions: StreamRunAgentFallbackModelsStreamOptions): string;
|
|
2059
|
+
export declare function streamRunAgentFallbackModelsStreamOptionsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsStreamOptions, SDKValidationError>;
|
|
2060
|
+
/** @internal */
|
|
2061
|
+
export declare const StreamRunAgentFallbackModelsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsType>;
|
|
2062
|
+
/** @internal */
|
|
2063
|
+
export declare const StreamRunAgentFallbackModelsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsType>;
|
|
2064
|
+
/**
|
|
2065
|
+
* @internal
|
|
2066
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2067
|
+
*/
|
|
2068
|
+
export declare namespace StreamRunAgentFallbackModelsType$ {
|
|
2069
|
+
/** @deprecated use `StreamRunAgentFallbackModelsType$inboundSchema` instead. */
|
|
2070
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2071
|
+
readonly Enabled: "enabled";
|
|
2072
|
+
readonly Disabled: "disabled";
|
|
2073
|
+
}>;
|
|
2074
|
+
/** @deprecated use `StreamRunAgentFallbackModelsType$outboundSchema` instead. */
|
|
2075
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2076
|
+
readonly Enabled: "enabled";
|
|
2077
|
+
readonly Disabled: "disabled";
|
|
2078
|
+
}>;
|
|
2079
|
+
}
|
|
2080
|
+
/** @internal */
|
|
2081
|
+
export declare const StreamRunAgentFallbackModelsThinking$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsThinking, z.ZodTypeDef, unknown>;
|
|
2082
|
+
/** @internal */
|
|
2083
|
+
export type StreamRunAgentFallbackModelsThinking$Outbound = {
|
|
2084
|
+
type: string;
|
|
2085
|
+
budget_tokens: number;
|
|
2086
|
+
};
|
|
2087
|
+
/** @internal */
|
|
2088
|
+
export declare const StreamRunAgentFallbackModelsThinking$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsThinking$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsThinking>;
|
|
2089
|
+
/**
|
|
2090
|
+
* @internal
|
|
2091
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2092
|
+
*/
|
|
2093
|
+
export declare namespace StreamRunAgentFallbackModelsThinking$ {
|
|
2094
|
+
/** @deprecated use `StreamRunAgentFallbackModelsThinking$inboundSchema` instead. */
|
|
2095
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsThinking, z.ZodTypeDef, unknown>;
|
|
2096
|
+
/** @deprecated use `StreamRunAgentFallbackModelsThinking$outboundSchema` instead. */
|
|
2097
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsThinking$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsThinking>;
|
|
2098
|
+
/** @deprecated use `StreamRunAgentFallbackModelsThinking$Outbound` instead. */
|
|
2099
|
+
type Outbound = StreamRunAgentFallbackModelsThinking$Outbound;
|
|
2100
|
+
}
|
|
2101
|
+
export declare function streamRunAgentFallbackModelsThinkingToJSON(streamRunAgentFallbackModelsThinking: StreamRunAgentFallbackModelsThinking): string;
|
|
2102
|
+
export declare function streamRunAgentFallbackModelsThinkingFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsThinking, SDKValidationError>;
|
|
2103
|
+
/** @internal */
|
|
2104
|
+
export declare const StreamRunAgentToolChoiceAgentsType$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceAgentsType>;
|
|
2105
|
+
/** @internal */
|
|
2106
|
+
export declare const StreamRunAgentToolChoiceAgentsType$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceAgentsType>;
|
|
2107
|
+
/**
|
|
2108
|
+
* @internal
|
|
2109
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2110
|
+
*/
|
|
2111
|
+
export declare namespace StreamRunAgentToolChoiceAgentsType$ {
|
|
2112
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgentsType$inboundSchema` instead. */
|
|
2113
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2114
|
+
readonly Function: "function";
|
|
2115
|
+
}>;
|
|
2116
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgentsType$outboundSchema` instead. */
|
|
2117
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2118
|
+
readonly Function: "function";
|
|
2119
|
+
}>;
|
|
2120
|
+
}
|
|
2121
|
+
/** @internal */
|
|
2122
|
+
export declare const StreamRunAgentToolChoiceAgentsFunction$inboundSchema: z.ZodType<StreamRunAgentToolChoiceAgentsFunction, z.ZodTypeDef, unknown>;
|
|
2123
|
+
/** @internal */
|
|
2124
|
+
export type StreamRunAgentToolChoiceAgentsFunction$Outbound = {
|
|
2125
|
+
name?: string | undefined;
|
|
2126
|
+
};
|
|
2127
|
+
/** @internal */
|
|
2128
|
+
export declare const StreamRunAgentToolChoiceAgentsFunction$outboundSchema: z.ZodType<StreamRunAgentToolChoiceAgentsFunction$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceAgentsFunction>;
|
|
2129
|
+
/**
|
|
2130
|
+
* @internal
|
|
2131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2132
|
+
*/
|
|
2133
|
+
export declare namespace StreamRunAgentToolChoiceAgentsFunction$ {
|
|
2134
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgentsFunction$inboundSchema` instead. */
|
|
2135
|
+
const inboundSchema: z.ZodType<StreamRunAgentToolChoiceAgentsFunction, z.ZodTypeDef, unknown>;
|
|
2136
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgentsFunction$outboundSchema` instead. */
|
|
2137
|
+
const outboundSchema: z.ZodType<StreamRunAgentToolChoiceAgentsFunction$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceAgentsFunction>;
|
|
2138
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgentsFunction$Outbound` instead. */
|
|
2139
|
+
type Outbound = StreamRunAgentToolChoiceAgentsFunction$Outbound;
|
|
2140
|
+
}
|
|
2141
|
+
export declare function streamRunAgentToolChoiceAgentsFunctionToJSON(streamRunAgentToolChoiceAgentsFunction: StreamRunAgentToolChoiceAgentsFunction): string;
|
|
2142
|
+
export declare function streamRunAgentToolChoiceAgentsFunctionFromJSON(jsonString: string): SafeParseResult<StreamRunAgentToolChoiceAgentsFunction, SDKValidationError>;
|
|
2143
|
+
/** @internal */
|
|
2144
|
+
export declare const StreamRunAgentToolChoiceAgents2$inboundSchema: z.ZodType<StreamRunAgentToolChoiceAgents2, z.ZodTypeDef, unknown>;
|
|
2145
|
+
/** @internal */
|
|
2146
|
+
export type StreamRunAgentToolChoiceAgents2$Outbound = {
|
|
2147
|
+
type?: string | undefined;
|
|
2148
|
+
function: StreamRunAgentToolChoiceAgentsFunction$Outbound;
|
|
2149
|
+
};
|
|
2150
|
+
/** @internal */
|
|
2151
|
+
export declare const StreamRunAgentToolChoiceAgents2$outboundSchema: z.ZodType<StreamRunAgentToolChoiceAgents2$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceAgents2>;
|
|
2152
|
+
/**
|
|
2153
|
+
* @internal
|
|
2154
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2155
|
+
*/
|
|
2156
|
+
export declare namespace StreamRunAgentToolChoiceAgents2$ {
|
|
2157
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgents2$inboundSchema` instead. */
|
|
2158
|
+
const inboundSchema: z.ZodType<StreamRunAgentToolChoiceAgents2, z.ZodTypeDef, unknown>;
|
|
2159
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgents2$outboundSchema` instead. */
|
|
2160
|
+
const outboundSchema: z.ZodType<StreamRunAgentToolChoiceAgents2$Outbound, z.ZodTypeDef, StreamRunAgentToolChoiceAgents2>;
|
|
2161
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgents2$Outbound` instead. */
|
|
2162
|
+
type Outbound = StreamRunAgentToolChoiceAgents2$Outbound;
|
|
2163
|
+
}
|
|
2164
|
+
export declare function streamRunAgentToolChoiceAgents2ToJSON(streamRunAgentToolChoiceAgents2: StreamRunAgentToolChoiceAgents2): string;
|
|
2165
|
+
export declare function streamRunAgentToolChoiceAgents2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentToolChoiceAgents2, SDKValidationError>;
|
|
2166
|
+
/** @internal */
|
|
2167
|
+
export declare const StreamRunAgentToolChoiceAgents1$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceAgents1>;
|
|
2168
|
+
/** @internal */
|
|
2169
|
+
export declare const StreamRunAgentToolChoiceAgents1$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentToolChoiceAgents1>;
|
|
2170
|
+
/**
|
|
2171
|
+
* @internal
|
|
2172
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2173
|
+
*/
|
|
2174
|
+
export declare namespace StreamRunAgentToolChoiceAgents1$ {
|
|
2175
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgents1$inboundSchema` instead. */
|
|
2176
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2177
|
+
readonly None: "none";
|
|
2178
|
+
readonly Auto: "auto";
|
|
2179
|
+
readonly Required: "required";
|
|
2180
|
+
}>;
|
|
2181
|
+
/** @deprecated use `StreamRunAgentToolChoiceAgents1$outboundSchema` instead. */
|
|
2182
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2183
|
+
readonly None: "none";
|
|
2184
|
+
readonly Auto: "auto";
|
|
2185
|
+
readonly Required: "required";
|
|
2186
|
+
}>;
|
|
2187
|
+
}
|
|
2188
|
+
/** @internal */
|
|
2189
|
+
export declare const StreamRunAgentFallbackModelsToolChoice$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsToolChoice, z.ZodTypeDef, unknown>;
|
|
2190
|
+
/** @internal */
|
|
2191
|
+
export type StreamRunAgentFallbackModelsToolChoice$Outbound = StreamRunAgentToolChoiceAgents2$Outbound | string;
|
|
2192
|
+
/** @internal */
|
|
2193
|
+
export declare const StreamRunAgentFallbackModelsToolChoice$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsToolChoice$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsToolChoice>;
|
|
2194
|
+
/**
|
|
2195
|
+
* @internal
|
|
2196
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2197
|
+
*/
|
|
2198
|
+
export declare namespace StreamRunAgentFallbackModelsToolChoice$ {
|
|
2199
|
+
/** @deprecated use `StreamRunAgentFallbackModelsToolChoice$inboundSchema` instead. */
|
|
2200
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsToolChoice, z.ZodTypeDef, unknown>;
|
|
2201
|
+
/** @deprecated use `StreamRunAgentFallbackModelsToolChoice$outboundSchema` instead. */
|
|
2202
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsToolChoice$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsToolChoice>;
|
|
2203
|
+
/** @deprecated use `StreamRunAgentFallbackModelsToolChoice$Outbound` instead. */
|
|
2204
|
+
type Outbound = StreamRunAgentFallbackModelsToolChoice$Outbound;
|
|
2205
|
+
}
|
|
2206
|
+
export declare function streamRunAgentFallbackModelsToolChoiceToJSON(streamRunAgentFallbackModelsToolChoice: StreamRunAgentFallbackModelsToolChoice): string;
|
|
2207
|
+
export declare function streamRunAgentFallbackModelsToolChoiceFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsToolChoice, SDKValidationError>;
|
|
2208
|
+
/** @internal */
|
|
2209
|
+
export declare const StreamRunAgentFallbackModelsModalities$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsModalities>;
|
|
2210
|
+
/** @internal */
|
|
2211
|
+
export declare const StreamRunAgentFallbackModelsModalities$outboundSchema: z.ZodNativeEnum<typeof StreamRunAgentFallbackModelsModalities>;
|
|
2212
|
+
/**
|
|
2213
|
+
* @internal
|
|
2214
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2215
|
+
*/
|
|
2216
|
+
export declare namespace StreamRunAgentFallbackModelsModalities$ {
|
|
2217
|
+
/** @deprecated use `StreamRunAgentFallbackModelsModalities$inboundSchema` instead. */
|
|
2218
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2219
|
+
readonly Text: "text";
|
|
2220
|
+
readonly Audio: "audio";
|
|
2221
|
+
}>;
|
|
2222
|
+
/** @deprecated use `StreamRunAgentFallbackModelsModalities$outboundSchema` instead. */
|
|
2223
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2224
|
+
readonly Text: "text";
|
|
2225
|
+
readonly Audio: "audio";
|
|
2226
|
+
}>;
|
|
2227
|
+
}
|
|
2228
|
+
/** @internal */
|
|
2229
|
+
export declare const StreamRunAgentFallbackModelsWebSearchOptions$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsWebSearchOptions, z.ZodTypeDef, unknown>;
|
|
2230
|
+
/** @internal */
|
|
2231
|
+
export type StreamRunAgentFallbackModelsWebSearchOptions$Outbound = {
|
|
2232
|
+
enabled?: boolean | undefined;
|
|
2233
|
+
};
|
|
2234
|
+
/** @internal */
|
|
2235
|
+
export declare const StreamRunAgentFallbackModelsWebSearchOptions$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsWebSearchOptions$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsWebSearchOptions>;
|
|
2236
|
+
/**
|
|
2237
|
+
* @internal
|
|
2238
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2239
|
+
*/
|
|
2240
|
+
export declare namespace StreamRunAgentFallbackModelsWebSearchOptions$ {
|
|
2241
|
+
/** @deprecated use `StreamRunAgentFallbackModelsWebSearchOptions$inboundSchema` instead. */
|
|
2242
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsWebSearchOptions, z.ZodTypeDef, unknown>;
|
|
2243
|
+
/** @deprecated use `StreamRunAgentFallbackModelsWebSearchOptions$outboundSchema` instead. */
|
|
2244
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsWebSearchOptions$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsWebSearchOptions>;
|
|
2245
|
+
/** @deprecated use `StreamRunAgentFallbackModelsWebSearchOptions$Outbound` instead. */
|
|
2246
|
+
type Outbound = StreamRunAgentFallbackModelsWebSearchOptions$Outbound;
|
|
2247
|
+
}
|
|
2248
|
+
export declare function streamRunAgentFallbackModelsWebSearchOptionsToJSON(streamRunAgentFallbackModelsWebSearchOptions: StreamRunAgentFallbackModelsWebSearchOptions): string;
|
|
2249
|
+
export declare function streamRunAgentFallbackModelsWebSearchOptionsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsWebSearchOptions, SDKValidationError>;
|
|
2250
|
+
/** @internal */
|
|
2251
|
+
export declare const StreamRunAgentFallbackModelsParameters$inboundSchema: z.ZodType<StreamRunAgentFallbackModelsParameters, z.ZodTypeDef, unknown>;
|
|
2252
|
+
/** @internal */
|
|
2253
|
+
export type StreamRunAgentFallbackModelsParameters$Outbound = {
|
|
2254
|
+
audio?: StreamRunAgentFallbackModelsAudio$Outbound | null | undefined;
|
|
2255
|
+
frequency_penalty?: number | null | undefined;
|
|
2256
|
+
max_tokens?: number | null | undefined;
|
|
2257
|
+
max_completion_tokens?: number | null | undefined;
|
|
2258
|
+
logprobs?: boolean | null | undefined;
|
|
2259
|
+
top_logprobs?: number | null | undefined;
|
|
2260
|
+
n?: number | null | undefined;
|
|
2261
|
+
presence_penalty?: number | null | undefined;
|
|
2262
|
+
response_format?: StreamRunAgentResponseFormatAgents3$Outbound | StreamRunAgentResponseFormatAgents1$Outbound | StreamRunAgentResponseFormatAgents2$Outbound | undefined;
|
|
2263
|
+
reasoning_effort?: string | undefined;
|
|
2264
|
+
verbosity?: string | undefined;
|
|
2265
|
+
seed?: number | null | undefined;
|
|
2266
|
+
stop?: string | Array<string> | null | undefined;
|
|
2267
|
+
stream_options?: StreamRunAgentFallbackModelsStreamOptions$Outbound | null | undefined;
|
|
2268
|
+
thinking?: StreamRunAgentFallbackModelsThinking$Outbound | undefined;
|
|
2269
|
+
temperature?: number | null | undefined;
|
|
2270
|
+
top_p?: number | null | undefined;
|
|
2271
|
+
top_k?: number | null | undefined;
|
|
2272
|
+
tool_choice?: StreamRunAgentToolChoiceAgents2$Outbound | string | undefined;
|
|
2273
|
+
parallel_tool_calls?: boolean | undefined;
|
|
2274
|
+
modalities?: Array<string> | null | undefined;
|
|
2275
|
+
web_search_options?: StreamRunAgentFallbackModelsWebSearchOptions$Outbound | undefined;
|
|
2276
|
+
};
|
|
2277
|
+
/** @internal */
|
|
2278
|
+
export declare const StreamRunAgentFallbackModelsParameters$outboundSchema: z.ZodType<StreamRunAgentFallbackModelsParameters$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsParameters>;
|
|
2279
|
+
/**
|
|
2280
|
+
* @internal
|
|
2281
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2282
|
+
*/
|
|
2283
|
+
export declare namespace StreamRunAgentFallbackModelsParameters$ {
|
|
2284
|
+
/** @deprecated use `StreamRunAgentFallbackModelsParameters$inboundSchema` instead. */
|
|
2285
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModelsParameters, z.ZodTypeDef, unknown>;
|
|
2286
|
+
/** @deprecated use `StreamRunAgentFallbackModelsParameters$outboundSchema` instead. */
|
|
2287
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModelsParameters$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModelsParameters>;
|
|
2288
|
+
/** @deprecated use `StreamRunAgentFallbackModelsParameters$Outbound` instead. */
|
|
2289
|
+
type Outbound = StreamRunAgentFallbackModelsParameters$Outbound;
|
|
2290
|
+
}
|
|
2291
|
+
export declare function streamRunAgentFallbackModelsParametersToJSON(streamRunAgentFallbackModelsParameters: StreamRunAgentFallbackModelsParameters): string;
|
|
2292
|
+
export declare function streamRunAgentFallbackModelsParametersFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModelsParameters, SDKValidationError>;
|
|
2293
|
+
/** @internal */
|
|
2294
|
+
export declare const StreamRunAgentFallbackModels2$inboundSchema: z.ZodType<StreamRunAgentFallbackModels2, z.ZodTypeDef, unknown>;
|
|
2295
|
+
/** @internal */
|
|
2296
|
+
export type StreamRunAgentFallbackModels2$Outbound = {
|
|
2297
|
+
id: string;
|
|
2298
|
+
integration_id?: string | null | undefined;
|
|
2299
|
+
parameters?: StreamRunAgentFallbackModelsParameters$Outbound | undefined;
|
|
2300
|
+
};
|
|
2301
|
+
/** @internal */
|
|
2302
|
+
export declare const StreamRunAgentFallbackModels2$outboundSchema: z.ZodType<StreamRunAgentFallbackModels2$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModels2>;
|
|
2303
|
+
/**
|
|
2304
|
+
* @internal
|
|
2305
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2306
|
+
*/
|
|
2307
|
+
export declare namespace StreamRunAgentFallbackModels2$ {
|
|
2308
|
+
/** @deprecated use `StreamRunAgentFallbackModels2$inboundSchema` instead. */
|
|
2309
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModels2, z.ZodTypeDef, unknown>;
|
|
2310
|
+
/** @deprecated use `StreamRunAgentFallbackModels2$outboundSchema` instead. */
|
|
2311
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModels2$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModels2>;
|
|
2312
|
+
/** @deprecated use `StreamRunAgentFallbackModels2$Outbound` instead. */
|
|
2313
|
+
type Outbound = StreamRunAgentFallbackModels2$Outbound;
|
|
2314
|
+
}
|
|
2315
|
+
export declare function streamRunAgentFallbackModels2ToJSON(streamRunAgentFallbackModels2: StreamRunAgentFallbackModels2): string;
|
|
2316
|
+
export declare function streamRunAgentFallbackModels2FromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModels2, SDKValidationError>;
|
|
2317
|
+
/** @internal */
|
|
2318
|
+
export declare const StreamRunAgentFallbackModels$inboundSchema: z.ZodType<StreamRunAgentFallbackModels, z.ZodTypeDef, unknown>;
|
|
2319
|
+
/** @internal */
|
|
2320
|
+
export type StreamRunAgentFallbackModels$Outbound = StreamRunAgentFallbackModels2$Outbound | string;
|
|
2321
|
+
/** @internal */
|
|
2322
|
+
export declare const StreamRunAgentFallbackModels$outboundSchema: z.ZodType<StreamRunAgentFallbackModels$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModels>;
|
|
2323
|
+
/**
|
|
2324
|
+
* @internal
|
|
2325
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2326
|
+
*/
|
|
2327
|
+
export declare namespace StreamRunAgentFallbackModels$ {
|
|
2328
|
+
/** @deprecated use `StreamRunAgentFallbackModels$inboundSchema` instead. */
|
|
2329
|
+
const inboundSchema: z.ZodType<StreamRunAgentFallbackModels, z.ZodTypeDef, unknown>;
|
|
2330
|
+
/** @deprecated use `StreamRunAgentFallbackModels$outboundSchema` instead. */
|
|
2331
|
+
const outboundSchema: z.ZodType<StreamRunAgentFallbackModels$Outbound, z.ZodTypeDef, StreamRunAgentFallbackModels>;
|
|
2332
|
+
/** @deprecated use `StreamRunAgentFallbackModels$Outbound` instead. */
|
|
2333
|
+
type Outbound = StreamRunAgentFallbackModels$Outbound;
|
|
2334
|
+
}
|
|
2335
|
+
export declare function streamRunAgentFallbackModelsToJSON(streamRunAgentFallbackModels: StreamRunAgentFallbackModels): string;
|
|
2336
|
+
export declare function streamRunAgentFallbackModelsFromJSON(jsonString: string): SafeParseResult<StreamRunAgentFallbackModels, SDKValidationError>;
|
|
664
2337
|
/** @internal */
|
|
665
2338
|
export declare const StreamRunAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<typeof StreamRunAgentRoleToolMessage>;
|
|
666
2339
|
/** @internal */
|
|
@@ -1956,8 +3629,8 @@ export declare const StreamRunAgentRequestBody$inboundSchema: z.ZodType<StreamRu
|
|
|
1956
3629
|
export type StreamRunAgentRequestBody$Outbound = {
|
|
1957
3630
|
key: string;
|
|
1958
3631
|
task_id?: string | undefined;
|
|
1959
|
-
model: string;
|
|
1960
|
-
fallback_models?: Array<string> | undefined;
|
|
3632
|
+
model: StreamRunAgentModel2$Outbound | string;
|
|
3633
|
+
fallback_models?: Array<StreamRunAgentFallbackModels2$Outbound | string> | undefined;
|
|
1961
3634
|
role: string;
|
|
1962
3635
|
instructions: string;
|
|
1963
3636
|
message: StreamRunAgentMessage$Outbound;
|