@nimble-way/nimble-js 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +9 -26
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +9 -26
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +4 -21
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +4 -21
- package/resources/agent.mjs.map +1 -1
- package/resources/jobs/jobs.d.mts +18 -6
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +18 -6
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js +12 -0
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs +12 -0
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +11 -13
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +11 -13
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/artifacts.js +8 -0
- package/resources/jobs/runs/artifacts.js.map +1 -1
- package/resources/jobs/runs/artifacts.mjs +8 -0
- package/resources/jobs/runs/artifacts.mjs.map +1 -1
- package/resources/jobs/runs/runs.d.mts +12 -6
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +12 -6
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js +6 -0
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs +6 -0
- package/resources/jobs/runs/runs.mjs.map +1 -1
- package/resources/task-agent/index.d.mts +1 -1
- package/resources/task-agent/index.d.mts.map +1 -1
- package/resources/task-agent/index.d.ts +1 -1
- package/resources/task-agent/index.d.ts.map +1 -1
- package/resources/task-agent/index.js.map +1 -1
- package/resources/task-agent/index.mjs.map +1 -1
- package/resources/task-agent/runs.d.mts +246 -110
- package/resources/task-agent/runs.d.mts.map +1 -1
- package/resources/task-agent/runs.d.ts +246 -110
- package/resources/task-agent/runs.d.ts.map +1 -1
- package/resources/task-agent/runs.js +12 -14
- package/resources/task-agent/runs.js.map +1 -1
- package/resources/task-agent/runs.mjs +12 -14
- package/resources/task-agent/runs.mjs.map +1 -1
- package/resources/task-agent/task-agent.d.mts +557 -65
- package/resources/task-agent/task-agent.d.mts.map +1 -1
- package/resources/task-agent/task-agent.d.ts +557 -65
- package/resources/task-agent/task-agent.d.ts.map +1 -1
- package/resources/task-agent/task-agent.js +12 -0
- package/resources/task-agent/task-agent.js.map +1 -1
- package/resources/task-agent/task-agent.mjs +12 -0
- package/resources/task-agent/task-agent.mjs.map +1 -1
- package/resources/task-agent/templates.d.mts +167 -13
- package/resources/task-agent/templates.d.mts.map +1 -1
- package/resources/task-agent/templates.d.ts +167 -13
- package/resources/task-agent/templates.d.ts.map +1 -1
- package/resources/task-agent/templates.js +4 -0
- package/resources/task-agent/templates.js.map +1 -1
- package/resources/task-agent/templates.mjs +4 -0
- package/resources/task-agent/templates.mjs.map +1 -1
- package/resources/top-level.d.mts +0 -6
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +0 -6
- package/resources/top-level.d.ts.map +1 -1
- package/src/resources/agent.ts +10 -27
- package/src/resources/jobs/jobs.ts +18 -6
- package/src/resources/jobs/runs/artifacts.ts +11 -13
- package/src/resources/jobs/runs/runs.ts +12 -6
- package/src/resources/task-agent/index.ts +0 -2
- package/src/resources/task-agent/runs.ts +251 -129
- package/src/resources/task-agent/task-agent.ts +559 -79
- package/src/resources/task-agent/templates.ts +170 -15
- package/src/resources/top-level.ts +0 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -8,6 +8,8 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
export class Templates extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* List Templates
|
|
11
|
+
*
|
|
12
|
+
* @deprecated
|
|
11
13
|
*/
|
|
12
14
|
list(
|
|
13
15
|
query: TemplateListParams | null | undefined = {},
|
|
@@ -18,146 +20,299 @@ export class Templates extends APIResource {
|
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
22
|
* Get Template
|
|
23
|
+
*
|
|
24
|
+
* @deprecated
|
|
21
25
|
*/
|
|
22
26
|
get(templateName: string, options?: RequestOptions): APIPromise<TemplateGetResponse> {
|
|
23
27
|
return this._client.get(path`/v1/task-agents/templates/${templateName}`, options);
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
|
|
27
|
-
export
|
|
31
|
+
export interface TemplateListResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Items returned in this page.
|
|
34
|
+
*/
|
|
35
|
+
items: Array<TemplateListResponse.Item>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Maximum number of items returned.
|
|
39
|
+
*/
|
|
40
|
+
limit: number;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Number of items skipped before this page.
|
|
44
|
+
*/
|
|
45
|
+
offset: number;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Total number of items matching the query.
|
|
49
|
+
*/
|
|
50
|
+
total: number;
|
|
51
|
+
}
|
|
28
52
|
|
|
29
53
|
export namespace TemplateListResponse {
|
|
30
|
-
export interface
|
|
54
|
+
export interface Item {
|
|
55
|
+
/**
|
|
56
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
57
|
+
*/
|
|
31
58
|
id: string;
|
|
32
59
|
|
|
60
|
+
/**
|
|
61
|
+
* When the template was created.
|
|
62
|
+
*/
|
|
33
63
|
created_at: string;
|
|
34
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Template description shown to users.
|
|
67
|
+
*/
|
|
35
68
|
description: string;
|
|
36
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Human-friendly template name shown to users.
|
|
72
|
+
*/
|
|
37
73
|
display_name: string;
|
|
38
74
|
|
|
75
|
+
/**
|
|
76
|
+
* Domain expertise or operating context for the template.
|
|
77
|
+
*/
|
|
39
78
|
domain_expertise: string;
|
|
40
79
|
|
|
41
80
|
/**
|
|
42
|
-
*
|
|
81
|
+
* Default effort level for runs created from this template.
|
|
43
82
|
*/
|
|
44
83
|
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
45
84
|
|
|
46
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Ordered goals for the template.
|
|
87
|
+
*/
|
|
88
|
+
goals: Array<Item.Goal>;
|
|
47
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Icon identifier used when presenting the template.
|
|
92
|
+
*/
|
|
48
93
|
icon: string;
|
|
49
94
|
|
|
95
|
+
/**
|
|
96
|
+
* JSON schema describing the structured output the agent should produce.
|
|
97
|
+
*/
|
|
50
98
|
output_schema: { [key: string]: unknown } | null;
|
|
51
99
|
|
|
52
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Ordered source groups for the template.
|
|
102
|
+
*/
|
|
103
|
+
sources: Array<Item.Source>;
|
|
53
104
|
|
|
54
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Suggested prompts for the template.
|
|
107
|
+
*/
|
|
108
|
+
suggested_questions: Array<Item.SuggestedQuestion>;
|
|
55
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Stable template name used to create agent instances.
|
|
112
|
+
*/
|
|
56
113
|
template_name: string;
|
|
57
114
|
|
|
115
|
+
/**
|
|
116
|
+
* When the template was last updated.
|
|
117
|
+
*/
|
|
58
118
|
updated_at: string;
|
|
59
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Primary use case supported by the template.
|
|
122
|
+
*/
|
|
60
123
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
61
124
|
}
|
|
62
125
|
|
|
63
|
-
export namespace
|
|
126
|
+
export namespace Item {
|
|
64
127
|
export interface Goal {
|
|
128
|
+
/**
|
|
129
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
130
|
+
*/
|
|
65
131
|
id: string;
|
|
66
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Goal text.
|
|
135
|
+
*/
|
|
67
136
|
goal: string;
|
|
68
137
|
|
|
138
|
+
/**
|
|
139
|
+
* Zero-based goal position.
|
|
140
|
+
*/
|
|
69
141
|
order: number;
|
|
70
142
|
}
|
|
71
143
|
|
|
72
144
|
export interface Source {
|
|
145
|
+
/**
|
|
146
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
147
|
+
*/
|
|
73
148
|
id: string;
|
|
74
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Domains included in this source group.
|
|
152
|
+
*/
|
|
75
153
|
domains: Array<string>;
|
|
76
154
|
|
|
155
|
+
/**
|
|
156
|
+
* Zero-based source group position.
|
|
157
|
+
*/
|
|
77
158
|
order: number;
|
|
78
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Source group title.
|
|
162
|
+
*/
|
|
79
163
|
title: string;
|
|
80
164
|
}
|
|
81
165
|
|
|
82
166
|
export interface SuggestedQuestion {
|
|
167
|
+
/**
|
|
168
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
169
|
+
*/
|
|
83
170
|
id: string;
|
|
84
171
|
|
|
172
|
+
/**
|
|
173
|
+
* Zero-based suggested question position.
|
|
174
|
+
*/
|
|
85
175
|
order: number;
|
|
86
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Suggested prompt text.
|
|
179
|
+
*/
|
|
87
180
|
question: string;
|
|
88
181
|
}
|
|
89
182
|
}
|
|
90
183
|
}
|
|
91
184
|
|
|
92
185
|
export interface TemplateGetResponse {
|
|
186
|
+
/**
|
|
187
|
+
* Unique template identifier (wsat\_<uuid>).
|
|
188
|
+
*/
|
|
93
189
|
id: string;
|
|
94
190
|
|
|
191
|
+
/**
|
|
192
|
+
* When the template was created.
|
|
193
|
+
*/
|
|
95
194
|
created_at: string;
|
|
96
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Template description shown to users.
|
|
198
|
+
*/
|
|
97
199
|
description: string;
|
|
98
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Human-friendly template name shown to users.
|
|
203
|
+
*/
|
|
99
204
|
display_name: string;
|
|
100
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Domain expertise or operating context for the template.
|
|
208
|
+
*/
|
|
101
209
|
domain_expertise: string;
|
|
102
210
|
|
|
103
211
|
/**
|
|
104
|
-
*
|
|
212
|
+
* Default effort level for runs created from this template.
|
|
105
213
|
*/
|
|
106
214
|
effort: 'low' | 'medium' | 'high' | 'x-high' | 'max';
|
|
107
215
|
|
|
216
|
+
/**
|
|
217
|
+
* Ordered goals for the template.
|
|
218
|
+
*/
|
|
108
219
|
goals: Array<TemplateGetResponse.Goal>;
|
|
109
220
|
|
|
221
|
+
/**
|
|
222
|
+
* Icon identifier used when presenting the template.
|
|
223
|
+
*/
|
|
110
224
|
icon: string;
|
|
111
225
|
|
|
226
|
+
/**
|
|
227
|
+
* JSON schema describing the structured output the agent should produce.
|
|
228
|
+
*/
|
|
112
229
|
output_schema: { [key: string]: unknown } | null;
|
|
113
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Ordered source groups for the template.
|
|
233
|
+
*/
|
|
114
234
|
sources: Array<TemplateGetResponse.Source>;
|
|
115
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Suggested prompts for the template.
|
|
238
|
+
*/
|
|
116
239
|
suggested_questions: Array<TemplateGetResponse.SuggestedQuestion>;
|
|
117
240
|
|
|
241
|
+
/**
|
|
242
|
+
* Stable template name used to create agent instances.
|
|
243
|
+
*/
|
|
118
244
|
template_name: string;
|
|
119
245
|
|
|
246
|
+
/**
|
|
247
|
+
* When the template was last updated.
|
|
248
|
+
*/
|
|
120
249
|
updated_at: string;
|
|
121
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Primary use case supported by the template.
|
|
253
|
+
*/
|
|
122
254
|
use_case: 'research' | 'enrichment' | 'dataset_building';
|
|
123
255
|
}
|
|
124
256
|
|
|
125
257
|
export namespace TemplateGetResponse {
|
|
126
258
|
export interface Goal {
|
|
259
|
+
/**
|
|
260
|
+
* Unique goal identifier (wsag\_<uuid>).
|
|
261
|
+
*/
|
|
127
262
|
id: string;
|
|
128
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Goal text.
|
|
266
|
+
*/
|
|
129
267
|
goal: string;
|
|
130
268
|
|
|
269
|
+
/**
|
|
270
|
+
* Zero-based goal position.
|
|
271
|
+
*/
|
|
131
272
|
order: number;
|
|
132
273
|
}
|
|
133
274
|
|
|
134
275
|
export interface Source {
|
|
276
|
+
/**
|
|
277
|
+
* Unique source group identifier (wsas\_<uuid>).
|
|
278
|
+
*/
|
|
135
279
|
id: string;
|
|
136
280
|
|
|
281
|
+
/**
|
|
282
|
+
* Domains included in this source group.
|
|
283
|
+
*/
|
|
137
284
|
domains: Array<string>;
|
|
138
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Zero-based source group position.
|
|
288
|
+
*/
|
|
139
289
|
order: number;
|
|
140
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Source group title.
|
|
293
|
+
*/
|
|
141
294
|
title: string;
|
|
142
295
|
}
|
|
143
296
|
|
|
144
297
|
export interface SuggestedQuestion {
|
|
298
|
+
/**
|
|
299
|
+
* Unique suggested question identifier (wsasq\_<uuid>).
|
|
300
|
+
*/
|
|
145
301
|
id: string;
|
|
146
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Zero-based suggested question position.
|
|
305
|
+
*/
|
|
147
306
|
order: number;
|
|
148
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Suggested prompt text.
|
|
310
|
+
*/
|
|
149
311
|
question: string;
|
|
150
312
|
}
|
|
151
313
|
}
|
|
152
314
|
|
|
153
315
|
export interface TemplateListParams {
|
|
154
|
-
/**
|
|
155
|
-
* Canonical effort tier names for the research graph.
|
|
156
|
-
*/
|
|
157
|
-
filter_effort?: 'low' | 'medium' | 'high' | 'x-high' | 'max' | null;
|
|
158
|
-
|
|
159
|
-
filter_use_case?: 'research' | 'enrichment' | 'dataset_building' | null;
|
|
160
|
-
|
|
161
316
|
limit?: number;
|
|
162
317
|
|
|
163
318
|
offset?: number;
|
|
@@ -6057,11 +6057,6 @@ export interface SearchParams {
|
|
|
6057
6057
|
*/
|
|
6058
6058
|
country?: string;
|
|
6059
6059
|
|
|
6060
|
-
/**
|
|
6061
|
-
* Internal-only. Gated to allowlisted accounts; ignored otherwise.
|
|
6062
|
-
*/
|
|
6063
|
-
debug_params?: { [key: string]: unknown } | null;
|
|
6064
|
-
|
|
6065
6060
|
/**
|
|
6066
6061
|
* Deprecated. Use search_depth instead. true maps to 'deep', false maps to 'lite'.
|
|
6067
6062
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.20.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|