llama-stack-client 0.2.2 → 0.2.3
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/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +5 -5
- package/core.js.map +1 -1
- package/core.mjs +5 -5
- package/core.mjs.map +1 -1
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -1
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/index.mjs +6 -0
- package/index.mjs.map +1 -1
- package/internal/decoders/line.d.ts +0 -1
- package/internal/decoders/line.d.ts.map +1 -1
- package/package.json +2 -3
- package/resources/chat/chat.d.ts +153 -0
- package/resources/chat/chat.d.ts.map +1 -0
- package/resources/chat/chat.js +39 -0
- package/resources/chat/chat.js.map +1 -0
- package/resources/chat/chat.mjs +12 -0
- package/resources/chat/chat.mjs.map +1 -0
- package/resources/chat/completions.d.ts +632 -0
- package/resources/chat/completions.d.ts.map +1 -0
- package/resources/chat/completions.js +16 -0
- package/resources/chat/completions.js.map +1 -0
- package/resources/chat/completions.mjs +12 -0
- package/resources/chat/completions.mjs.map +1 -0
- package/resources/chat/index.d.ts +3 -0
- package/resources/chat/index.d.ts.map +1 -0
- package/resources/chat/index.js +9 -0
- package/resources/chat/index.js.map +1 -0
- package/resources/chat/index.mjs +4 -0
- package/resources/chat/index.mjs.map +1 -0
- package/resources/chat.d.ts +2 -0
- package/resources/chat.d.ts.map +1 -0
- package/resources/chat.js +19 -0
- package/resources/chat.js.map +1 -0
- package/resources/chat.mjs +3 -0
- package/resources/chat.mjs.map +1 -0
- package/resources/completions.d.ts +193 -0
- package/resources/completions.d.ts.map +1 -0
- package/resources/completions.js +16 -0
- package/resources/completions.js.map +1 -0
- package/resources/completions.mjs +12 -0
- package/resources/completions.mjs.map +1 -0
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +2 -1
- package/resources/inspect.d.ts.map +1 -1
- package/resources/post-training/job.d.ts.map +1 -1
- package/resources/post-training/job.js.map +1 -1
- package/resources/post-training/job.mjs.map +1 -1
- package/resources/post-training/post-training.d.ts +19 -19
- package/resources/post-training/post-training.d.ts.map +1 -1
- package/resources/shared.d.ts +17 -1
- package/resources/shared.d.ts.map +1 -1
- package/src/core.ts +4 -4
- package/src/index.ts +22 -0
- package/src/resources/chat/chat.ts +206 -0
- package/src/resources/chat/completions.ts +890 -0
- package/src/resources/chat/index.ts +10 -0
- package/src/resources/chat.ts +3 -0
- package/src/resources/completions.ts +268 -0
- package/src/resources/index.ts +8 -0
- package/src/resources/inspect.ts +3 -1
- package/src/resources/post-training/job.ts +1 -0
- package/src/resources/post-training/post-training.ts +32 -32
- package/src/resources/shared.ts +18 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Chat, type ChatCompletionChunk } from './chat';
|
|
4
|
+
export {
|
|
5
|
+
Completions,
|
|
6
|
+
type CompletionCreateResponse,
|
|
7
|
+
type CompletionCreateParams,
|
|
8
|
+
type CompletionCreateParamsNonStreaming,
|
|
9
|
+
type CompletionCreateParamsStreaming,
|
|
10
|
+
} from './completions';
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { APIPromise } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
|
+
import * as CompletionsAPI from './completions';
|
|
7
|
+
import { Stream } from '../streaming';
|
|
8
|
+
|
|
9
|
+
export class Completions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Generate an OpenAI-compatible completion for the given prompt using the
|
|
12
|
+
* specified model.
|
|
13
|
+
*/
|
|
14
|
+
create(
|
|
15
|
+
body: CompletionCreateParamsNonStreaming,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): APIPromise<CompletionCreateResponse>;
|
|
18
|
+
create(
|
|
19
|
+
body: CompletionCreateParamsStreaming,
|
|
20
|
+
options?: Core.RequestOptions,
|
|
21
|
+
): APIPromise<Stream<CompletionCreateResponse>>;
|
|
22
|
+
create(
|
|
23
|
+
body: CompletionCreateParamsBase,
|
|
24
|
+
options?: Core.RequestOptions,
|
|
25
|
+
): APIPromise<Stream<CompletionCreateResponse> | CompletionCreateResponse>;
|
|
26
|
+
create(
|
|
27
|
+
body: CompletionCreateParams,
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): APIPromise<CompletionCreateResponse> | APIPromise<Stream<CompletionCreateResponse>> {
|
|
30
|
+
return this._client.post('/v1/openai/v1/completions', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
stream: body.stream ?? false,
|
|
34
|
+
}) as APIPromise<CompletionCreateResponse> | APIPromise<Stream<CompletionCreateResponse>>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Response from an OpenAI-compatible completion request.
|
|
40
|
+
*/
|
|
41
|
+
export interface CompletionCreateResponse {
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
choices: Array<CompletionCreateResponse.Choice>;
|
|
45
|
+
|
|
46
|
+
created: number;
|
|
47
|
+
|
|
48
|
+
model: string;
|
|
49
|
+
|
|
50
|
+
object: 'text_completion';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace CompletionCreateResponse {
|
|
54
|
+
/**
|
|
55
|
+
* A choice from an OpenAI-compatible completion response.
|
|
56
|
+
*/
|
|
57
|
+
export interface Choice {
|
|
58
|
+
finish_reason: string;
|
|
59
|
+
|
|
60
|
+
index: number;
|
|
61
|
+
|
|
62
|
+
text: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The log probabilities for the tokens in the message from an OpenAI-compatible
|
|
66
|
+
* chat completion response.
|
|
67
|
+
*/
|
|
68
|
+
logprobs?: Choice.Logprobs;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace Choice {
|
|
72
|
+
/**
|
|
73
|
+
* The log probabilities for the tokens in the message from an OpenAI-compatible
|
|
74
|
+
* chat completion response.
|
|
75
|
+
*/
|
|
76
|
+
export interface Logprobs {
|
|
77
|
+
/**
|
|
78
|
+
* (Optional) The log probabilities for the tokens in the message
|
|
79
|
+
*/
|
|
80
|
+
content?: Array<Logprobs.Content>;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* (Optional) The log probabilities for the tokens in the message
|
|
84
|
+
*/
|
|
85
|
+
refusal?: Array<Logprobs.Refusal>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export namespace Logprobs {
|
|
89
|
+
/**
|
|
90
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
91
|
+
* response.
|
|
92
|
+
*/
|
|
93
|
+
export interface Content {
|
|
94
|
+
token: string;
|
|
95
|
+
|
|
96
|
+
logprob: number;
|
|
97
|
+
|
|
98
|
+
top_logprobs: Array<Content.TopLogprob>;
|
|
99
|
+
|
|
100
|
+
bytes?: Array<number>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace Content {
|
|
104
|
+
/**
|
|
105
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
106
|
+
* response.
|
|
107
|
+
*/
|
|
108
|
+
export interface TopLogprob {
|
|
109
|
+
token: string;
|
|
110
|
+
|
|
111
|
+
logprob: number;
|
|
112
|
+
|
|
113
|
+
bytes?: Array<number>;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
119
|
+
* response.
|
|
120
|
+
*/
|
|
121
|
+
export interface Refusal {
|
|
122
|
+
token: string;
|
|
123
|
+
|
|
124
|
+
logprob: number;
|
|
125
|
+
|
|
126
|
+
top_logprobs: Array<Refusal.TopLogprob>;
|
|
127
|
+
|
|
128
|
+
bytes?: Array<number>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace Refusal {
|
|
132
|
+
/**
|
|
133
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
134
|
+
* response.
|
|
135
|
+
*/
|
|
136
|
+
export interface TopLogprob {
|
|
137
|
+
token: string;
|
|
138
|
+
|
|
139
|
+
logprob: number;
|
|
140
|
+
|
|
141
|
+
bytes?: Array<number>;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type CompletionCreateParams = CompletionCreateParamsNonStreaming | CompletionCreateParamsStreaming;
|
|
149
|
+
|
|
150
|
+
export interface CompletionCreateParamsBase {
|
|
151
|
+
/**
|
|
152
|
+
* The identifier of the model to use. The model must be registered with Llama
|
|
153
|
+
* Stack and available via the /models endpoint.
|
|
154
|
+
*/
|
|
155
|
+
model: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The prompt to generate a completion for
|
|
159
|
+
*/
|
|
160
|
+
prompt: string | Array<string> | Array<number> | Array<Array<number>>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* (Optional) The number of completions to generate
|
|
164
|
+
*/
|
|
165
|
+
best_of?: number;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* (Optional) Whether to echo the prompt
|
|
169
|
+
*/
|
|
170
|
+
echo?: boolean;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* (Optional) The penalty for repeated tokens
|
|
174
|
+
*/
|
|
175
|
+
frequency_penalty?: number;
|
|
176
|
+
|
|
177
|
+
guided_choice?: Array<string>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* (Optional) The logit bias to use
|
|
181
|
+
*/
|
|
182
|
+
logit_bias?: Record<string, number>;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* (Optional) The log probabilities to use
|
|
186
|
+
*/
|
|
187
|
+
logprobs?: boolean;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* (Optional) The maximum number of tokens to generate
|
|
191
|
+
*/
|
|
192
|
+
max_tokens?: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* (Optional) The number of completions to generate
|
|
196
|
+
*/
|
|
197
|
+
n?: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* (Optional) The penalty for repeated tokens
|
|
201
|
+
*/
|
|
202
|
+
presence_penalty?: number;
|
|
203
|
+
|
|
204
|
+
prompt_logprobs?: number;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* (Optional) The seed to use
|
|
208
|
+
*/
|
|
209
|
+
seed?: number;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* (Optional) The stop tokens to use
|
|
213
|
+
*/
|
|
214
|
+
stop?: string | Array<string>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* (Optional) Whether to stream the response
|
|
218
|
+
*/
|
|
219
|
+
stream?: boolean;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* (Optional) The stream options to use
|
|
223
|
+
*/
|
|
224
|
+
stream_options?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* (Optional) The temperature to use
|
|
228
|
+
*/
|
|
229
|
+
temperature?: number;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* (Optional) The top p to use
|
|
233
|
+
*/
|
|
234
|
+
top_p?: number;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* (Optional) The user to use
|
|
238
|
+
*/
|
|
239
|
+
user?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export namespace CompletionCreateParams {
|
|
243
|
+
export type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming;
|
|
244
|
+
export type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface CompletionCreateParamsNonStreaming extends CompletionCreateParamsBase {
|
|
248
|
+
/**
|
|
249
|
+
* (Optional) Whether to stream the response
|
|
250
|
+
*/
|
|
251
|
+
stream?: false;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface CompletionCreateParamsStreaming extends CompletionCreateParamsBase {
|
|
255
|
+
/**
|
|
256
|
+
* (Optional) Whether to stream the response
|
|
257
|
+
*/
|
|
258
|
+
stream: true;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export declare namespace Completions {
|
|
262
|
+
export {
|
|
263
|
+
type CompletionCreateResponse as CompletionCreateResponse,
|
|
264
|
+
type CompletionCreateParams as CompletionCreateParams,
|
|
265
|
+
type CompletionCreateParamsNonStreaming as CompletionCreateParamsNonStreaming,
|
|
266
|
+
type CompletionCreateParamsStreaming as CompletionCreateParamsStreaming,
|
|
267
|
+
};
|
|
268
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -18,6 +18,14 @@ export {
|
|
|
18
18
|
type BenchmarkListResponse,
|
|
19
19
|
type BenchmarkRegisterParams,
|
|
20
20
|
} from './benchmarks';
|
|
21
|
+
export { Chat, type ChatCompletionChunk } from './chat/chat';
|
|
22
|
+
export {
|
|
23
|
+
Completions,
|
|
24
|
+
type CompletionCreateResponse,
|
|
25
|
+
type CompletionCreateParams,
|
|
26
|
+
type CompletionCreateParamsNonStreaming,
|
|
27
|
+
type CompletionCreateParamsStreaming,
|
|
28
|
+
} from './completions';
|
|
21
29
|
export {
|
|
22
30
|
Datasets,
|
|
23
31
|
type ListDatasetsResponse,
|
package/src/resources/inspect.ts
CHANGED
|
@@ -14,7 +14,7 @@ export class Inspect extends APIResource {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface HealthInfo {
|
|
17
|
-
status:
|
|
17
|
+
status: 'OK' | 'Error' | 'Not Implemented';
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface ProviderInfo {
|
|
@@ -22,6 +22,8 @@ export interface ProviderInfo {
|
|
|
22
22
|
|
|
23
23
|
config: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
24
24
|
|
|
25
|
+
health: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
26
|
+
|
|
25
27
|
provider_id: string;
|
|
26
28
|
|
|
27
29
|
provider_type: string;
|
|
@@ -101,21 +101,21 @@ export namespace PostTrainingPreferenceOptimizeParams {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export interface TrainingConfig {
|
|
104
|
-
data_config: TrainingConfig.DataConfig;
|
|
105
|
-
|
|
106
104
|
gradient_accumulation_steps: number;
|
|
107
105
|
|
|
108
106
|
max_steps_per_epoch: number;
|
|
109
107
|
|
|
110
|
-
max_validation_steps: number;
|
|
111
|
-
|
|
112
108
|
n_epochs: number;
|
|
113
109
|
|
|
114
|
-
|
|
110
|
+
data_config?: TrainingConfig.DataConfig;
|
|
115
111
|
|
|
116
112
|
dtype?: string;
|
|
117
113
|
|
|
118
114
|
efficiency_config?: TrainingConfig.EfficiencyConfig;
|
|
115
|
+
|
|
116
|
+
max_validation_steps?: number;
|
|
117
|
+
|
|
118
|
+
optimizer_config?: TrainingConfig.OptimizerConfig;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export namespace TrainingConfig {
|
|
@@ -135,16 +135,6 @@ export namespace PostTrainingPreferenceOptimizeParams {
|
|
|
135
135
|
validation_dataset_id?: string;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
export interface OptimizerConfig {
|
|
139
|
-
lr: number;
|
|
140
|
-
|
|
141
|
-
num_warmup_steps: number;
|
|
142
|
-
|
|
143
|
-
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
144
|
-
|
|
145
|
-
weight_decay: number;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
138
|
export interface EfficiencyConfig {
|
|
149
139
|
enable_activation_checkpointing?: boolean;
|
|
150
140
|
|
|
@@ -154,6 +144,16 @@ export namespace PostTrainingPreferenceOptimizeParams {
|
|
|
154
144
|
|
|
155
145
|
memory_efficient_fsdp_wrap?: boolean;
|
|
156
146
|
}
|
|
147
|
+
|
|
148
|
+
export interface OptimizerConfig {
|
|
149
|
+
lr: number;
|
|
150
|
+
|
|
151
|
+
num_warmup_steps: number;
|
|
152
|
+
|
|
153
|
+
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
154
|
+
|
|
155
|
+
weight_decay: number;
|
|
156
|
+
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -164,32 +164,32 @@ export interface PostTrainingSupervisedFineTuneParams {
|
|
|
164
164
|
|
|
165
165
|
logger_config: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
166
166
|
|
|
167
|
-
model: string;
|
|
168
|
-
|
|
169
167
|
training_config: PostTrainingSupervisedFineTuneParams.TrainingConfig;
|
|
170
168
|
|
|
171
169
|
algorithm_config?: AlgorithmConfig;
|
|
172
170
|
|
|
173
171
|
checkpoint_dir?: string;
|
|
172
|
+
|
|
173
|
+
model?: string;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
export namespace PostTrainingSupervisedFineTuneParams {
|
|
177
177
|
export interface TrainingConfig {
|
|
178
|
-
data_config: TrainingConfig.DataConfig;
|
|
179
|
-
|
|
180
178
|
gradient_accumulation_steps: number;
|
|
181
179
|
|
|
182
180
|
max_steps_per_epoch: number;
|
|
183
181
|
|
|
184
|
-
max_validation_steps: number;
|
|
185
|
-
|
|
186
182
|
n_epochs: number;
|
|
187
183
|
|
|
188
|
-
|
|
184
|
+
data_config?: TrainingConfig.DataConfig;
|
|
189
185
|
|
|
190
186
|
dtype?: string;
|
|
191
187
|
|
|
192
188
|
efficiency_config?: TrainingConfig.EfficiencyConfig;
|
|
189
|
+
|
|
190
|
+
max_validation_steps?: number;
|
|
191
|
+
|
|
192
|
+
optimizer_config?: TrainingConfig.OptimizerConfig;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export namespace TrainingConfig {
|
|
@@ -209,16 +209,6 @@ export namespace PostTrainingSupervisedFineTuneParams {
|
|
|
209
209
|
validation_dataset_id?: string;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
export interface OptimizerConfig {
|
|
213
|
-
lr: number;
|
|
214
|
-
|
|
215
|
-
num_warmup_steps: number;
|
|
216
|
-
|
|
217
|
-
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
218
|
-
|
|
219
|
-
weight_decay: number;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
212
|
export interface EfficiencyConfig {
|
|
223
213
|
enable_activation_checkpointing?: boolean;
|
|
224
214
|
|
|
@@ -228,6 +218,16 @@ export namespace PostTrainingSupervisedFineTuneParams {
|
|
|
228
218
|
|
|
229
219
|
memory_efficient_fsdp_wrap?: boolean;
|
|
230
220
|
}
|
|
221
|
+
|
|
222
|
+
export interface OptimizerConfig {
|
|
223
|
+
lr: number;
|
|
224
|
+
|
|
225
|
+
num_warmup_steps: number;
|
|
226
|
+
|
|
227
|
+
optimizer_type: 'adam' | 'adamw' | 'sgd';
|
|
228
|
+
|
|
229
|
+
weight_decay: number;
|
|
230
|
+
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
package/src/resources/shared.ts
CHANGED
|
@@ -4,23 +4,40 @@ import * as Shared from './shared';
|
|
|
4
4
|
import * as InferenceAPI from './inference';
|
|
5
5
|
import * as ToolRuntimeAPI from './tool-runtime/tool-runtime';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Configuration for an agent.
|
|
9
|
+
*/
|
|
7
10
|
export interface AgentConfig {
|
|
11
|
+
/**
|
|
12
|
+
* The system instructions for the agent
|
|
13
|
+
*/
|
|
8
14
|
instructions: string;
|
|
9
15
|
|
|
16
|
+
/**
|
|
17
|
+
* The model identifier to use for the agent
|
|
18
|
+
*/
|
|
10
19
|
model: string;
|
|
11
20
|
|
|
12
21
|
client_tools?: Array<ToolRuntimeAPI.ToolDef>;
|
|
13
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Optional flag indicating whether session data has to be persisted
|
|
25
|
+
*/
|
|
14
26
|
enable_session_persistence?: boolean;
|
|
15
27
|
|
|
16
28
|
input_shields?: Array<string>;
|
|
17
29
|
|
|
18
30
|
max_infer_iters?: number;
|
|
19
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Optional name for the agent, used in telemetry and identification
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
|
|
20
37
|
output_shields?: Array<string>;
|
|
21
38
|
|
|
22
39
|
/**
|
|
23
|
-
*
|
|
40
|
+
* Optional response format configuration
|
|
24
41
|
*/
|
|
25
42
|
response_format?: ResponseFormat;
|
|
26
43
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.3';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
1
|
+
export declare const VERSION = "0.2.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.3';
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|