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
|
@@ -1,96 +1,38 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { GenerateConfig } from "../../inference/v1/generate.pb";
|
|
3
|
+
import { Model } from "../../inference/v1/model.pb";
|
|
4
|
+
import { AgentTool } from "../../tool/v1/tool.pb";
|
|
2
5
|
export declare const protobufPackage = "weaveapi.agent.v1";
|
|
3
|
-
export declare enum
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
export declare enum IncludeContents {
|
|
7
|
+
INCLUDE_CONTENTS_UNSPECIFIED = 0,
|
|
8
|
+
INCLUDE_CONTENTS_DEFAULT = 1,
|
|
9
|
+
INCLUDE_CONTENTS_NONE = 2,
|
|
7
10
|
UNRECOGNIZED = -1
|
|
8
11
|
}
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
AGENT_TOOL_DESCRIPTOR_KIND_WEAVE_SERVICE = 1,
|
|
14
|
-
AGENT_TOOL_DESCRIPTOR_KIND_AGENT = 2,
|
|
15
|
-
AGENT_TOOL_DESCRIPTOR_KIND_WORKFLOW = 3,
|
|
16
|
-
AGENT_TOOL_DESCRIPTOR_KIND_EXTERNAL = 4,
|
|
17
|
-
AGENT_TOOL_DESCRIPTOR_KIND_MCP = 5,
|
|
18
|
-
UNRECOGNIZED = -1
|
|
12
|
+
export declare function includeContentsFromJSON(object: any): IncludeContents;
|
|
13
|
+
export declare function includeContentsToJSON(object: IncludeContents): string;
|
|
14
|
+
export interface CreateAgentRequest {
|
|
15
|
+
agent: AgentInput | undefined;
|
|
19
16
|
}
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
export declare enum AgentToolApprovalMode {
|
|
23
|
-
AGENT_TOOL_APPROVAL_MODE_UNSPECIFIED = 0,
|
|
24
|
-
AGENT_TOOL_APPROVAL_MODE_NEVER = 1,
|
|
25
|
-
AGENT_TOOL_APPROVAL_MODE_MUTATION = 2,
|
|
26
|
-
AGENT_TOOL_APPROVAL_MODE_ALWAYS = 3,
|
|
27
|
-
UNRECOGNIZED = -1
|
|
17
|
+
export interface CreateAgentResponse {
|
|
18
|
+
agentId: string;
|
|
28
19
|
}
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
export declare enum AgentRunStatus {
|
|
32
|
-
AGENT_RUN_STATUS_UNSPECIFIED = 0,
|
|
33
|
-
AGENT_RUN_STATUS_PENDING = 1,
|
|
34
|
-
AGENT_RUN_STATUS_RUNNING = 2,
|
|
35
|
-
AGENT_RUN_STATUS_WAITING = 3,
|
|
36
|
-
AGENT_RUN_STATUS_COMPLETED = 4,
|
|
37
|
-
AGENT_RUN_STATUS_FAILED = 5,
|
|
38
|
-
AGENT_RUN_STATUS_CANCELED = 6,
|
|
39
|
-
UNRECOGNIZED = -1
|
|
20
|
+
export interface GetAgentRequest {
|
|
21
|
+
agentId: string;
|
|
40
22
|
}
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
export declare enum AgentRunEventKind {
|
|
44
|
-
AGENT_RUN_EVENT_KIND_UNSPECIFIED = 0,
|
|
45
|
-
AGENT_RUN_EVENT_KIND_STARTED = 1,
|
|
46
|
-
AGENT_RUN_EVENT_KIND_MODEL_REQUESTED = 2,
|
|
47
|
-
AGENT_RUN_EVENT_KIND_MODEL_RESPONDED = 3,
|
|
48
|
-
AGENT_RUN_EVENT_KIND_TOOL_CALL_PROPOSED = 4,
|
|
49
|
-
AGENT_RUN_EVENT_KIND_TOOL_CALL_STARTED = 5,
|
|
50
|
-
AGENT_RUN_EVENT_KIND_TOOL_CALL_COMPLETED = 6,
|
|
51
|
-
AGENT_RUN_EVENT_KIND_TOOL_CALL_FAILED = 7,
|
|
52
|
-
AGENT_RUN_EVENT_KIND_WAITING = 8,
|
|
53
|
-
AGENT_RUN_EVENT_KIND_COMPLETED = 9,
|
|
54
|
-
AGENT_RUN_EVENT_KIND_FAILED = 10,
|
|
55
|
-
AGENT_RUN_EVENT_KIND_CANCELED = 11,
|
|
56
|
-
UNRECOGNIZED = -1
|
|
23
|
+
export interface GetAgentResponse {
|
|
24
|
+
agent: Agent | undefined;
|
|
57
25
|
}
|
|
58
|
-
export
|
|
59
|
-
|
|
60
|
-
export declare enum AgentDraftEventKind {
|
|
61
|
-
AGENT_DRAFT_EVENT_KIND_UNSPECIFIED = 0,
|
|
62
|
-
AGENT_DRAFT_EVENT_KIND_PATCH_APPLIED = 1,
|
|
63
|
-
AGENT_DRAFT_EVENT_KIND_PATCH_REJECTED = 2,
|
|
64
|
-
UNRECOGNIZED = -1
|
|
65
|
-
}
|
|
66
|
-
export declare function agentDraftEventKindFromJSON(object: any): AgentDraftEventKind;
|
|
67
|
-
export declare function agentDraftEventKindToJSON(object: AgentDraftEventKind): string;
|
|
68
|
-
export interface AgentDefinition {
|
|
69
|
-
id: string;
|
|
70
|
-
organizationId: string;
|
|
26
|
+
export interface UpdateAgentRequest {
|
|
27
|
+
agentId: string;
|
|
71
28
|
slug: string;
|
|
72
29
|
name: string;
|
|
73
30
|
description: string;
|
|
74
|
-
status: AgentDefinitionStatus;
|
|
75
|
-
createdByUserId: string;
|
|
76
|
-
draftRevision: number;
|
|
77
|
-
latestVersionId: string;
|
|
78
|
-
latestVersion: number;
|
|
79
|
-
createdAt: Date | undefined;
|
|
80
|
-
updatedAt: Date | undefined;
|
|
81
|
-
}
|
|
82
|
-
export interface AgentDraft {
|
|
83
|
-
id: string;
|
|
84
|
-
definitionId: string;
|
|
85
|
-
organizationId: string;
|
|
86
|
-
baseVersionId: string;
|
|
87
|
-
revision: number;
|
|
88
|
-
name: string;
|
|
89
|
-
description: string;
|
|
90
31
|
instructions: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
32
|
+
defaultModelId: string;
|
|
33
|
+
defaultGenerateConfig: GenerateConfig | undefined;
|
|
34
|
+
includeContents: IncludeContents;
|
|
35
|
+
outputKey: string;
|
|
94
36
|
inputSchema: {
|
|
95
37
|
[key: string]: any;
|
|
96
38
|
} | undefined;
|
|
@@ -100,54 +42,26 @@ export interface AgentDraft {
|
|
|
100
42
|
metadata: {
|
|
101
43
|
[key: string]: any;
|
|
102
44
|
} | undefined;
|
|
103
|
-
updatedByUserId: string;
|
|
104
|
-
createdAt: Date | undefined;
|
|
105
|
-
updatedAt: Date | undefined;
|
|
106
45
|
}
|
|
107
|
-
export interface
|
|
108
|
-
|
|
109
|
-
definitionId: string;
|
|
110
|
-
organizationId: string;
|
|
111
|
-
revision: number;
|
|
112
|
-
patch: {
|
|
113
|
-
[key: string]: any;
|
|
114
|
-
} | undefined;
|
|
115
|
-
createdByUserId: string;
|
|
116
|
-
createdAt: Date | undefined;
|
|
46
|
+
export interface UpdateAgentResponse {
|
|
47
|
+
agent: Agent | undefined;
|
|
117
48
|
}
|
|
118
|
-
export interface
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
reason: string;
|
|
49
|
+
export interface ListAgentsRequest {
|
|
50
|
+
pageSize: number;
|
|
51
|
+
pageOffset: number;
|
|
122
52
|
}
|
|
123
|
-
export interface
|
|
124
|
-
|
|
125
|
-
organizationId: string;
|
|
126
|
-
definitionId: string;
|
|
127
|
-
draftId: string;
|
|
128
|
-
sequence: number;
|
|
129
|
-
kind: AgentDraftEventKind;
|
|
130
|
-
baseRevision: number;
|
|
131
|
-
resultRevision: number;
|
|
132
|
-
changedFields: string[];
|
|
133
|
-
source: string;
|
|
134
|
-
clientRequestId: string;
|
|
135
|
-
conflict: AgentDraftPatchConflict | undefined;
|
|
136
|
-
createdByUserId: string;
|
|
137
|
-
createdAt: Date | undefined;
|
|
53
|
+
export interface ListAgentsResponse {
|
|
54
|
+
agents: Agent[];
|
|
138
55
|
}
|
|
139
|
-
export interface
|
|
140
|
-
id: string;
|
|
141
|
-
definitionId: string;
|
|
142
|
-
organizationId: string;
|
|
143
|
-
version: number;
|
|
144
|
-
sourceDraftRevision: number;
|
|
56
|
+
export interface AgentInput {
|
|
145
57
|
name: string;
|
|
58
|
+
slug: string;
|
|
146
59
|
description: string;
|
|
147
60
|
instructions: string;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
61
|
+
defaultModelId: string;
|
|
62
|
+
defaultGenerateConfig: GenerateConfig | undefined;
|
|
63
|
+
includeContents: IncludeContents;
|
|
64
|
+
outputKey: string;
|
|
151
65
|
inputSchema: {
|
|
152
66
|
[key: string]: any;
|
|
153
67
|
} | undefined;
|
|
@@ -157,84 +71,119 @@ export interface AgentVersion {
|
|
|
157
71
|
metadata: {
|
|
158
72
|
[key: string]: any;
|
|
159
73
|
} | undefined;
|
|
160
|
-
|
|
161
|
-
publishedAt: Date | undefined;
|
|
74
|
+
tools: AgentTool[];
|
|
162
75
|
}
|
|
163
|
-
export interface
|
|
76
|
+
export interface Agent {
|
|
77
|
+
id: string;
|
|
78
|
+
slug: string;
|
|
164
79
|
name: string;
|
|
165
|
-
displayName: string;
|
|
166
80
|
description: string;
|
|
167
|
-
|
|
168
|
-
|
|
81
|
+
instructions: string;
|
|
82
|
+
defaultModel: Model | undefined;
|
|
83
|
+
defaultGenerateConfig: GenerateConfig | undefined;
|
|
84
|
+
includeContents: IncludeContents;
|
|
85
|
+
outputKey: string;
|
|
169
86
|
inputSchema: {
|
|
170
87
|
[key: string]: any;
|
|
171
88
|
} | undefined;
|
|
172
89
|
outputSchema: {
|
|
173
90
|
[key: string]: any;
|
|
174
91
|
} | undefined;
|
|
175
|
-
|
|
176
|
-
[key: string]: any;
|
|
177
|
-
} | undefined;
|
|
178
|
-
}
|
|
179
|
-
export interface AgentPublishPlan {
|
|
180
|
-
definitionId: string;
|
|
181
|
-
draftRevision: number;
|
|
182
|
-
publishable: boolean;
|
|
183
|
-
issues: AgentPublishPlanIssue[];
|
|
184
|
-
compiledPreview: {
|
|
185
|
-
[key: string]: any;
|
|
186
|
-
} | undefined;
|
|
187
|
-
}
|
|
188
|
-
export interface AgentPublishPlanIssue {
|
|
189
|
-
code: string;
|
|
190
|
-
message: string;
|
|
191
|
-
path: string;
|
|
192
|
-
}
|
|
193
|
-
export interface AgentRun {
|
|
194
|
-
id: string;
|
|
195
|
-
organizationId: string;
|
|
196
|
-
agentDefinitionId: string;
|
|
197
|
-
agentVersionId: string;
|
|
198
|
-
status: AgentRunStatus;
|
|
199
|
-
createdByUserId: string;
|
|
200
|
-
chatSessionId: string;
|
|
201
|
-
workflowRunId: string;
|
|
202
|
-
workflowStepRunId: string;
|
|
203
|
-
input: {
|
|
204
|
-
[key: string]: any;
|
|
205
|
-
} | undefined;
|
|
206
|
-
output: {
|
|
207
|
-
[key: string]: any;
|
|
208
|
-
} | undefined;
|
|
209
|
-
errorCode: string;
|
|
210
|
-
safeErrorMessage: string;
|
|
211
|
-
createdAt: Date | undefined;
|
|
212
|
-
startedAt: Date | undefined;
|
|
213
|
-
finishedAt: Date | undefined;
|
|
214
|
-
}
|
|
215
|
-
export interface AgentRunEvent {
|
|
216
|
-
id: string;
|
|
217
|
-
organizationId: string;
|
|
218
|
-
agentRunId: string;
|
|
219
|
-
sequence: number;
|
|
220
|
-
kind: AgentRunEventKind;
|
|
221
|
-
message: string;
|
|
222
|
-
payload: {
|
|
92
|
+
metadata: {
|
|
223
93
|
[key: string]: any;
|
|
224
94
|
} | undefined;
|
|
225
|
-
|
|
95
|
+
tools: AgentTool[];
|
|
96
|
+
}
|
|
97
|
+
export declare const CreateAgentRequest: MessageFns<CreateAgentRequest>;
|
|
98
|
+
export declare const CreateAgentResponse: MessageFns<CreateAgentResponse>;
|
|
99
|
+
export declare const GetAgentRequest: MessageFns<GetAgentRequest>;
|
|
100
|
+
export declare const GetAgentResponse: MessageFns<GetAgentResponse>;
|
|
101
|
+
export declare const UpdateAgentRequest: MessageFns<UpdateAgentRequest>;
|
|
102
|
+
export declare const UpdateAgentResponse: MessageFns<UpdateAgentResponse>;
|
|
103
|
+
export declare const ListAgentsRequest: MessageFns<ListAgentsRequest>;
|
|
104
|
+
export declare const ListAgentsResponse: MessageFns<ListAgentsResponse>;
|
|
105
|
+
export declare const AgentInput: MessageFns<AgentInput>;
|
|
106
|
+
export declare const Agent: MessageFns<Agent>;
|
|
107
|
+
export interface AgentService {
|
|
108
|
+
CreateAgent(request: CreateAgentRequest): Promise<CreateAgentResponse>;
|
|
109
|
+
GetAgent(request: GetAgentRequest): Promise<GetAgentResponse>;
|
|
110
|
+
UpdateAgent(request: UpdateAgentRequest): Promise<UpdateAgentResponse>;
|
|
111
|
+
ListAgents(request: ListAgentsRequest): Promise<ListAgentsResponse>;
|
|
112
|
+
}
|
|
113
|
+
export declare const AgentServiceServiceName = "weaveapi.agent.v1.AgentService";
|
|
114
|
+
export declare class AgentServiceClientImpl implements AgentService {
|
|
115
|
+
private readonly rpc;
|
|
116
|
+
private readonly service;
|
|
117
|
+
constructor(rpc: Rpc, opts?: {
|
|
118
|
+
service?: string;
|
|
119
|
+
});
|
|
120
|
+
CreateAgent(request: CreateAgentRequest): Promise<CreateAgentResponse>;
|
|
121
|
+
GetAgent(request: GetAgentRequest): Promise<GetAgentResponse>;
|
|
122
|
+
UpdateAgent(request: UpdateAgentRequest): Promise<UpdateAgentResponse>;
|
|
123
|
+
ListAgents(request: ListAgentsRequest): Promise<ListAgentsResponse>;
|
|
124
|
+
}
|
|
125
|
+
export type AgentServiceDefinition = typeof AgentServiceDefinition;
|
|
126
|
+
export declare const AgentServiceDefinition: {
|
|
127
|
+
readonly name: "AgentService";
|
|
128
|
+
readonly fullName: "weaveapi.agent.v1.AgentService";
|
|
129
|
+
readonly methods: {
|
|
130
|
+
readonly createAgent: {
|
|
131
|
+
readonly name: "CreateAgent";
|
|
132
|
+
readonly requestType: typeof CreateAgentRequest;
|
|
133
|
+
readonly requestStream: false;
|
|
134
|
+
readonly responseType: typeof CreateAgentResponse;
|
|
135
|
+
readonly responseStream: false;
|
|
136
|
+
readonly options: {
|
|
137
|
+
readonly _unknownFields: {
|
|
138
|
+
readonly 408002: readonly [Uint8Array];
|
|
139
|
+
readonly 578365826: readonly [Uint8Array];
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
readonly getAgent: {
|
|
144
|
+
readonly name: "GetAgent";
|
|
145
|
+
readonly requestType: typeof GetAgentRequest;
|
|
146
|
+
readonly requestStream: false;
|
|
147
|
+
readonly responseType: typeof GetAgentResponse;
|
|
148
|
+
readonly responseStream: false;
|
|
149
|
+
readonly options: {
|
|
150
|
+
readonly _unknownFields: {
|
|
151
|
+
readonly 408002: readonly [Uint8Array];
|
|
152
|
+
readonly 578365826: readonly [Uint8Array];
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly updateAgent: {
|
|
157
|
+
readonly name: "UpdateAgent";
|
|
158
|
+
readonly requestType: typeof UpdateAgentRequest;
|
|
159
|
+
readonly requestStream: false;
|
|
160
|
+
readonly responseType: typeof UpdateAgentResponse;
|
|
161
|
+
readonly responseStream: false;
|
|
162
|
+
readonly options: {
|
|
163
|
+
readonly _unknownFields: {
|
|
164
|
+
readonly 408002: readonly [Uint8Array];
|
|
165
|
+
readonly 578365826: readonly [Uint8Array];
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly listAgents: {
|
|
170
|
+
readonly name: "ListAgents";
|
|
171
|
+
readonly requestType: typeof ListAgentsRequest;
|
|
172
|
+
readonly requestStream: false;
|
|
173
|
+
readonly responseType: typeof ListAgentsResponse;
|
|
174
|
+
readonly responseStream: false;
|
|
175
|
+
readonly options: {
|
|
176
|
+
readonly _unknownFields: {
|
|
177
|
+
readonly 408002: readonly [Uint8Array];
|
|
178
|
+
readonly 578365826: readonly [Uint8Array];
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
interface Rpc {
|
|
185
|
+
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
226
186
|
}
|
|
227
|
-
export declare const AgentDefinition: MessageFns<AgentDefinition>;
|
|
228
|
-
export declare const AgentDraft: MessageFns<AgentDraft>;
|
|
229
|
-
export declare const AgentDraftPatch: MessageFns<AgentDraftPatch>;
|
|
230
|
-
export declare const AgentDraftPatchConflict: MessageFns<AgentDraftPatchConflict>;
|
|
231
|
-
export declare const AgentDraftEvent: MessageFns<AgentDraftEvent>;
|
|
232
|
-
export declare const AgentVersion: MessageFns<AgentVersion>;
|
|
233
|
-
export declare const AgentToolDescriptor: MessageFns<AgentToolDescriptor>;
|
|
234
|
-
export declare const AgentPublishPlan: MessageFns<AgentPublishPlan>;
|
|
235
|
-
export declare const AgentPublishPlanIssue: MessageFns<AgentPublishPlanIssue>;
|
|
236
|
-
export declare const AgentRun: MessageFns<AgentRun>;
|
|
237
|
-
export declare const AgentRunEvent: MessageFns<AgentRunEvent>;
|
|
238
187
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
239
188
|
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 {} ? {
|
|
240
189
|
[K in keyof T]?: DeepPartial<T[K]>;
|