@arcadeai/arcadejs 0.2.1 → 0.2.2
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 +8 -0
- package/README.md +2 -2
- package/index.d.mts +2 -3
- package/index.d.ts +2 -3
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.ts +0 -12
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +0 -5
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +1 -3
- package/resources/shared.mjs.map +1 -1
- package/resources/tools/formatted.d.ts +2 -2
- package/resources/tools/index.d.ts +2 -1
- package/resources/tools/index.d.ts.map +1 -1
- package/resources/tools/index.js +4 -1
- package/resources/tools/index.js.map +1 -1
- package/resources/tools/index.mjs +2 -1
- package/resources/tools/index.mjs.map +1 -1
- package/resources/tools/scheduled.d.ts +57 -0
- package/resources/tools/scheduled.d.ts.map +1 -0
- package/resources/tools/scheduled.js +21 -0
- package/resources/tools/scheduled.js.map +1 -0
- package/resources/tools/scheduled.mjs +17 -0
- package/resources/tools/scheduled.mjs.map +1 -0
- package/resources/tools/tools.d.ts +225 -49
- package/resources/tools/tools.d.ts.map +1 -1
- package/resources/tools/tools.js +11 -4
- package/resources/tools/tools.js.map +1 -1
- package/resources/tools/tools.mjs +9 -3
- package/resources/tools/tools.mjs.map +1 -1
- package/src/index.ts +13 -15
- package/src/resources/index.ts +6 -7
- package/src/resources/shared.ts +0 -19
- package/src/resources/tools/formatted.ts +2 -2
- package/src/resources/tools/index.ts +7 -7
- package/src/resources/tools/scheduled.ts +92 -0
- package/src/resources/tools/tools.ts +321 -66
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { APIResource } from "../../resource.js";
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as Shared from "../shared.js";
|
|
4
|
-
import { ToolDefinitionsOffsetPage } from "../shared.js";
|
|
5
4
|
import * as FormattedAPI from "./formatted.js";
|
|
6
5
|
import { Formatted, FormattedGetParams, FormattedGetResponse, FormattedListParams, FormattedListResponse, FormattedListResponsesOffsetPage } from "./formatted.js";
|
|
7
|
-
import
|
|
6
|
+
import * as ScheduledAPI from "./scheduled.js";
|
|
7
|
+
import { Scheduled, ScheduledDetailsResponse, ScheduledListResponse } from "./scheduled.js";
|
|
8
|
+
import { OffsetPage, type OffsetPageParams } from "../../pagination.js";
|
|
8
9
|
export declare class Tools extends APIResource {
|
|
10
|
+
scheduled: ScheduledAPI.Scheduled;
|
|
9
11
|
formatted: FormattedAPI.Formatted;
|
|
10
12
|
/**
|
|
11
|
-
* Returns a page of tools, optionally filtered by
|
|
13
|
+
* Returns a page of tools from the engine configuration, optionally filtered by
|
|
14
|
+
* toolkit
|
|
12
15
|
*/
|
|
13
|
-
list(query?: ToolListParams, options?: Core.RequestOptions): Core.PagePromise<
|
|
14
|
-
list(options?: Core.RequestOptions): Core.PagePromise<
|
|
16
|
+
list(query?: ToolListParams, options?: Core.RequestOptions): Core.PagePromise<ToolListResponsesOffsetPage, ToolListResponse>;
|
|
17
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ToolListResponsesOffsetPage, ToolListResponse>;
|
|
15
18
|
/**
|
|
16
19
|
* Authorizes a user for a specific tool by name
|
|
17
20
|
*/
|
|
@@ -19,11 +22,13 @@ export declare class Tools extends APIResource {
|
|
|
19
22
|
/**
|
|
20
23
|
* Executes a tool by name and arguments
|
|
21
24
|
*/
|
|
22
|
-
execute(body: ToolExecuteParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
25
|
+
execute(body: ToolExecuteParams, options?: Core.RequestOptions): Core.APIPromise<ExecuteToolResponse>;
|
|
23
26
|
/**
|
|
24
27
|
* Returns the arcade tool specification for a specific tool
|
|
25
28
|
*/
|
|
26
|
-
get(query: ToolGetParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
29
|
+
get(query: ToolGetParams, options?: Core.RequestOptions): Core.APIPromise<ToolGetResponse>;
|
|
30
|
+
}
|
|
31
|
+
export declare class ToolListResponsesOffsetPage extends OffsetPage<ToolListResponse> {
|
|
27
32
|
}
|
|
28
33
|
export interface AuthorizeToolRequest {
|
|
29
34
|
tool_name: string;
|
|
@@ -40,52 +45,48 @@ export interface ExecuteToolRequest {
|
|
|
40
45
|
*/
|
|
41
46
|
inputs?: unknown;
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
48
|
+
* The time at which the tool should be run (optional). If not provided, the tool
|
|
49
|
+
* is run immediately
|
|
50
|
+
*/
|
|
51
|
+
run_at?: ExecuteToolRequest.RunAt;
|
|
52
|
+
/**
|
|
53
|
+
* The tool version to use (optional). If not provided, any version is used
|
|
44
54
|
*/
|
|
45
55
|
tool_version?: string;
|
|
46
56
|
user_id?: string;
|
|
47
57
|
}
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
export interface Parameter {
|
|
57
|
-
name: string;
|
|
58
|
-
value_schema: ValueSchema;
|
|
59
|
-
description?: string;
|
|
60
|
-
inferrable?: boolean;
|
|
61
|
-
required?: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface Requirements {
|
|
64
|
-
authorization?: Requirements.Authorization;
|
|
65
|
-
}
|
|
66
|
-
export declare namespace Requirements {
|
|
67
|
-
interface Authorization {
|
|
68
|
-
oauth2?: Authorization.Oauth2;
|
|
69
|
-
provider_id?: string;
|
|
70
|
-
provider_type?: string;
|
|
71
|
-
}
|
|
72
|
-
namespace Authorization {
|
|
73
|
-
interface Oauth2 {
|
|
74
|
-
scopes?: Array<string>;
|
|
75
|
-
}
|
|
58
|
+
export declare namespace ExecuteToolRequest {
|
|
59
|
+
/**
|
|
60
|
+
* The time at which the tool should be run (optional). If not provided, the tool
|
|
61
|
+
* is run immediately
|
|
62
|
+
*/
|
|
63
|
+
interface RunAt {
|
|
64
|
+
'time.Time'?: string;
|
|
76
65
|
}
|
|
77
66
|
}
|
|
78
|
-
export interface
|
|
79
|
-
|
|
67
|
+
export interface ExecuteToolResponse {
|
|
68
|
+
id?: string;
|
|
80
69
|
duration?: number;
|
|
81
|
-
|
|
70
|
+
execution_type?: string;
|
|
71
|
+
finished_at?: ExecuteToolResponse.FinishedAt;
|
|
72
|
+
invocation_id?: string;
|
|
82
73
|
output?: ResponseOutput;
|
|
74
|
+
run_at?: ExecuteToolResponse.RunAt;
|
|
75
|
+
status?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the request was successful. For immediately-executed requests, this will
|
|
78
|
+
* be true if the tool call succeeded. For scheduled requests, this will be true if
|
|
79
|
+
* the request was scheduled successfully.
|
|
80
|
+
*/
|
|
83
81
|
success?: boolean;
|
|
84
82
|
}
|
|
85
|
-
export declare namespace
|
|
83
|
+
export declare namespace ExecuteToolResponse {
|
|
86
84
|
interface FinishedAt {
|
|
87
85
|
'time.Time'?: string;
|
|
88
86
|
}
|
|
87
|
+
interface RunAt {
|
|
88
|
+
'time.Time'?: string;
|
|
89
|
+
}
|
|
89
90
|
}
|
|
90
91
|
export interface ResponseOutput {
|
|
91
92
|
error?: ResponseOutput.Error;
|
|
@@ -101,15 +102,176 @@ export declare namespace ResponseOutput {
|
|
|
101
102
|
retry_after_ms?: number;
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
export interface
|
|
105
|
+
export interface ToolExecution {
|
|
106
|
+
id?: string;
|
|
107
|
+
created_at?: ToolExecution.CreatedAt;
|
|
108
|
+
execution_status?: string;
|
|
109
|
+
execution_type?: string;
|
|
110
|
+
finished_at?: ToolExecution.FinishedAt;
|
|
111
|
+
run_at?: ToolExecution.RunAt;
|
|
112
|
+
started_at?: ToolExecution.StartedAt;
|
|
113
|
+
tool_name?: string;
|
|
114
|
+
toolkit_name?: string;
|
|
115
|
+
toolkit_version?: string;
|
|
116
|
+
updated_at?: ToolExecution.UpdatedAt;
|
|
117
|
+
user_id?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace ToolExecution {
|
|
120
|
+
interface CreatedAt {
|
|
121
|
+
'time.Time'?: string;
|
|
122
|
+
}
|
|
123
|
+
interface FinishedAt {
|
|
124
|
+
'time.Time'?: string;
|
|
125
|
+
}
|
|
126
|
+
interface RunAt {
|
|
127
|
+
'time.Time'?: string;
|
|
128
|
+
}
|
|
129
|
+
interface StartedAt {
|
|
130
|
+
'time.Time'?: string;
|
|
131
|
+
}
|
|
132
|
+
interface UpdatedAt {
|
|
133
|
+
'time.Time'?: string;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export interface ToolExecutionAttempt {
|
|
137
|
+
id?: string;
|
|
138
|
+
finished_at?: ToolExecutionAttempt.FinishedAt;
|
|
139
|
+
output?: ResponseOutput;
|
|
140
|
+
started_at?: ToolExecutionAttempt.StartedAt;
|
|
141
|
+
success?: boolean;
|
|
142
|
+
system_error_message?: string;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace ToolExecutionAttempt {
|
|
145
|
+
interface FinishedAt {
|
|
146
|
+
'time.Time'?: string;
|
|
147
|
+
}
|
|
148
|
+
interface StartedAt {
|
|
149
|
+
'time.Time'?: string;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export interface ToolListResponse {
|
|
153
|
+
inputs: ToolListResponse.Inputs;
|
|
105
154
|
name: string;
|
|
155
|
+
toolkit: ToolListResponse.Toolkit;
|
|
106
156
|
description?: string;
|
|
107
|
-
|
|
157
|
+
fully_qualified_name?: string;
|
|
158
|
+
output?: ToolListResponse.Output;
|
|
159
|
+
requirements?: ToolListResponse.Requirements;
|
|
160
|
+
}
|
|
161
|
+
export declare namespace ToolListResponse {
|
|
162
|
+
interface Inputs {
|
|
163
|
+
parameters?: Array<Inputs.Parameter>;
|
|
164
|
+
}
|
|
165
|
+
namespace Inputs {
|
|
166
|
+
interface Parameter {
|
|
167
|
+
name: string;
|
|
168
|
+
value_schema: Parameter.ValueSchema;
|
|
169
|
+
description?: string;
|
|
170
|
+
inferrable?: boolean;
|
|
171
|
+
required?: boolean;
|
|
172
|
+
}
|
|
173
|
+
namespace Parameter {
|
|
174
|
+
interface ValueSchema {
|
|
175
|
+
val_type: string;
|
|
176
|
+
enum?: Array<string>;
|
|
177
|
+
inner_val_type?: string;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
interface Toolkit {
|
|
182
|
+
name: string;
|
|
183
|
+
description?: string;
|
|
184
|
+
version?: string;
|
|
185
|
+
}
|
|
186
|
+
interface Output {
|
|
187
|
+
available_modes?: Array<string>;
|
|
188
|
+
description?: string;
|
|
189
|
+
value_schema?: Output.ValueSchema;
|
|
190
|
+
}
|
|
191
|
+
namespace Output {
|
|
192
|
+
interface ValueSchema {
|
|
193
|
+
val_type: string;
|
|
194
|
+
enum?: Array<string>;
|
|
195
|
+
inner_val_type?: string;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
interface Requirements {
|
|
199
|
+
authorization?: Requirements.Authorization;
|
|
200
|
+
}
|
|
201
|
+
namespace Requirements {
|
|
202
|
+
interface Authorization {
|
|
203
|
+
oauth2?: Authorization.Oauth2;
|
|
204
|
+
provider_id?: string;
|
|
205
|
+
provider_type?: string;
|
|
206
|
+
}
|
|
207
|
+
namespace Authorization {
|
|
208
|
+
interface Oauth2 {
|
|
209
|
+
scopes?: Array<string>;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
108
213
|
}
|
|
109
|
-
export interface
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
214
|
+
export interface ToolGetResponse {
|
|
215
|
+
inputs: ToolGetResponse.Inputs;
|
|
216
|
+
name: string;
|
|
217
|
+
toolkit: ToolGetResponse.Toolkit;
|
|
218
|
+
description?: string;
|
|
219
|
+
fully_qualified_name?: string;
|
|
220
|
+
output?: ToolGetResponse.Output;
|
|
221
|
+
requirements?: ToolGetResponse.Requirements;
|
|
222
|
+
}
|
|
223
|
+
export declare namespace ToolGetResponse {
|
|
224
|
+
interface Inputs {
|
|
225
|
+
parameters?: Array<Inputs.Parameter>;
|
|
226
|
+
}
|
|
227
|
+
namespace Inputs {
|
|
228
|
+
interface Parameter {
|
|
229
|
+
name: string;
|
|
230
|
+
value_schema: Parameter.ValueSchema;
|
|
231
|
+
description?: string;
|
|
232
|
+
inferrable?: boolean;
|
|
233
|
+
required?: boolean;
|
|
234
|
+
}
|
|
235
|
+
namespace Parameter {
|
|
236
|
+
interface ValueSchema {
|
|
237
|
+
val_type: string;
|
|
238
|
+
enum?: Array<string>;
|
|
239
|
+
inner_val_type?: string;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
interface Toolkit {
|
|
244
|
+
name: string;
|
|
245
|
+
description?: string;
|
|
246
|
+
version?: string;
|
|
247
|
+
}
|
|
248
|
+
interface Output {
|
|
249
|
+
available_modes?: Array<string>;
|
|
250
|
+
description?: string;
|
|
251
|
+
value_schema?: Output.ValueSchema;
|
|
252
|
+
}
|
|
253
|
+
namespace Output {
|
|
254
|
+
interface ValueSchema {
|
|
255
|
+
val_type: string;
|
|
256
|
+
enum?: Array<string>;
|
|
257
|
+
inner_val_type?: string;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
interface Requirements {
|
|
261
|
+
authorization?: Requirements.Authorization;
|
|
262
|
+
}
|
|
263
|
+
namespace Requirements {
|
|
264
|
+
interface Authorization {
|
|
265
|
+
oauth2?: Authorization.Oauth2;
|
|
266
|
+
provider_id?: string;
|
|
267
|
+
provider_type?: string;
|
|
268
|
+
}
|
|
269
|
+
namespace Authorization {
|
|
270
|
+
interface Oauth2 {
|
|
271
|
+
scopes?: Array<string>;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
113
275
|
}
|
|
114
276
|
export interface ToolListParams extends OffsetPageParams {
|
|
115
277
|
/**
|
|
@@ -132,11 +294,25 @@ export interface ToolExecuteParams {
|
|
|
132
294
|
*/
|
|
133
295
|
inputs?: unknown;
|
|
134
296
|
/**
|
|
135
|
-
*
|
|
297
|
+
* The time at which the tool should be run (optional). If not provided, the tool
|
|
298
|
+
* is run immediately
|
|
299
|
+
*/
|
|
300
|
+
run_at?: ToolExecuteParams.RunAt;
|
|
301
|
+
/**
|
|
302
|
+
* The tool version to use (optional). If not provided, any version is used
|
|
136
303
|
*/
|
|
137
304
|
tool_version?: string;
|
|
138
305
|
user_id?: string;
|
|
139
306
|
}
|
|
307
|
+
export declare namespace ToolExecuteParams {
|
|
308
|
+
/**
|
|
309
|
+
* The time at which the tool should be run (optional). If not provided, the tool
|
|
310
|
+
* is run immediately
|
|
311
|
+
*/
|
|
312
|
+
interface RunAt {
|
|
313
|
+
'time.Time'?: string;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
140
316
|
export interface ToolGetParams {
|
|
141
317
|
/**
|
|
142
318
|
* Tool ID
|
|
@@ -144,8 +320,8 @@ export interface ToolGetParams {
|
|
|
144
320
|
toolId: string;
|
|
145
321
|
}
|
|
146
322
|
export declare namespace Tools {
|
|
147
|
-
export { type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type
|
|
323
|
+
export { type AuthorizeToolRequest as AuthorizeToolRequest, type ExecuteToolRequest as ExecuteToolRequest, type ExecuteToolResponse as ExecuteToolResponse, type ResponseOutput as ResponseOutput, type ToolExecution as ToolExecution, type ToolExecutionAttempt as ToolExecutionAttempt, type ToolListResponse as ToolListResponse, type ToolGetResponse as ToolGetResponse, ToolListResponsesOffsetPage as ToolListResponsesOffsetPage, type ToolListParams as ToolListParams, type ToolAuthorizeParams as ToolAuthorizeParams, type ToolExecuteParams as ToolExecuteParams, type ToolGetParams as ToolGetParams, };
|
|
324
|
+
export { Scheduled as Scheduled, type ScheduledListResponse as ScheduledListResponse, type ScheduledDetailsResponse as ScheduledDetailsResponse, };
|
|
148
325
|
export { Formatted as Formatted, type FormattedListResponse as FormattedListResponse, type FormattedGetResponse as FormattedGetResponse, FormattedListResponsesOffsetPage as FormattedListResponsesOffsetPage, type FormattedListParams as FormattedListParams, type FormattedGetParams as FormattedGetParams, };
|
|
149
326
|
}
|
|
150
|
-
export { ToolDefinitionsOffsetPage };
|
|
151
327
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,YAAY,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;A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 var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
return result;
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.
|
|
27
|
+
exports.ToolListResponsesOffsetPage = exports.Tools = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const core_1 = require("../../core.js");
|
|
30
|
-
const shared_1 = require("../shared.js");
|
|
31
|
-
Object.defineProperty(exports, "ToolDefinitionsOffsetPage", { enumerable: true, get: function () { return shared_1.ToolDefinitionsOffsetPage; } });
|
|
32
30
|
const FormattedAPI = __importStar(require("./formatted.js"));
|
|
33
31
|
const formatted_1 = require("./formatted.js");
|
|
32
|
+
const ScheduledAPI = __importStar(require("./scheduled.js"));
|
|
33
|
+
const scheduled_1 = require("./scheduled.js");
|
|
34
|
+
const pagination_1 = require("../../pagination.js");
|
|
34
35
|
class Tools extends resource_1.APIResource {
|
|
35
36
|
constructor() {
|
|
36
37
|
super(...arguments);
|
|
38
|
+
this.scheduled = new ScheduledAPI.Scheduled(this._client);
|
|
37
39
|
this.formatted = new FormattedAPI.Formatted(this._client);
|
|
38
40
|
}
|
|
39
41
|
list(query = {}, options) {
|
|
40
42
|
if ((0, core_1.isRequestOptions)(query)) {
|
|
41
43
|
return this.list({}, query);
|
|
42
44
|
}
|
|
43
|
-
return this._client.getAPIList('/v1/tools/list',
|
|
45
|
+
return this._client.getAPIList('/v1/tools/list', ToolListResponsesOffsetPage, { query, ...options });
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Authorizes a user for a specific tool by name
|
|
@@ -62,6 +64,11 @@ class Tools extends resource_1.APIResource {
|
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
exports.Tools = Tools;
|
|
67
|
+
class ToolListResponsesOffsetPage extends pagination_1.OffsetPage {
|
|
68
|
+
}
|
|
69
|
+
exports.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
70
|
+
Tools.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
71
|
+
Tools.Scheduled = scheduled_1.Scheduled;
|
|
65
72
|
Tools.Formatted = formatted_1.Formatted;
|
|
66
73
|
Tools.FormattedListResponsesOffsetPage = formatted_1.FormattedListResponsesOffsetPage;
|
|
67
74
|
//# sourceMappingURL=tools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,6DAA4C;AAC5C,8CAOqB;AACrB,6DAA4C;AAC5C,8CAAyF;AACzF,oDAAqE;AAErE,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4C/E,CAAC;IAjCC,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,SAAS,CACP,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,IAAuB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,KAAoB,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA9CD,sBA8CC;AAED,MAAa,2BAA4B,SAAQ,uBAA4B;CAAG;AAAhF,kEAAgF;AA+ZhF,KAAK,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;AAChE,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC5B,KAAK,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC5B,KAAK,CAAC,gCAAgC,GAAG,4CAAgC,CAAC"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import { isRequestOptions } from "../../core.mjs";
|
|
4
|
-
import { ToolDefinitionsOffsetPage } from "../shared.mjs";
|
|
5
4
|
import * as FormattedAPI from "./formatted.mjs";
|
|
6
5
|
import { Formatted, FormattedListResponsesOffsetPage, } from "./formatted.mjs";
|
|
6
|
+
import * as ScheduledAPI from "./scheduled.mjs";
|
|
7
|
+
import { Scheduled } from "./scheduled.mjs";
|
|
8
|
+
import { OffsetPage } from "../../pagination.mjs";
|
|
7
9
|
export class Tools extends APIResource {
|
|
8
10
|
constructor() {
|
|
9
11
|
super(...arguments);
|
|
12
|
+
this.scheduled = new ScheduledAPI.Scheduled(this._client);
|
|
10
13
|
this.formatted = new FormattedAPI.Formatted(this._client);
|
|
11
14
|
}
|
|
12
15
|
list(query = {}, options) {
|
|
13
16
|
if (isRequestOptions(query)) {
|
|
14
17
|
return this.list({}, query);
|
|
15
18
|
}
|
|
16
|
-
return this._client.getAPIList('/v1/tools/list',
|
|
19
|
+
return this._client.getAPIList('/v1/tools/list', ToolListResponsesOffsetPage, { query, ...options });
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* Authorizes a user for a specific tool by name
|
|
@@ -34,7 +37,10 @@ export class Tools extends APIResource {
|
|
|
34
37
|
return this._client.get('/v1/tools/definition', { query, ...options });
|
|
35
38
|
}
|
|
36
39
|
}
|
|
40
|
+
export class ToolListResponsesOffsetPage extends OffsetPage {
|
|
41
|
+
}
|
|
42
|
+
Tools.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
43
|
+
Tools.Scheduled = Scheduled;
|
|
37
44
|
Tools.Formatted = Formatted;
|
|
38
45
|
Tools.FormattedListResponsesOffsetPage = FormattedListResponsesOffsetPage;
|
|
39
|
-
export { ToolDefinitionsOffsetPage };
|
|
40
46
|
//# sourceMappingURL=tools.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,
|
|
1
|
+
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../../src/resources/tools/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,YAAY;OACjB,EACL,SAAS,EAKT,gCAAgC,GACjC;OACM,KAAK,YAAY;OACjB,EAAE,SAAS,EAAmD;OAC9D,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,cAAS,GAA2B,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
@@ -13,19 +13,18 @@ import { Chat, ChatMessage, ChatRequest, ChatResponse, Choice, Usage } from './r
|
|
|
13
13
|
import {
|
|
14
14
|
AuthorizeToolRequest,
|
|
15
15
|
ExecuteToolRequest,
|
|
16
|
-
|
|
17
|
-
Output,
|
|
18
|
-
Parameter,
|
|
19
|
-
Requirements,
|
|
20
|
-
Response,
|
|
16
|
+
ExecuteToolResponse,
|
|
21
17
|
ResponseOutput,
|
|
22
18
|
ToolAuthorizeParams,
|
|
23
19
|
ToolExecuteParams,
|
|
20
|
+
ToolExecution,
|
|
21
|
+
ToolExecutionAttempt,
|
|
24
22
|
ToolGetParams,
|
|
23
|
+
ToolGetResponse,
|
|
25
24
|
ToolListParams,
|
|
26
|
-
|
|
25
|
+
ToolListResponse,
|
|
26
|
+
ToolListResponsesOffsetPage,
|
|
27
27
|
Tools,
|
|
28
|
-
ValueSchema,
|
|
29
28
|
} from './resources/tools/tools';
|
|
30
29
|
|
|
31
30
|
export interface ClientOptions {
|
|
@@ -187,6 +186,7 @@ Arcade.Auth = Auth;
|
|
|
187
186
|
Arcade.Health = Health;
|
|
188
187
|
Arcade.Chat = Chat;
|
|
189
188
|
Arcade.Tools = Tools;
|
|
189
|
+
Arcade.ToolListResponsesOffsetPage = ToolListResponsesOffsetPage;
|
|
190
190
|
export declare namespace Arcade {
|
|
191
191
|
export type RequestOptions = Core.RequestOptions;
|
|
192
192
|
|
|
@@ -215,14 +215,13 @@ export declare namespace Arcade {
|
|
|
215
215
|
Tools as Tools,
|
|
216
216
|
type AuthorizeToolRequest as AuthorizeToolRequest,
|
|
217
217
|
type ExecuteToolRequest as ExecuteToolRequest,
|
|
218
|
-
type
|
|
219
|
-
type Output as Output,
|
|
220
|
-
type Parameter as Parameter,
|
|
221
|
-
type Requirements as Requirements,
|
|
222
|
-
type Response as Response,
|
|
218
|
+
type ExecuteToolResponse as ExecuteToolResponse,
|
|
223
219
|
type ResponseOutput as ResponseOutput,
|
|
224
|
-
type
|
|
225
|
-
type
|
|
220
|
+
type ToolExecution as ToolExecution,
|
|
221
|
+
type ToolExecutionAttempt as ToolExecutionAttempt,
|
|
222
|
+
type ToolListResponse as ToolListResponse,
|
|
223
|
+
type ToolGetResponse as ToolGetResponse,
|
|
224
|
+
ToolListResponsesOffsetPage as ToolListResponsesOffsetPage,
|
|
226
225
|
type ToolListParams as ToolListParams,
|
|
227
226
|
type ToolAuthorizeParams as ToolAuthorizeParams,
|
|
228
227
|
type ToolExecuteParams as ToolExecuteParams,
|
|
@@ -231,7 +230,6 @@ export declare namespace Arcade {
|
|
|
231
230
|
|
|
232
231
|
export type AuthorizationResponse = API.AuthorizationResponse;
|
|
233
232
|
export type Error = API.Error;
|
|
234
|
-
export type ToolDefinition = API.ToolDefinition;
|
|
235
233
|
}
|
|
236
234
|
|
|
237
235
|
export { toFile, fileFromPath } from './uploads';
|
package/src/resources/index.ts
CHANGED
|
@@ -12,17 +12,16 @@ export {
|
|
|
12
12
|
} from './chat/chat';
|
|
13
13
|
export { Health, type HealthSchema } from './health';
|
|
14
14
|
export {
|
|
15
|
+
ToolListResponsesOffsetPage,
|
|
15
16
|
Tools,
|
|
16
17
|
type AuthorizeToolRequest,
|
|
17
18
|
type ExecuteToolRequest,
|
|
18
|
-
type
|
|
19
|
-
type Output,
|
|
20
|
-
type Parameter,
|
|
21
|
-
type Requirements,
|
|
22
|
-
type Response,
|
|
19
|
+
type ExecuteToolResponse,
|
|
23
20
|
type ResponseOutput,
|
|
24
|
-
type
|
|
25
|
-
type
|
|
21
|
+
type ToolExecution,
|
|
22
|
+
type ToolExecutionAttempt,
|
|
23
|
+
type ToolListResponse,
|
|
24
|
+
type ToolGetResponse,
|
|
26
25
|
type ToolListParams,
|
|
27
26
|
type ToolAuthorizeParams,
|
|
28
27
|
type ToolExecuteParams,
|
package/src/resources/shared.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as ToolsAPI from './tools/tools';
|
|
4
|
-
import { OffsetPage } from '../pagination';
|
|
5
|
-
|
|
6
3
|
export interface AuthorizationResponse {
|
|
7
4
|
authorization_id?: string;
|
|
8
5
|
|
|
@@ -32,19 +29,3 @@ export interface Error {
|
|
|
32
29
|
|
|
33
30
|
name?: string;
|
|
34
31
|
}
|
|
35
|
-
|
|
36
|
-
export interface ToolDefinition {
|
|
37
|
-
inputs: ToolsAPI.Inputs;
|
|
38
|
-
|
|
39
|
-
name: string;
|
|
40
|
-
|
|
41
|
-
toolkit: ToolsAPI.ToolkitDefinition;
|
|
42
|
-
|
|
43
|
-
description?: string;
|
|
44
|
-
|
|
45
|
-
output?: ToolsAPI.Output;
|
|
46
|
-
|
|
47
|
-
requirements?: ToolsAPI.Requirements;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export class ToolDefinitionsOffsetPage extends OffsetPage<ToolDefinition> {}
|
|
@@ -7,8 +7,8 @@ import { OffsetPage, type OffsetPageParams } from '../../pagination';
|
|
|
7
7
|
|
|
8
8
|
export class Formatted extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Returns a page of tools
|
|
11
|
-
* specific provider
|
|
10
|
+
* Returns a page of tools from the engine configuration, optionally filtered by
|
|
11
|
+
* toolkit, formatted for a specific provider
|
|
12
12
|
*/
|
|
13
13
|
list(
|
|
14
14
|
query?: FormattedListParams,
|
|
@@ -8,18 +8,18 @@ export {
|
|
|
8
8
|
type FormattedListParams,
|
|
9
9
|
type FormattedGetParams,
|
|
10
10
|
} from './formatted';
|
|
11
|
+
export { Scheduled, type ScheduledListResponse, type ScheduledDetailsResponse } from './scheduled';
|
|
11
12
|
export {
|
|
13
|
+
ToolListResponsesOffsetPage,
|
|
12
14
|
Tools,
|
|
13
15
|
type AuthorizeToolRequest,
|
|
14
16
|
type ExecuteToolRequest,
|
|
15
|
-
type
|
|
16
|
-
type Output,
|
|
17
|
-
type Parameter,
|
|
18
|
-
type Requirements,
|
|
19
|
-
type Response,
|
|
17
|
+
type ExecuteToolResponse,
|
|
20
18
|
type ResponseOutput,
|
|
21
|
-
type
|
|
22
|
-
type
|
|
19
|
+
type ToolExecution,
|
|
20
|
+
type ToolExecutionAttempt,
|
|
21
|
+
type ToolListResponse,
|
|
22
|
+
type ToolGetResponse,
|
|
23
23
|
type ToolListParams,
|
|
24
24
|
type ToolAuthorizeParams,
|
|
25
25
|
type ToolExecuteParams,
|