llama-stack-client 0.6.1 → 0.7.1
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/.github/workflows/ci.yml +16 -10
- package/.gitignore +1 -0
- package/.release-please-manifest.json +1 -1
- package/.stats.yml +4 -4
- package/CHANGELOG.md +80 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +22 -0
- package/api.md +1 -71
- package/dist/CHANGELOG.md +80 -0
- package/dist/README.md +22 -0
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +8 -17
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +8 -17
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +51 -12
- package/dist/index.d.ts +51 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/utils/query.d.ts +2 -0
- package/dist/internal/utils/query.d.ts.map +1 -0
- package/dist/{resources/alpha/post-training/post-training.js → internal/utils/query.js} +6 -24
- package/dist/internal/utils/query.js.map +1 -0
- package/dist/{resources/alpha/post-training.mjs → internal/utils/query.mjs} +5 -2
- package/dist/internal/utils/query.mjs.map +1 -0
- package/dist/package.json +1 -1
- package/dist/resources/alpha/alpha.d.ts +0 -4
- package/dist/resources/alpha/alpha.d.ts.map +1 -1
- package/dist/resources/alpha/alpha.js +0 -4
- package/dist/resources/alpha/alpha.js.map +1 -1
- package/dist/resources/alpha/alpha.mjs +0 -4
- package/dist/resources/alpha/alpha.mjs.map +1 -1
- package/dist/resources/alpha/eval/eval.d.ts +3 -0
- package/dist/resources/alpha/eval/eval.d.ts.map +1 -1
- package/dist/resources/alpha/eval/eval.js +3 -0
- package/dist/resources/alpha/eval/eval.js.map +1 -1
- package/dist/resources/alpha/eval/eval.mjs +3 -0
- package/dist/resources/alpha/eval/eval.mjs.map +1 -1
- package/dist/resources/alpha/eval/jobs.d.ts +3 -0
- package/dist/resources/alpha/eval/jobs.d.ts.map +1 -1
- package/dist/resources/alpha/eval/jobs.js +3 -0
- package/dist/resources/alpha/eval/jobs.js.map +1 -1
- package/dist/resources/alpha/eval/jobs.mjs +3 -0
- package/dist/resources/alpha/eval/jobs.mjs.map +1 -1
- package/dist/resources/alpha/index.d.ts +0 -1
- package/dist/resources/alpha/index.d.ts.map +1 -1
- package/dist/resources/alpha/index.js +1 -3
- package/dist/resources/alpha/index.js.map +1 -1
- package/dist/resources/alpha/index.mjs +0 -1
- package/dist/resources/alpha/index.mjs.map +1 -1
- package/dist/resources/alpha/inference.d.ts +8 -0
- package/dist/resources/alpha/inference.d.ts.map +1 -1
- package/dist/resources/alpha/inference.js +8 -0
- package/dist/resources/alpha/inference.js.map +1 -1
- package/dist/resources/alpha/inference.mjs +8 -0
- package/dist/resources/alpha/inference.mjs.map +1 -1
- package/dist/resources/batches.d.ts +8 -0
- package/dist/resources/batches.d.ts.map +1 -1
- package/dist/resources/batches.js +8 -0
- package/dist/resources/batches.js.map +1 -1
- package/dist/resources/batches.mjs +8 -0
- package/dist/resources/batches.mjs.map +1 -1
- package/dist/resources/beta/datasets.d.ts +4 -8
- package/dist/resources/beta/datasets.d.ts.map +1 -1
- package/dist/resources/chat/chat.d.ts +34 -32
- package/dist/resources/chat/chat.d.ts.map +1 -1
- package/dist/resources/chat/chat.js.map +1 -1
- package/dist/resources/chat/chat.mjs.map +1 -1
- package/dist/resources/chat/completions.d.ts +321 -713
- package/dist/resources/chat/completions.d.ts.map +1 -1
- package/dist/resources/chat/completions.js +8 -0
- package/dist/resources/chat/completions.js.map +1 -1
- package/dist/resources/chat/completions.mjs +8 -0
- package/dist/resources/chat/completions.mjs.map +1 -1
- package/dist/resources/completions.d.ts +10 -4
- package/dist/resources/completions.d.ts.map +1 -1
- package/dist/resources/completions.js +8 -0
- package/dist/resources/completions.js.map +1 -1
- package/dist/resources/completions.mjs +8 -0
- package/dist/resources/completions.mjs.map +1 -1
- package/dist/resources/conversations/conversations.d.ts +95 -2
- package/dist/resources/conversations/conversations.d.ts.map +1 -1
- package/dist/resources/conversations/conversations.js +3 -0
- package/dist/resources/conversations/conversations.js.map +1 -1
- package/dist/resources/conversations/conversations.mjs +3 -0
- package/dist/resources/conversations/conversations.mjs.map +1 -1
- package/dist/resources/conversations/items.d.ts +371 -8
- package/dist/resources/conversations/items.d.ts.map +1 -1
- package/dist/resources/conversations/items.js +3 -0
- package/dist/resources/conversations/items.js.map +1 -1
- package/dist/resources/conversations/items.mjs +3 -0
- package/dist/resources/conversations/items.mjs.map +1 -1
- package/dist/resources/embeddings.d.ts +8 -0
- package/dist/resources/embeddings.d.ts.map +1 -1
- package/dist/resources/embeddings.js +8 -0
- package/dist/resources/embeddings.js.map +1 -1
- package/dist/resources/embeddings.mjs +8 -0
- package/dist/resources/embeddings.mjs.map +1 -1
- package/dist/resources/files.d.ts +11 -8
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -0
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/files.mjs +3 -0
- package/dist/resources/files.mjs.map +1 -1
- package/dist/resources/index.d.ts +1 -4
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -7
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/index.mjs +0 -3
- package/dist/resources/index.mjs.map +1 -1
- package/dist/resources/inspect.d.ts +3 -0
- package/dist/resources/inspect.d.ts.map +1 -1
- package/dist/resources/inspect.js +3 -0
- package/dist/resources/inspect.js.map +1 -1
- package/dist/resources/inspect.mjs +3 -0
- package/dist/resources/inspect.mjs.map +1 -1
- package/dist/resources/models/index.d.ts +1 -1
- package/dist/resources/models/index.d.ts.map +1 -1
- package/dist/resources/models/index.js.map +1 -1
- package/dist/resources/models/index.mjs.map +1 -1
- package/dist/resources/models/models.d.ts +7 -65
- package/dist/resources/models/models.d.ts.map +1 -1
- package/dist/resources/models/models.js +0 -19
- package/dist/resources/models/models.js.map +1 -1
- package/dist/resources/models/models.mjs +0 -19
- package/dist/resources/models/models.mjs.map +1 -1
- package/dist/resources/moderations.d.ts +3 -0
- package/dist/resources/moderations.d.ts.map +1 -1
- package/dist/resources/moderations.js +3 -0
- package/dist/resources/moderations.js.map +1 -1
- package/dist/resources/moderations.mjs +3 -0
- package/dist/resources/moderations.mjs.map +1 -1
- package/dist/resources/prompts/prompts.d.ts +3 -0
- package/dist/resources/prompts/prompts.d.ts.map +1 -1
- package/dist/resources/prompts/prompts.js +3 -0
- package/dist/resources/prompts/prompts.js.map +1 -1
- package/dist/resources/prompts/prompts.mjs +3 -0
- package/dist/resources/prompts/prompts.mjs.map +1 -1
- package/dist/resources/prompts/versions.d.ts +3 -0
- package/dist/resources/prompts/versions.d.ts.map +1 -1
- package/dist/resources/prompts/versions.js +3 -0
- package/dist/resources/prompts/versions.js.map +1 -1
- package/dist/resources/prompts/versions.mjs +3 -0
- package/dist/resources/prompts/versions.mjs.map +1 -1
- package/dist/resources/providers.d.ts +3 -0
- package/dist/resources/providers.d.ts.map +1 -1
- package/dist/resources/providers.js +3 -0
- package/dist/resources/providers.js.map +1 -1
- package/dist/resources/providers.mjs +3 -0
- package/dist/resources/providers.mjs.map +1 -1
- package/dist/resources/responses/input-items.d.ts +102 -3
- package/dist/resources/responses/input-items.d.ts.map +1 -1
- package/dist/resources/responses/responses.d.ts +582 -11
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/responses/responses.js.map +1 -1
- package/dist/resources/responses/responses.mjs.map +1 -1
- package/dist/resources/routes.d.ts +3 -0
- package/dist/resources/routes.d.ts.map +1 -1
- package/dist/resources/routes.js +3 -0
- package/dist/resources/routes.js.map +1 -1
- package/dist/resources/routes.mjs +3 -0
- package/dist/resources/routes.mjs.map +1 -1
- package/dist/resources/safety.d.ts +14 -11
- package/dist/resources/safety.d.ts.map +1 -1
- package/dist/resources/safety.js +3 -0
- package/dist/resources/safety.js.map +1 -1
- package/dist/resources/safety.mjs +3 -0
- package/dist/resources/safety.mjs.map +1 -1
- package/dist/resources/vector-io.d.ts +4 -4
- package/dist/resources/vector-stores/file-batches.d.ts +49 -1
- package/dist/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/dist/resources/vector-stores/file-batches.js.map +1 -1
- package/dist/resources/vector-stores/file-batches.mjs.map +1 -1
- package/dist/resources/vector-stores/files.d.ts +100 -4
- package/dist/resources/vector-stores/files.d.ts.map +1 -1
- package/dist/resources/vector-stores/files.js.map +1 -1
- package/dist/resources/vector-stores/files.mjs.map +1 -1
- package/dist/resources/vector-stores/vector-stores.d.ts +51 -3
- package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/dist/resources/vector-stores/vector-stores.js.map +1 -1
- package/dist/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/dist/src/core.ts +10 -21
- package/dist/src/index.ts +51 -48
- package/{src/resources/alpha/post-training.ts → dist/src/internal/utils/query.ts} +5 -1
- package/dist/src/resources/alpha/alpha.ts +0 -20
- package/dist/src/resources/alpha/eval/eval.ts +3 -0
- package/dist/src/resources/alpha/eval/jobs.ts +3 -0
- package/dist/src/resources/alpha/index.ts +0 -8
- package/dist/src/resources/alpha/inference.ts +8 -0
- package/dist/src/resources/batches.ts +8 -0
- package/dist/src/resources/beta/datasets.ts +4 -9
- package/dist/src/resources/chat/chat.ts +36 -33
- package/dist/src/resources/chat/completions.ts +307 -811
- package/dist/src/resources/completions.ts +10 -4
- package/dist/src/resources/conversations/conversations.ts +121 -1
- package/dist/src/resources/conversations/items.ts +477 -6
- package/dist/src/resources/embeddings.ts +8 -0
- package/dist/src/resources/files.ts +12 -9
- package/dist/src/resources/index.ts +0 -18
- package/dist/src/resources/inspect.ts +3 -0
- package/dist/src/resources/models/index.ts +0 -2
- package/dist/src/resources/models/models.ts +7 -82
- package/dist/src/resources/moderations.ts +3 -0
- package/dist/src/resources/prompts/prompts.ts +3 -0
- package/dist/src/resources/prompts/versions.ts +3 -0
- package/dist/src/resources/providers.ts +3 -0
- package/dist/src/resources/responses/input-items.ts +128 -2
- package/dist/src/resources/responses/responses.ts +706 -7
- package/dist/src/resources/routes.ts +3 -0
- package/dist/src/resources/safety.ts +15 -12
- package/dist/src/resources/vector-io.ts +4 -4
- package/dist/src/resources/vector-stores/file-batches.ts +57 -0
- package/dist/src/resources/vector-stores/files.ts +117 -3
- package/dist/src/resources/vector-stores/vector-stores.ts +59 -2
- package/dist/src/streaming.ts +24 -6
- package/dist/src/version.ts +1 -1
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +21 -6
- package/dist/streaming.js.map +1 -1
- package/dist/streaming.mjs +21 -6
- package/dist/streaming.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/scripts/mock +21 -10
- package/scripts/test +8 -8
- package/src/core.ts +10 -21
- package/src/index.ts +51 -48
- package/{dist/src/resources/alpha/post-training.ts → src/internal/utils/query.ts} +5 -1
- package/src/resources/alpha/alpha.ts +0 -20
- package/src/resources/alpha/eval/eval.ts +3 -0
- package/src/resources/alpha/eval/jobs.ts +3 -0
- package/src/resources/alpha/index.ts +0 -8
- package/src/resources/alpha/inference.ts +8 -0
- package/src/resources/batches.ts +8 -0
- package/src/resources/beta/datasets.ts +4 -9
- package/src/resources/chat/chat.ts +36 -33
- package/src/resources/chat/completions.ts +307 -811
- package/src/resources/completions.ts +10 -4
- package/src/resources/conversations/conversations.ts +121 -1
- package/src/resources/conversations/items.ts +477 -6
- package/src/resources/embeddings.ts +8 -0
- package/src/resources/files.ts +12 -9
- package/src/resources/index.ts +0 -18
- package/src/resources/inspect.ts +3 -0
- package/src/resources/models/index.ts +0 -2
- package/src/resources/models/models.ts +7 -82
- package/src/resources/moderations.ts +3 -0
- package/src/resources/prompts/prompts.ts +3 -0
- package/src/resources/prompts/versions.ts +3 -0
- package/src/resources/providers.ts +3 -0
- package/src/resources/responses/input-items.ts +128 -2
- package/src/resources/responses/responses.ts +706 -7
- package/src/resources/routes.ts +3 -0
- package/src/resources/safety.ts +15 -12
- package/src/resources/vector-io.ts +4 -4
- package/src/resources/vector-stores/file-batches.ts +57 -0
- package/src/resources/vector-stores/files.ts +117 -3
- package/src/resources/vector-stores/vector-stores.ts +59 -2
- package/src/streaming.ts +24 -6
- package/src/version.ts +1 -1
- package/tests/api-resources/beta/datasets.test.ts +4 -10
- package/tests/api-resources/chat/completions.test.ts +2 -0
- package/tests/api-resources/files.test.ts +2 -2
- package/tests/api-resources/models/models.test.ts +0 -39
- package/tests/api-resources/responses/responses.test.ts +10 -1
- package/tests/api-resources/vector-stores/file-batches.test.ts +1 -1
- package/tests/api-resources/vector-stores/files.test.ts +1 -1
- package/tests/api-resources/vector-stores/vector-stores.test.ts +1 -1
- package/tests/stringifyQuery.test.ts +2 -4
- package/dist/resources/alpha/post-training/index.d.ts +0 -3
- package/dist/resources/alpha/post-training/index.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/index.js +0 -15
- package/dist/resources/alpha/post-training/index.js.map +0 -1
- package/dist/resources/alpha/post-training/index.mjs +0 -10
- package/dist/resources/alpha/post-training/index.mjs.map +0 -1
- package/dist/resources/alpha/post-training/job.d.ts +0 -104
- package/dist/resources/alpha/post-training/job.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/job.js +0 -42
- package/dist/resources/alpha/post-training/job.js.map +0 -1
- package/dist/resources/alpha/post-training/job.mjs +0 -38
- package/dist/resources/alpha/post-training/job.mjs.map +0 -1
- package/dist/resources/alpha/post-training/post-training.d.ts +0 -269
- package/dist/resources/alpha/post-training/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training/post-training.mjs +0 -30
- package/dist/resources/alpha/post-training/post-training.mjs.map +0 -1
- package/dist/resources/alpha/post-training.d.ts +0 -2
- package/dist/resources/alpha/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training.js +0 -25
- package/dist/resources/alpha/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training.mjs.map +0 -1
- package/dist/resources/tool-runtime.d.ts +0 -152
- package/dist/resources/tool-runtime.d.ts.map +0 -1
- package/dist/resources/tool-runtime.js +0 -30
- package/dist/resources/tool-runtime.js.map +0 -1
- package/dist/resources/tool-runtime.mjs +0 -26
- package/dist/resources/tool-runtime.mjs.map +0 -1
- package/dist/resources/toolgroups.d.ts +0 -91
- package/dist/resources/toolgroups.d.ts.map +0 -1
- package/dist/resources/toolgroups.js +0 -54
- package/dist/resources/toolgroups.js.map +0 -1
- package/dist/resources/toolgroups.mjs +0 -50
- package/dist/resources/toolgroups.mjs.map +0 -1
- package/dist/resources/tools.d.ts +0 -26
- package/dist/resources/tools.d.ts.map +0 -1
- package/dist/resources/tools.js +0 -30
- package/dist/resources/tools.js.map +0 -1
- package/dist/resources/tools.mjs +0 -26
- package/dist/resources/tools.mjs.map +0 -1
- package/dist/src/resources/alpha/post-training/index.ts +0 -17
- package/dist/src/resources/alpha/post-training/job.ts +0 -161
- package/dist/src/resources/alpha/post-training/post-training.ts +0 -385
- package/dist/src/resources/tool-runtime.ts +0 -217
- package/dist/src/resources/toolgroups.ts +0 -135
- package/dist/src/resources/tools.ts +0 -52
- package/src/resources/alpha/post-training/index.ts +0 -17
- package/src/resources/alpha/post-training/job.ts +0 -161
- package/src/resources/alpha/post-training/post-training.ts +0 -385
- package/src/resources/tool-runtime.ts +0 -217
- package/src/resources/toolgroups.ts +0 -135
- package/src/resources/tools.ts +0 -52
- package/tests/api-resources/alpha/post-training/job.test.ts +0 -86
- package/tests/api-resources/alpha/post-training/post-training.test.ts +0 -134
- package/tests/api-resources/tool-runtime.test.ts +0 -68
- package/tests/api-resources/toolgroups.test.ts +0 -91
- package/tests/api-resources/tools.test.ts +0 -57
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class ToolRuntime extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Run a tool with the given arguments.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
invokeTool(body: ToolRuntimeInvokeToolParams, options?: Core.RequestOptions): Core.APIPromise<ToolInvocationResult>;
|
|
10
|
-
/**
|
|
11
|
-
* List all tools in the runtime.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
listTools(query?: ToolRuntimeListToolsParams, options?: Core.RequestOptions): Core.APIPromise<ToolRuntimeListToolsResponse>;
|
|
16
|
-
listTools(options?: Core.RequestOptions): Core.APIPromise<ToolRuntimeListToolsResponse>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Tool definition used in runtime contexts.
|
|
20
|
-
*/
|
|
21
|
-
export interface ToolDef {
|
|
22
|
-
name: string;
|
|
23
|
-
description?: string | null;
|
|
24
|
-
input_schema?: {
|
|
25
|
-
[key: string]: unknown;
|
|
26
|
-
} | null;
|
|
27
|
-
metadata?: {
|
|
28
|
-
[key: string]: unknown;
|
|
29
|
-
} | null;
|
|
30
|
-
output_schema?: {
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
} | null;
|
|
33
|
-
toolgroup_id?: string | null;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Result of a tool invocation.
|
|
37
|
-
*/
|
|
38
|
-
export interface ToolInvocationResult {
|
|
39
|
-
/**
|
|
40
|
-
* A image content item
|
|
41
|
-
*/
|
|
42
|
-
content?: string | ToolInvocationResult.ImageContentItemOutput | ToolInvocationResult.TextContentItem | Array<ToolInvocationResult.ImageContentItemOutput | ToolInvocationResult.TextContentItem> | null;
|
|
43
|
-
error_code?: number | null;
|
|
44
|
-
error_message?: string | null;
|
|
45
|
-
metadata?: {
|
|
46
|
-
[key: string]: unknown;
|
|
47
|
-
} | null;
|
|
48
|
-
}
|
|
49
|
-
export declare namespace ToolInvocationResult {
|
|
50
|
-
/**
|
|
51
|
-
* A image content item
|
|
52
|
-
*/
|
|
53
|
-
interface ImageContentItemOutput {
|
|
54
|
-
/**
|
|
55
|
-
* A URL or a base64 encoded string
|
|
56
|
-
*/
|
|
57
|
-
image: ImageContentItemOutput.Image;
|
|
58
|
-
type?: 'image';
|
|
59
|
-
}
|
|
60
|
-
namespace ImageContentItemOutput {
|
|
61
|
-
/**
|
|
62
|
-
* A URL or a base64 encoded string
|
|
63
|
-
*/
|
|
64
|
-
interface Image {
|
|
65
|
-
data?: string | null;
|
|
66
|
-
/**
|
|
67
|
-
* A URL reference to external content.
|
|
68
|
-
*/
|
|
69
|
-
url?: Image.URL | null;
|
|
70
|
-
}
|
|
71
|
-
namespace Image {
|
|
72
|
-
/**
|
|
73
|
-
* A URL reference to external content.
|
|
74
|
-
*/
|
|
75
|
-
interface URL {
|
|
76
|
-
uri: string;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A text content item
|
|
82
|
-
*/
|
|
83
|
-
interface TextContentItem {
|
|
84
|
-
text: string;
|
|
85
|
-
type?: 'text';
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* A image content item
|
|
89
|
-
*/
|
|
90
|
-
interface ImageContentItemOutput {
|
|
91
|
-
/**
|
|
92
|
-
* A URL or a base64 encoded string
|
|
93
|
-
*/
|
|
94
|
-
image: ImageContentItemOutput.Image;
|
|
95
|
-
type?: 'image';
|
|
96
|
-
}
|
|
97
|
-
namespace ImageContentItemOutput {
|
|
98
|
-
/**
|
|
99
|
-
* A URL or a base64 encoded string
|
|
100
|
-
*/
|
|
101
|
-
interface Image {
|
|
102
|
-
data?: string | null;
|
|
103
|
-
/**
|
|
104
|
-
* A URL reference to external content.
|
|
105
|
-
*/
|
|
106
|
-
url?: Image.URL | null;
|
|
107
|
-
}
|
|
108
|
-
namespace Image {
|
|
109
|
-
/**
|
|
110
|
-
* A URL reference to external content.
|
|
111
|
-
*/
|
|
112
|
-
interface URL {
|
|
113
|
-
uri: string;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* A text content item
|
|
119
|
-
*/
|
|
120
|
-
interface TextContentItem {
|
|
121
|
-
text: string;
|
|
122
|
-
type?: 'text';
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
export type ToolRuntimeListToolsResponse = Array<ToolDef>;
|
|
126
|
-
export interface ToolRuntimeInvokeToolParams {
|
|
127
|
-
kwargs: {
|
|
128
|
-
[key: string]: unknown;
|
|
129
|
-
};
|
|
130
|
-
tool_name: string;
|
|
131
|
-
authorization?: string | null;
|
|
132
|
-
}
|
|
133
|
-
export interface ToolRuntimeListToolsParams {
|
|
134
|
-
authorization?: string | null;
|
|
135
|
-
/**
|
|
136
|
-
* A URL reference to external content.
|
|
137
|
-
*/
|
|
138
|
-
mcp_endpoint?: ToolRuntimeListToolsParams.McpEndpoint | null;
|
|
139
|
-
tool_group_id?: string | null;
|
|
140
|
-
}
|
|
141
|
-
export declare namespace ToolRuntimeListToolsParams {
|
|
142
|
-
/**
|
|
143
|
-
* A URL reference to external content.
|
|
144
|
-
*/
|
|
145
|
-
interface McpEndpoint {
|
|
146
|
-
uri: string;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
export declare namespace ToolRuntime {
|
|
150
|
-
export { type ToolDef as ToolDef, type ToolInvocationResult as ToolInvocationResult, type ToolRuntimeListToolsResponse as ToolRuntimeListToolsResponse, type ToolRuntimeInvokeToolParams as ToolRuntimeInvokeToolParams, type ToolRuntimeListToolsParams as ToolRuntimeListToolsParams, };
|
|
151
|
-
}
|
|
152
|
-
//# sourceMappingURL=tool-runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-runtime.d.ts","sourceRoot":"","sources":["../src/resources/tool-runtime.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ToolRuntime = void 0;
|
|
11
|
-
const resource_1 = require("../resource.js");
|
|
12
|
-
const core_1 = require("../core.js");
|
|
13
|
-
class ToolRuntime extends resource_1.APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Run a tool with the given arguments.
|
|
16
|
-
*
|
|
17
|
-
* @deprecated
|
|
18
|
-
*/
|
|
19
|
-
invokeTool(body, options) {
|
|
20
|
-
return this._client.post('/v1/tool-runtime/invoke', { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
listTools(query = {}, options) {
|
|
23
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
24
|
-
return this.listTools({}, query);
|
|
25
|
-
}
|
|
26
|
-
return this._client.get('/v1/tool-runtime/list-tools', { query, ...options })._thenUnwrap((obj) => obj.data);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.ToolRuntime = ToolRuntime;
|
|
30
|
-
//# sourceMappingURL=tool-runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-runtime.js","sourceRoot":"","sources":["../src/resources/tool-runtime.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;OAIG;IACH,UAAU,CACR,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAYD,SAAS,CACP,QAA0D,EAAE,EAC5D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAClC;QACD,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAGtE,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;CACF;AApCD,kCAoCC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
import { APIResource } from "../resource.mjs";
|
|
9
|
-
import { isRequestOptions } from "../core.mjs";
|
|
10
|
-
export class ToolRuntime extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Run a tool with the given arguments.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
invokeTool(body, options) {
|
|
17
|
-
return this._client.post('/v1/tool-runtime/invoke', { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
listTools(query = {}, options) {
|
|
20
|
-
if (isRequestOptions(query)) {
|
|
21
|
-
return this.listTools({}, query);
|
|
22
|
-
}
|
|
23
|
-
return this._client.get('/v1/tool-runtime/list-tools', { query, ...options })._thenUnwrap((obj) => obj.data);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=tool-runtime.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-runtime.mjs","sourceRoot":"","sources":["../src/resources/tool-runtime.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACH,UAAU,CACR,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAYD,SAAS,CACP,QAA0D,EAAE,EAC5D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAClC;QACD,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAGtE,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
export declare class Toolgroups extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* List tool groups with optional provider.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated
|
|
8
|
-
*/
|
|
9
|
-
list(options?: Core.RequestOptions): Core.APIPromise<ToolgroupListResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Get a tool group by its ID.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
get(toolgroupId: string, options?: Core.RequestOptions): Core.APIPromise<ToolGroup>;
|
|
16
|
-
/**
|
|
17
|
-
* Register a tool group.
|
|
18
|
-
*
|
|
19
|
-
* @deprecated
|
|
20
|
-
*/
|
|
21
|
-
register(body: ToolgroupRegisterParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Unregister a tool group.
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
unregister(toolgroupId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Response containing a list of tool groups.
|
|
31
|
-
*/
|
|
32
|
-
export interface ListToolGroupsResponse {
|
|
33
|
-
data: ToolgroupListResponse;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* A group of related tools managed together.
|
|
37
|
-
*/
|
|
38
|
-
export interface ToolGroup {
|
|
39
|
-
/**
|
|
40
|
-
* Unique identifier for this resource in llama stack
|
|
41
|
-
*/
|
|
42
|
-
identifier: string;
|
|
43
|
-
/**
|
|
44
|
-
* ID of the provider that owns this resource
|
|
45
|
-
*/
|
|
46
|
-
provider_id: string;
|
|
47
|
-
args?: {
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
} | null;
|
|
50
|
-
/**
|
|
51
|
-
* A URL reference to external content.
|
|
52
|
-
*/
|
|
53
|
-
mcp_endpoint?: ToolGroup.McpEndpoint | null;
|
|
54
|
-
/**
|
|
55
|
-
* Unique identifier for this resource in the provider
|
|
56
|
-
*/
|
|
57
|
-
provider_resource_id?: string | null;
|
|
58
|
-
type?: 'tool_group';
|
|
59
|
-
}
|
|
60
|
-
export declare namespace ToolGroup {
|
|
61
|
-
/**
|
|
62
|
-
* A URL reference to external content.
|
|
63
|
-
*/
|
|
64
|
-
interface McpEndpoint {
|
|
65
|
-
uri: string;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export type ToolgroupListResponse = Array<ToolGroup>;
|
|
69
|
-
export interface ToolgroupRegisterParams {
|
|
70
|
-
provider_id: string;
|
|
71
|
-
toolgroup_id: string;
|
|
72
|
-
args?: {
|
|
73
|
-
[key: string]: unknown;
|
|
74
|
-
} | null;
|
|
75
|
-
/**
|
|
76
|
-
* A URL reference to external content.
|
|
77
|
-
*/
|
|
78
|
-
mcp_endpoint?: ToolgroupRegisterParams.McpEndpoint | null;
|
|
79
|
-
}
|
|
80
|
-
export declare namespace ToolgroupRegisterParams {
|
|
81
|
-
/**
|
|
82
|
-
* A URL reference to external content.
|
|
83
|
-
*/
|
|
84
|
-
interface McpEndpoint {
|
|
85
|
-
uri: string;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
export declare namespace Toolgroups {
|
|
89
|
-
export { type ListToolGroupsResponse as ListToolGroupsResponse, type ToolGroup as ToolGroup, type ToolgroupListResponse as ToolgroupListResponse, type ToolgroupRegisterParams as ToolgroupRegisterParams, };
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=toolgroups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolgroups.d.ts","sourceRoot":"","sources":["../src/resources/toolgroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAM3E;;;;OAIG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;IAInF;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ7F;;;;OAIG;IACH,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAMtF;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAE5C;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,yBAAiB,SAAS,CAAC;IACzB;;OAEG;IACH,UAAiB,WAAW;QAC1B,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;AAErD,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAC,WAAW,GAAG,IAAI,CAAC;CAC3D;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,WAAW;QAC1B,GAAG,EAAE,MAAM,CAAC;KACb;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Toolgroups = void 0;
|
|
11
|
-
const resource_1 = require("../resource.js");
|
|
12
|
-
class Toolgroups extends resource_1.APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* List tool groups with optional provider.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
list(options) {
|
|
19
|
-
return this._client.get('/v1/toolgroups', options)._thenUnwrap((obj) => obj.data);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get a tool group by its ID.
|
|
23
|
-
*
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
get(toolgroupId, options) {
|
|
27
|
-
return this._client.get(`/v1/toolgroups/${toolgroupId}`, options);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Register a tool group.
|
|
31
|
-
*
|
|
32
|
-
* @deprecated
|
|
33
|
-
*/
|
|
34
|
-
register(body, options) {
|
|
35
|
-
return this._client.post('/v1/toolgroups', {
|
|
36
|
-
body,
|
|
37
|
-
...options,
|
|
38
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Unregister a tool group.
|
|
43
|
-
*
|
|
44
|
-
* @deprecated
|
|
45
|
-
*/
|
|
46
|
-
unregister(toolgroupId, options) {
|
|
47
|
-
return this._client.delete(`/v1/toolgroups/${toolgroupId}`, {
|
|
48
|
-
...options,
|
|
49
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.Toolgroups = Toolgroups;
|
|
54
|
-
//# sourceMappingURL=toolgroups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolgroups.js","sourceRoot":"","sources":["../src/resources/toolgroups.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAC3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,WAAmB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAA6B,EAAE,OAA6B;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,WAAmB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,WAAW,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,gCA6CC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
import { APIResource } from "../resource.mjs";
|
|
9
|
-
export class Toolgroups extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* List tool groups with optional provider.
|
|
12
|
-
*
|
|
13
|
-
* @deprecated
|
|
14
|
-
*/
|
|
15
|
-
list(options) {
|
|
16
|
-
return this._client.get('/v1/toolgroups', options)._thenUnwrap((obj) => obj.data);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Get a tool group by its ID.
|
|
20
|
-
*
|
|
21
|
-
* @deprecated
|
|
22
|
-
*/
|
|
23
|
-
get(toolgroupId, options) {
|
|
24
|
-
return this._client.get(`/v1/toolgroups/${toolgroupId}`, options);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Register a tool group.
|
|
28
|
-
*
|
|
29
|
-
* @deprecated
|
|
30
|
-
*/
|
|
31
|
-
register(body, options) {
|
|
32
|
-
return this._client.post('/v1/toolgroups', {
|
|
33
|
-
body,
|
|
34
|
-
...options,
|
|
35
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Unregister a tool group.
|
|
40
|
-
*
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
unregister(toolgroupId, options) {
|
|
44
|
-
return this._client.delete(`/v1/toolgroups/${toolgroupId}`, {
|
|
45
|
-
...options,
|
|
46
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=toolgroups.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toolgroups.mjs","sourceRoot":"","sources":["../src/resources/toolgroups.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;OAIG;IACH,IAAI,CAAC,OAA6B;QAChC,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAC3C,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,WAAmB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAA6B,EAAE,OAA6B;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,WAAmB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,WAAW,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
import * as ToolRuntimeAPI from "./tool-runtime.js";
|
|
4
|
-
export declare class Tools extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* List tools with optional tool group.
|
|
7
|
-
*
|
|
8
|
-
* @deprecated
|
|
9
|
-
*/
|
|
10
|
-
list(query?: ToolListParams, options?: Core.RequestOptions): Core.APIPromise<ToolListResponse>;
|
|
11
|
-
list(options?: Core.RequestOptions): Core.APIPromise<ToolListResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Get a tool by its name.
|
|
14
|
-
*
|
|
15
|
-
* @deprecated
|
|
16
|
-
*/
|
|
17
|
-
get(toolName: string, options?: Core.RequestOptions): Core.APIPromise<ToolRuntimeAPI.ToolDef>;
|
|
18
|
-
}
|
|
19
|
-
export type ToolListResponse = Array<ToolRuntimeAPI.ToolDef>;
|
|
20
|
-
export interface ToolListParams {
|
|
21
|
-
toolgroup_id?: string | null;
|
|
22
|
-
}
|
|
23
|
-
export declare namespace Tools {
|
|
24
|
-
export { type ToolListResponse as ToolListResponse, type ToolListParams as ToolListParams };
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,cAAc,MAAM,gBAAgB,CAAC;AAEjD,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAC9F,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC;IAatE;;;;OAIG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC;CAG9F;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
package/dist/resources/tools.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
// All rights reserved.
|
|
4
|
-
//
|
|
5
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
6
|
-
// the root directory of this source tree.
|
|
7
|
-
//
|
|
8
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Tools = void 0;
|
|
11
|
-
const resource_1 = require("../resource.js");
|
|
12
|
-
const core_1 = require("../core.js");
|
|
13
|
-
class Tools extends resource_1.APIResource {
|
|
14
|
-
list(query = {}, options) {
|
|
15
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
16
|
-
return this.list({}, query);
|
|
17
|
-
}
|
|
18
|
-
return this._client.get('/v1/tools', { query, ...options })._thenUnwrap((obj) => obj.data);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get a tool by its name.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated
|
|
24
|
-
*/
|
|
25
|
-
get(toolName, options) {
|
|
26
|
-
return this._client.get(`/v1/tools/${toolName}`, options);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.Tools = Tools;
|
|
30
|
-
//# sourceMappingURL=tools.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAI3C,MAAa,KAAM,SAAQ,sBAAW;IAQpC,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,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACpD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,QAAgB,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AA5BD,sBA4BC"}
|
package/dist/resources/tools.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
import { APIResource } from "../resource.mjs";
|
|
9
|
-
import { isRequestOptions } from "../core.mjs";
|
|
10
|
-
export class Tools extends APIResource {
|
|
11
|
-
list(query = {}, options) {
|
|
12
|
-
if (isRequestOptions(query)) {
|
|
13
|
-
return this.list({}, query);
|
|
14
|
-
}
|
|
15
|
-
return this._client.get('/v1/tools', { query, ...options })._thenUnwrap((obj) => obj.data);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Get a tool by its name.
|
|
19
|
-
*
|
|
20
|
-
* @deprecated
|
|
21
|
-
*/
|
|
22
|
-
get(toolName, options) {
|
|
23
|
-
return this._client.get(`/v1/tools/${toolName}`, options);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=tools.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,uBAAuB;AACvB,EAAE;AACF,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,KAAM,SAAQ,WAAW;IAQpC,IAAI,CACF,QAA8C,EAAE,EAChD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OACE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACpD,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,GAAG,CAAC,QAAgB,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
// All rights reserved.
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the terms described in the LICENSE file in
|
|
5
|
-
// the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
8
|
-
|
|
9
|
-
export { Job, type JobListResponse, type JobArtifactsResponse, type JobStatusResponse } from './job';
|
|
10
|
-
export {
|
|
11
|
-
PostTraining,
|
|
12
|
-
type AlgorithmConfig,
|
|
13
|
-
type ListPostTrainingJobsResponse,
|
|
14
|
-
type PostTrainingJob,
|
|
15
|
-
type PostTrainingPreferenceOptimizeParams,
|
|
16
|
-
type PostTrainingSupervisedFineTuneParams,
|
|
17
|
-
} from './post-training';
|