weave-typescript 0.51.3 → 0.53.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/dist/google/protobuf/duration.pb.d.ts +99 -0
- package/dist/google/protobuf/duration.pb.js +93 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/weave/authz/v1/index.d.ts +1 -0
- package/dist/weave/authz/v1/index.js +38 -0
- package/dist/weave/authz/v1/options.pb.d.ts +52 -0
- package/dist/weave/authz/v1/options.pb.js +403 -0
- package/dist/weave/filter/v1/index.d.ts +1 -0
- package/dist/weave/filter/v1/index.js +38 -0
- package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
- package/dist/weave/filter/v1/options.pb.js +417 -0
- package/dist/weave/index.d.ts +2 -0
- package/dist/weave/index.js +39 -0
- package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
- package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
- package/dist/weaveapi/agent/v1/index.d.ts +1 -1
- package/dist/weaveapi/agent/v1/index.js +2 -2
- package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
- package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
- package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
- package/dist/weaveapi/auth/v1/index.d.ts +4 -1
- package/dist/weaveapi/auth/v1/index.js +5 -2
- package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
- package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
- package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
- package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
- package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
- package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
- package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
- package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
- package/dist/weaveapi/chat/v1/index.d.ts +0 -1
- package/dist/weaveapi/chat/v1/index.js +1 -2
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
- package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
- package/dist/weaveapi/consolidation/v1/index.js +1 -2
- package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
- package/dist/weaveapi/content/v1/content.pb.js +470 -0
- package/dist/weaveapi/content/v1/index.d.ts +1 -0
- package/dist/weaveapi/content/v1/index.js +38 -0
- package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
- package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
- package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
- package/dist/weaveapi/gateway/v1/index.js +1 -2
- package/dist/weaveapi/index.d.ts +5 -5
- package/dist/weaveapi/index.js +6 -6
- package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
- package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
- package/dist/weaveapi/inference/v1/index.d.ts +4 -0
- package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
- package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +54 -15
- package/dist/weaveapi/{model → inference}/v1/model.pb.js +573 -116
- package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +184 -110
- package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2240 -1061
- package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
- package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
- package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
- package/dist/weaveapi/ingestion/v1/index.js +1 -3
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
- package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
- package/dist/weaveapi/initialization/v1/index.js +38 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
- package/dist/weaveapi/organization/v1/index.d.ts +0 -1
- package/dist/weaveapi/organization/v1/index.js +1 -2
- package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
- package/dist/weaveapi/reporting/index.d.ts +1 -0
- package/dist/weaveapi/reporting/index.js +38 -0
- package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
- package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
- package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
- package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
- package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
- package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
- package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/index.js +1 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
- package/dist/weaveapi/tool/index.d.ts +1 -0
- package/dist/weaveapi/tool/index.js +38 -0
- package/dist/weaveapi/tool/v1/index.d.ts +1 -0
- package/dist/weaveapi/tool/v1/index.js +38 -0
- package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
- package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
- package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
- package/dist/weaveapi/workflow/v1/index.js +2 -2
- package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
- package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
- package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
- package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
- package/dist/weavesql/weavedb/agent_sql.js +281 -758
- package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
- package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
- package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
- package/dist/weavesql/weavedb/chat_sql.js +312 -597
- package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
- package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
- package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/document_table_sql.js +12 -12
- package/dist/weavesql/weavedb/identity_sql.d.ts +1021 -0
- package/dist/weavesql/weavedb/identity_sql.js +1818 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +167 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.js +483 -0
- package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
- package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
- package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
- package/dist/weavesql/weavedb/initialization_sql.js +33 -0
- package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
- package/dist/weavesql/weavedb/organization_sql.d.ts +24 -102
- package/dist/weavesql/weavedb/organization_sql.js +56 -262
- package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
- package/dist/weavesql/weavedb/tool_sql.js +407 -0
- package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
- package/dist/weavesql/weavedb/usage_sql.js +568 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
- package/dist/weavesql/weavedb/workflow_sql.js +281 -909
- package/package.json +1 -1
- package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
- package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
- package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
- package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
- package/dist/weaveapi/atc/v1/index.d.ts +0 -5
- package/dist/weaveapi/atc/v1/index.js +0 -42
- package/dist/weaveapi/atc/v1/message.pb.js +0 -287
- package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
- package/dist/weaveapi/atc/v1/process.pb.js +0 -658
- package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
- package/dist/weaveapi/atc/v1/run.pb.js +0 -525
- package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
- package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
- package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
- package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
- package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
- package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
- package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
- package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
- package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
- package/dist/weaveapi/model/v1/index.d.ts +0 -2
- package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
- package/dist/weaveapi/project/v1/index.d.ts +0 -2
- package/dist/weaveapi/project/v1/index.js +0 -39
- package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
- package/dist/weaveapi/project/v1/project.pb.js +0 -1004
- package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
- package/dist/weaveapi/project/v1/service.pb.js +0 -1994
- package/dist/weaveapi/provider/v1/index.d.ts +0 -2
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
- package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
- package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
- package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
- package/dist/weaveapi/task/v1/index.js +0 -39
- package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
- package/dist/weaveapi/task/v1/service.pb.js +0 -1436
- package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
- package/dist/weaveapi/task/v1/task.pb.js +0 -802
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
- /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
- /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
- /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
- /package/dist/weaveapi/{project → content}/index.js +0 -0
- /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
- /package/dist/weaveapi/{provider → inference}/index.js +0 -0
- /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
- /package/dist/weaveapi/{task → initialization}/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from './v1';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by barrel.js. DO NOT EDIT.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.v1 = void 0;
|
|
38
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as tool from './tool.pb';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by barrel.js. DO NOT EDIT.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.tool = void 0;
|
|
38
|
+
exports.tool = __importStar(require("./tool.pb"));
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "weaveapi.tool.v1";
|
|
3
|
+
export declare enum ToolKind {
|
|
4
|
+
TOOL_KIND_UNSPECIFIED = 0,
|
|
5
|
+
TOOL_KIND_FUNCTION = 1,
|
|
6
|
+
TOOL_KIND_AGENT = 2,
|
|
7
|
+
TOOL_KIND_WORKFLOW = 3,
|
|
8
|
+
TOOL_KIND_HTTP = 4,
|
|
9
|
+
TOOL_KIND_MCP = 5,
|
|
10
|
+
TOOL_KIND_PROVIDER_NATIVE = 6,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare function toolKindFromJSON(object: any): ToolKind;
|
|
14
|
+
export declare function toolKindToJSON(object: ToolKind): string;
|
|
15
|
+
export declare enum ToolConfirmation {
|
|
16
|
+
TOOL_CONFIRMATION_UNSPECIFIED = 0,
|
|
17
|
+
TOOL_CONFIRMATION_NEVER = 1,
|
|
18
|
+
TOOL_CONFIRMATION_ALWAYS = 2,
|
|
19
|
+
UNRECOGNIZED = -1
|
|
20
|
+
}
|
|
21
|
+
export declare function toolConfirmationFromJSON(object: any): ToolConfirmation;
|
|
22
|
+
export declare function toolConfirmationToJSON(object: ToolConfirmation): string;
|
|
23
|
+
export declare enum ToolExecutionStatus {
|
|
24
|
+
TOOL_EXECUTION_STATUS_UNSPECIFIED = 0,
|
|
25
|
+
TOOL_EXECUTION_STATUS_SUCCESS = 1,
|
|
26
|
+
TOOL_EXECUTION_STATUS_FAILED = 2,
|
|
27
|
+
UNRECOGNIZED = -1
|
|
28
|
+
}
|
|
29
|
+
export declare function toolExecutionStatusFromJSON(object: any): ToolExecutionStatus;
|
|
30
|
+
export declare function toolExecutionStatusToJSON(object: ToolExecutionStatus): string;
|
|
31
|
+
export interface CreateToolRequest {
|
|
32
|
+
slug: string;
|
|
33
|
+
name: string;
|
|
34
|
+
kind: ToolKind;
|
|
35
|
+
description: string;
|
|
36
|
+
inputSchema: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
} | undefined;
|
|
39
|
+
outputSchema: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
} | undefined;
|
|
42
|
+
configuration: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}
|
|
46
|
+
export interface CreateToolResponse {
|
|
47
|
+
tool: Tool | undefined;
|
|
48
|
+
}
|
|
49
|
+
export interface GetToolRequest {
|
|
50
|
+
toolId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface GetToolResponse {
|
|
53
|
+
tool: Tool | undefined;
|
|
54
|
+
}
|
|
55
|
+
export interface UpdateToolRequest {
|
|
56
|
+
toolId: string;
|
|
57
|
+
slug: string;
|
|
58
|
+
name: string;
|
|
59
|
+
kind: ToolKind;
|
|
60
|
+
description: string;
|
|
61
|
+
inputSchema: {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
} | undefined;
|
|
64
|
+
outputSchema: {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
} | undefined;
|
|
67
|
+
configuration: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
} | undefined;
|
|
70
|
+
}
|
|
71
|
+
export interface UpdateToolResponse {
|
|
72
|
+
tool: Tool | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface DeleteToolRequest {
|
|
75
|
+
toolId: string;
|
|
76
|
+
}
|
|
77
|
+
export interface DeleteToolResponse {
|
|
78
|
+
}
|
|
79
|
+
export interface ListToolsRequest {
|
|
80
|
+
pageSize: number;
|
|
81
|
+
pageOffset: number;
|
|
82
|
+
}
|
|
83
|
+
export interface ListToolsResponse {
|
|
84
|
+
tools: Tool[];
|
|
85
|
+
}
|
|
86
|
+
export interface AttachAgentToolRequest {
|
|
87
|
+
agentId: string;
|
|
88
|
+
toolId: string;
|
|
89
|
+
configuration: {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
} | undefined;
|
|
92
|
+
confirmation: ToolConfirmation;
|
|
93
|
+
}
|
|
94
|
+
export interface AttachAgentToolResponse {
|
|
95
|
+
agentTool: AgentTool | undefined;
|
|
96
|
+
}
|
|
97
|
+
export interface ListAgentToolsRequest {
|
|
98
|
+
agentId: string;
|
|
99
|
+
}
|
|
100
|
+
export interface ListAgentToolsResponse {
|
|
101
|
+
agentTools: AgentTool[];
|
|
102
|
+
}
|
|
103
|
+
export interface DetachAgentToolRequest {
|
|
104
|
+
agentId: string;
|
|
105
|
+
toolId: string;
|
|
106
|
+
}
|
|
107
|
+
export interface DetachAgentToolResponse {
|
|
108
|
+
}
|
|
109
|
+
export interface ExecuteToolRequest {
|
|
110
|
+
agentId: string;
|
|
111
|
+
toolId: string;
|
|
112
|
+
toolCallId: string;
|
|
113
|
+
context: ToolExecutionContext | undefined;
|
|
114
|
+
arguments: {
|
|
115
|
+
[key: string]: any;
|
|
116
|
+
} | undefined;
|
|
117
|
+
}
|
|
118
|
+
export interface ToolExecutionContext {
|
|
119
|
+
sessionId: string;
|
|
120
|
+
agentRunId: string;
|
|
121
|
+
rootAgentId: string;
|
|
122
|
+
callerAgentId: string;
|
|
123
|
+
defaultModelId: string;
|
|
124
|
+
}
|
|
125
|
+
export interface ExecuteToolResponse {
|
|
126
|
+
result: ToolExecutionResult | undefined;
|
|
127
|
+
}
|
|
128
|
+
export interface ToolExecutionResult {
|
|
129
|
+
status: ToolExecutionStatus;
|
|
130
|
+
summary: string;
|
|
131
|
+
content: {
|
|
132
|
+
[key: string]: any;
|
|
133
|
+
} | undefined;
|
|
134
|
+
}
|
|
135
|
+
export interface Tool {
|
|
136
|
+
id: string;
|
|
137
|
+
slug: string;
|
|
138
|
+
name: string;
|
|
139
|
+
kind: ToolKind;
|
|
140
|
+
description: string;
|
|
141
|
+
inputSchema: {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
} | undefined;
|
|
144
|
+
outputSchema: {
|
|
145
|
+
[key: string]: any;
|
|
146
|
+
} | undefined;
|
|
147
|
+
configuration: {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
} | undefined;
|
|
150
|
+
}
|
|
151
|
+
export interface AgentTool {
|
|
152
|
+
toolId: string;
|
|
153
|
+
configuration: {
|
|
154
|
+
[key: string]: any;
|
|
155
|
+
} | undefined;
|
|
156
|
+
confirmation: ToolConfirmation;
|
|
157
|
+
tool: Tool | undefined;
|
|
158
|
+
}
|
|
159
|
+
export declare const CreateToolRequest: MessageFns<CreateToolRequest>;
|
|
160
|
+
export declare const CreateToolResponse: MessageFns<CreateToolResponse>;
|
|
161
|
+
export declare const GetToolRequest: MessageFns<GetToolRequest>;
|
|
162
|
+
export declare const GetToolResponse: MessageFns<GetToolResponse>;
|
|
163
|
+
export declare const UpdateToolRequest: MessageFns<UpdateToolRequest>;
|
|
164
|
+
export declare const UpdateToolResponse: MessageFns<UpdateToolResponse>;
|
|
165
|
+
export declare const DeleteToolRequest: MessageFns<DeleteToolRequest>;
|
|
166
|
+
export declare const DeleteToolResponse: MessageFns<DeleteToolResponse>;
|
|
167
|
+
export declare const ListToolsRequest: MessageFns<ListToolsRequest>;
|
|
168
|
+
export declare const ListToolsResponse: MessageFns<ListToolsResponse>;
|
|
169
|
+
export declare const AttachAgentToolRequest: MessageFns<AttachAgentToolRequest>;
|
|
170
|
+
export declare const AttachAgentToolResponse: MessageFns<AttachAgentToolResponse>;
|
|
171
|
+
export declare const ListAgentToolsRequest: MessageFns<ListAgentToolsRequest>;
|
|
172
|
+
export declare const ListAgentToolsResponse: MessageFns<ListAgentToolsResponse>;
|
|
173
|
+
export declare const DetachAgentToolRequest: MessageFns<DetachAgentToolRequest>;
|
|
174
|
+
export declare const DetachAgentToolResponse: MessageFns<DetachAgentToolResponse>;
|
|
175
|
+
export declare const ExecuteToolRequest: MessageFns<ExecuteToolRequest>;
|
|
176
|
+
export declare const ToolExecutionContext: MessageFns<ToolExecutionContext>;
|
|
177
|
+
export declare const ExecuteToolResponse: MessageFns<ExecuteToolResponse>;
|
|
178
|
+
export declare const ToolExecutionResult: MessageFns<ToolExecutionResult>;
|
|
179
|
+
export declare const Tool: MessageFns<Tool>;
|
|
180
|
+
export declare const AgentTool: MessageFns<AgentTool>;
|
|
181
|
+
export interface ToolService {
|
|
182
|
+
CreateTool(request: CreateToolRequest): Promise<CreateToolResponse>;
|
|
183
|
+
GetTool(request: GetToolRequest): Promise<GetToolResponse>;
|
|
184
|
+
UpdateTool(request: UpdateToolRequest): Promise<UpdateToolResponse>;
|
|
185
|
+
DeleteTool(request: DeleteToolRequest): Promise<DeleteToolResponse>;
|
|
186
|
+
ListTools(request: ListToolsRequest): Promise<ListToolsResponse>;
|
|
187
|
+
AttachAgentTool(request: AttachAgentToolRequest): Promise<AttachAgentToolResponse>;
|
|
188
|
+
ListAgentTools(request: ListAgentToolsRequest): Promise<ListAgentToolsResponse>;
|
|
189
|
+
DetachAgentTool(request: DetachAgentToolRequest): Promise<DetachAgentToolResponse>;
|
|
190
|
+
}
|
|
191
|
+
export declare const ToolServiceServiceName = "weaveapi.tool.v1.ToolService";
|
|
192
|
+
export declare class ToolServiceClientImpl implements ToolService {
|
|
193
|
+
private readonly rpc;
|
|
194
|
+
private readonly service;
|
|
195
|
+
constructor(rpc: Rpc, opts?: {
|
|
196
|
+
service?: string;
|
|
197
|
+
});
|
|
198
|
+
CreateTool(request: CreateToolRequest): Promise<CreateToolResponse>;
|
|
199
|
+
GetTool(request: GetToolRequest): Promise<GetToolResponse>;
|
|
200
|
+
UpdateTool(request: UpdateToolRequest): Promise<UpdateToolResponse>;
|
|
201
|
+
DeleteTool(request: DeleteToolRequest): Promise<DeleteToolResponse>;
|
|
202
|
+
ListTools(request: ListToolsRequest): Promise<ListToolsResponse>;
|
|
203
|
+
AttachAgentTool(request: AttachAgentToolRequest): Promise<AttachAgentToolResponse>;
|
|
204
|
+
ListAgentTools(request: ListAgentToolsRequest): Promise<ListAgentToolsResponse>;
|
|
205
|
+
DetachAgentTool(request: DetachAgentToolRequest): Promise<DetachAgentToolResponse>;
|
|
206
|
+
}
|
|
207
|
+
export type ToolServiceDefinition = typeof ToolServiceDefinition;
|
|
208
|
+
export declare const ToolServiceDefinition: {
|
|
209
|
+
readonly name: "ToolService";
|
|
210
|
+
readonly fullName: "weaveapi.tool.v1.ToolService";
|
|
211
|
+
readonly methods: {
|
|
212
|
+
readonly createTool: {
|
|
213
|
+
readonly name: "CreateTool";
|
|
214
|
+
readonly requestType: typeof CreateToolRequest;
|
|
215
|
+
readonly requestStream: false;
|
|
216
|
+
readonly responseType: typeof CreateToolResponse;
|
|
217
|
+
readonly responseStream: false;
|
|
218
|
+
readonly options: {
|
|
219
|
+
readonly _unknownFields: {
|
|
220
|
+
readonly 408002: readonly [Uint8Array];
|
|
221
|
+
readonly 578365826: readonly [Uint8Array];
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
readonly getTool: {
|
|
226
|
+
readonly name: "GetTool";
|
|
227
|
+
readonly requestType: typeof GetToolRequest;
|
|
228
|
+
readonly requestStream: false;
|
|
229
|
+
readonly responseType: typeof GetToolResponse;
|
|
230
|
+
readonly responseStream: false;
|
|
231
|
+
readonly options: {
|
|
232
|
+
readonly _unknownFields: {
|
|
233
|
+
readonly 408002: readonly [Uint8Array];
|
|
234
|
+
readonly 578365826: readonly [Uint8Array];
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
readonly updateTool: {
|
|
239
|
+
readonly name: "UpdateTool";
|
|
240
|
+
readonly requestType: typeof UpdateToolRequest;
|
|
241
|
+
readonly requestStream: false;
|
|
242
|
+
readonly responseType: typeof UpdateToolResponse;
|
|
243
|
+
readonly responseStream: false;
|
|
244
|
+
readonly options: {
|
|
245
|
+
readonly _unknownFields: {
|
|
246
|
+
readonly 408002: readonly [Uint8Array];
|
|
247
|
+
readonly 578365826: readonly [Uint8Array];
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
readonly deleteTool: {
|
|
252
|
+
readonly name: "DeleteTool";
|
|
253
|
+
readonly requestType: typeof DeleteToolRequest;
|
|
254
|
+
readonly requestStream: false;
|
|
255
|
+
readonly responseType: typeof DeleteToolResponse;
|
|
256
|
+
readonly responseStream: false;
|
|
257
|
+
readonly options: {
|
|
258
|
+
readonly _unknownFields: {
|
|
259
|
+
readonly 408002: readonly [Uint8Array];
|
|
260
|
+
readonly 578365826: readonly [Uint8Array];
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly listTools: {
|
|
265
|
+
readonly name: "ListTools";
|
|
266
|
+
readonly requestType: typeof ListToolsRequest;
|
|
267
|
+
readonly requestStream: false;
|
|
268
|
+
readonly responseType: typeof ListToolsResponse;
|
|
269
|
+
readonly responseStream: false;
|
|
270
|
+
readonly options: {
|
|
271
|
+
readonly _unknownFields: {
|
|
272
|
+
readonly 408002: readonly [Uint8Array];
|
|
273
|
+
readonly 578365826: readonly [Uint8Array];
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly attachAgentTool: {
|
|
278
|
+
readonly name: "AttachAgentTool";
|
|
279
|
+
readonly requestType: typeof AttachAgentToolRequest;
|
|
280
|
+
readonly requestStream: false;
|
|
281
|
+
readonly responseType: typeof AttachAgentToolResponse;
|
|
282
|
+
readonly responseStream: false;
|
|
283
|
+
readonly options: {
|
|
284
|
+
readonly _unknownFields: {
|
|
285
|
+
readonly 408002: readonly [Uint8Array];
|
|
286
|
+
readonly 578365826: readonly [Uint8Array];
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly listAgentTools: {
|
|
291
|
+
readonly name: "ListAgentTools";
|
|
292
|
+
readonly requestType: typeof ListAgentToolsRequest;
|
|
293
|
+
readonly requestStream: false;
|
|
294
|
+
readonly responseType: typeof ListAgentToolsResponse;
|
|
295
|
+
readonly responseStream: false;
|
|
296
|
+
readonly options: {
|
|
297
|
+
readonly _unknownFields: {
|
|
298
|
+
readonly 408002: readonly [Uint8Array];
|
|
299
|
+
readonly 578365826: readonly [Uint8Array];
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
readonly detachAgentTool: {
|
|
304
|
+
readonly name: "DetachAgentTool";
|
|
305
|
+
readonly requestType: typeof DetachAgentToolRequest;
|
|
306
|
+
readonly requestStream: false;
|
|
307
|
+
readonly responseType: typeof DetachAgentToolResponse;
|
|
308
|
+
readonly responseStream: false;
|
|
309
|
+
readonly options: {
|
|
310
|
+
readonly _unknownFields: {
|
|
311
|
+
readonly 408002: readonly [Uint8Array];
|
|
312
|
+
readonly 578365826: readonly [Uint8Array];
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
export interface ToolRuntimeService {
|
|
319
|
+
ExecuteTool(request: ExecuteToolRequest): Promise<ExecuteToolResponse>;
|
|
320
|
+
}
|
|
321
|
+
export declare const ToolRuntimeServiceServiceName = "weaveapi.tool.v1.ToolRuntimeService";
|
|
322
|
+
export declare class ToolRuntimeServiceClientImpl implements ToolRuntimeService {
|
|
323
|
+
private readonly rpc;
|
|
324
|
+
private readonly service;
|
|
325
|
+
constructor(rpc: Rpc, opts?: {
|
|
326
|
+
service?: string;
|
|
327
|
+
});
|
|
328
|
+
ExecuteTool(request: ExecuteToolRequest): Promise<ExecuteToolResponse>;
|
|
329
|
+
}
|
|
330
|
+
export type ToolRuntimeServiceDefinition = typeof ToolRuntimeServiceDefinition;
|
|
331
|
+
export declare const ToolRuntimeServiceDefinition: {
|
|
332
|
+
readonly name: "ToolRuntimeService";
|
|
333
|
+
readonly fullName: "weaveapi.tool.v1.ToolRuntimeService";
|
|
334
|
+
readonly methods: {
|
|
335
|
+
readonly executeTool: {
|
|
336
|
+
readonly name: "ExecuteTool";
|
|
337
|
+
readonly requestType: typeof ExecuteToolRequest;
|
|
338
|
+
readonly requestStream: false;
|
|
339
|
+
readonly responseType: typeof ExecuteToolResponse;
|
|
340
|
+
readonly responseStream: false;
|
|
341
|
+
readonly options: {
|
|
342
|
+
readonly _unknownFields: {
|
|
343
|
+
readonly 408002: readonly [Uint8Array];
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
interface Rpc {
|
|
350
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
351
|
+
}
|
|
352
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
353
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
354
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
355
|
+
} : Partial<T>;
|
|
356
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
357
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
358
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
359
|
+
} & {
|
|
360
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
361
|
+
};
|
|
362
|
+
export interface MessageFns<T> {
|
|
363
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
364
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
365
|
+
fromJSON(object: any): T;
|
|
366
|
+
toJSON(message: T): unknown;
|
|
367
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
368
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
369
|
+
}
|
|
370
|
+
export {};
|