weave-typescript 0.45.0 → 0.47.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/weaveapi/agent/v1/agent.pb.d.ts +14 -14
- package/dist/weaveapi/agent/v1/agent.pb.js +88 -88
- package/dist/weaveapi/agent/v1/service.pb.d.ts +53 -53
- package/dist/weaveapi/agent/v1/service.pb.js +264 -250
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +71 -0
- package/dist/weaveapi/chat/v1/chat.pb.js +880 -1
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +55 -55
- package/dist/weaveapi/workflow/v1/service.pb.js +282 -268
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +18 -18
- package/dist/weaveapi/workflow/v1/workflow.pb.js +111 -111
- package/dist/weavesql/weavedb/agent_sql.d.ts +83 -83
- package/dist/weavesql/weavedb/agent_sql.js +110 -110
- package/dist/weavesql/weavedb/workflow_sql.d.ts +93 -93
- package/dist/weavesql/weavedb/workflow_sql.js +120 -120
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { AgentDraft, AgentPublishPlan, AgentRun, AgentRunEvent, AgentRunStatus,
|
|
3
|
+
import { AgentDefinition, AgentDefinitionStatus, AgentDraft, AgentPublishPlan, AgentRun, AgentRunEvent, AgentRunStatus, AgentToolDescriptor, AgentVersion } from "./agent.pb";
|
|
4
4
|
export declare const protobufPackage = "weaveapi.agent.v1";
|
|
5
|
-
export interface
|
|
5
|
+
export interface CreateAgentDefinitionRequest {
|
|
6
6
|
organizationId: string;
|
|
7
7
|
slug: string;
|
|
8
8
|
name: string;
|
|
@@ -21,32 +21,32 @@ export interface CreateAgentTemplateRequest {
|
|
|
21
21
|
[key: string]: any;
|
|
22
22
|
} | undefined;
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
25
|
-
|
|
24
|
+
export interface CreateAgentDefinitionResponse {
|
|
25
|
+
definition: AgentDefinition | undefined;
|
|
26
26
|
draft: AgentDraft | undefined;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface GetAgentDefinitionRequest {
|
|
29
29
|
organizationId: string;
|
|
30
|
-
|
|
30
|
+
agentDefinitionId: string;
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
33
|
-
|
|
32
|
+
export interface GetAgentDefinitionResponse {
|
|
33
|
+
definition: AgentDefinition | undefined;
|
|
34
34
|
draft: AgentDraft | undefined;
|
|
35
35
|
latestVersion: AgentVersion | undefined;
|
|
36
36
|
}
|
|
37
|
-
export interface
|
|
37
|
+
export interface ListAgentDefinitionsRequest {
|
|
38
38
|
organizationId: string;
|
|
39
|
-
status:
|
|
39
|
+
status: AgentDefinitionStatus;
|
|
40
40
|
pageSize: number;
|
|
41
41
|
pageToken: string;
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
|
|
43
|
+
export interface ListAgentDefinitionsResponse {
|
|
44
|
+
definitions: AgentDefinition[];
|
|
45
45
|
nextPageToken: string;
|
|
46
46
|
}
|
|
47
47
|
export interface UpdateAgentDraftRequest {
|
|
48
48
|
organizationId: string;
|
|
49
|
-
|
|
49
|
+
agentDefinitionId: string;
|
|
50
50
|
expectedRevision: number;
|
|
51
51
|
name: string;
|
|
52
52
|
description: string;
|
|
@@ -72,23 +72,23 @@ export interface UpdateAgentDraftResponse {
|
|
|
72
72
|
}
|
|
73
73
|
export interface PlanAgentPublishRequest {
|
|
74
74
|
organizationId: string;
|
|
75
|
-
|
|
75
|
+
agentDefinitionId: string;
|
|
76
76
|
draftRevision: number;
|
|
77
77
|
}
|
|
78
78
|
export interface PlanAgentPublishResponse {
|
|
79
79
|
plan: AgentPublishPlan | undefined;
|
|
80
80
|
}
|
|
81
|
-
export interface
|
|
81
|
+
export interface PublishAgentDefinitionRequest {
|
|
82
82
|
organizationId: string;
|
|
83
|
-
|
|
83
|
+
agentDefinitionId: string;
|
|
84
84
|
draftRevision: number;
|
|
85
85
|
}
|
|
86
|
-
export interface
|
|
86
|
+
export interface PublishAgentDefinitionResponse {
|
|
87
87
|
version: AgentVersion | undefined;
|
|
88
88
|
}
|
|
89
89
|
export interface GetAgentVersionRequest {
|
|
90
90
|
organizationId: string;
|
|
91
|
-
|
|
91
|
+
agentDefinitionId: string;
|
|
92
92
|
version: number;
|
|
93
93
|
}
|
|
94
94
|
export interface GetAgentVersionResponse {
|
|
@@ -96,7 +96,7 @@ export interface GetAgentVersionResponse {
|
|
|
96
96
|
}
|
|
97
97
|
export interface ListAgentVersionsRequest {
|
|
98
98
|
organizationId: string;
|
|
99
|
-
|
|
99
|
+
agentDefinitionId: string;
|
|
100
100
|
pageSize: number;
|
|
101
101
|
pageToken: string;
|
|
102
102
|
}
|
|
@@ -106,7 +106,7 @@ export interface ListAgentVersionsResponse {
|
|
|
106
106
|
}
|
|
107
107
|
export interface RunAgentRequest {
|
|
108
108
|
organizationId: string;
|
|
109
|
-
|
|
109
|
+
agentDefinitionId: string;
|
|
110
110
|
version: number;
|
|
111
111
|
chatSessionId: string;
|
|
112
112
|
input: {
|
|
@@ -125,7 +125,7 @@ export interface GetAgentRunResponse {
|
|
|
125
125
|
}
|
|
126
126
|
export interface ListAgentRunsRequest {
|
|
127
127
|
organizationId: string;
|
|
128
|
-
|
|
128
|
+
agentDefinitionId: string;
|
|
129
129
|
status: AgentRunStatus;
|
|
130
130
|
pageSize: number;
|
|
131
131
|
pageToken: string;
|
|
@@ -142,18 +142,18 @@ export interface WatchAgentRunEventsRequest {
|
|
|
142
142
|
export interface WatchAgentRunEventsResponse {
|
|
143
143
|
event: AgentRunEvent | undefined;
|
|
144
144
|
}
|
|
145
|
-
export declare const
|
|
146
|
-
export declare const
|
|
147
|
-
export declare const
|
|
148
|
-
export declare const
|
|
149
|
-
export declare const
|
|
150
|
-
export declare const
|
|
145
|
+
export declare const CreateAgentDefinitionRequest: MessageFns<CreateAgentDefinitionRequest>;
|
|
146
|
+
export declare const CreateAgentDefinitionResponse: MessageFns<CreateAgentDefinitionResponse>;
|
|
147
|
+
export declare const GetAgentDefinitionRequest: MessageFns<GetAgentDefinitionRequest>;
|
|
148
|
+
export declare const GetAgentDefinitionResponse: MessageFns<GetAgentDefinitionResponse>;
|
|
149
|
+
export declare const ListAgentDefinitionsRequest: MessageFns<ListAgentDefinitionsRequest>;
|
|
150
|
+
export declare const ListAgentDefinitionsResponse: MessageFns<ListAgentDefinitionsResponse>;
|
|
151
151
|
export declare const UpdateAgentDraftRequest: MessageFns<UpdateAgentDraftRequest>;
|
|
152
152
|
export declare const UpdateAgentDraftResponse: MessageFns<UpdateAgentDraftResponse>;
|
|
153
153
|
export declare const PlanAgentPublishRequest: MessageFns<PlanAgentPublishRequest>;
|
|
154
154
|
export declare const PlanAgentPublishResponse: MessageFns<PlanAgentPublishResponse>;
|
|
155
|
-
export declare const
|
|
156
|
-
export declare const
|
|
155
|
+
export declare const PublishAgentDefinitionRequest: MessageFns<PublishAgentDefinitionRequest>;
|
|
156
|
+
export declare const PublishAgentDefinitionResponse: MessageFns<PublishAgentDefinitionResponse>;
|
|
157
157
|
export declare const GetAgentVersionRequest: MessageFns<GetAgentVersionRequest>;
|
|
158
158
|
export declare const GetAgentVersionResponse: MessageFns<GetAgentVersionResponse>;
|
|
159
159
|
export declare const ListAgentVersionsRequest: MessageFns<ListAgentVersionsRequest>;
|
|
@@ -167,12 +167,12 @@ export declare const ListAgentRunsResponse: MessageFns<ListAgentRunsResponse>;
|
|
|
167
167
|
export declare const WatchAgentRunEventsRequest: MessageFns<WatchAgentRunEventsRequest>;
|
|
168
168
|
export declare const WatchAgentRunEventsResponse: MessageFns<WatchAgentRunEventsResponse>;
|
|
169
169
|
export interface AgentService {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
CreateAgentDefinition(request: CreateAgentDefinitionRequest): Promise<CreateAgentDefinitionResponse>;
|
|
171
|
+
GetAgentDefinition(request: GetAgentDefinitionRequest): Promise<GetAgentDefinitionResponse>;
|
|
172
|
+
ListAgentDefinitions(request: ListAgentDefinitionsRequest): Promise<ListAgentDefinitionsResponse>;
|
|
173
173
|
UpdateAgentDraft(request: UpdateAgentDraftRequest): Promise<UpdateAgentDraftResponse>;
|
|
174
174
|
PlanAgentPublish(request: PlanAgentPublishRequest): Promise<PlanAgentPublishResponse>;
|
|
175
|
-
|
|
175
|
+
PublishAgentDefinition(request: PublishAgentDefinitionRequest): Promise<PublishAgentDefinitionResponse>;
|
|
176
176
|
GetAgentVersion(request: GetAgentVersionRequest): Promise<GetAgentVersionResponse>;
|
|
177
177
|
ListAgentVersions(request: ListAgentVersionsRequest): Promise<ListAgentVersionsResponse>;
|
|
178
178
|
RunAgent(request: RunAgentRequest): Promise<RunAgentResponse>;
|
|
@@ -187,12 +187,12 @@ export declare class AgentServiceClientImpl implements AgentService {
|
|
|
187
187
|
constructor(rpc: Rpc, opts?: {
|
|
188
188
|
service?: string;
|
|
189
189
|
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
CreateAgentDefinition(request: CreateAgentDefinitionRequest): Promise<CreateAgentDefinitionResponse>;
|
|
191
|
+
GetAgentDefinition(request: GetAgentDefinitionRequest): Promise<GetAgentDefinitionResponse>;
|
|
192
|
+
ListAgentDefinitions(request: ListAgentDefinitionsRequest): Promise<ListAgentDefinitionsResponse>;
|
|
193
193
|
UpdateAgentDraft(request: UpdateAgentDraftRequest): Promise<UpdateAgentDraftResponse>;
|
|
194
194
|
PlanAgentPublish(request: PlanAgentPublishRequest): Promise<PlanAgentPublishResponse>;
|
|
195
|
-
|
|
195
|
+
PublishAgentDefinition(request: PublishAgentDefinitionRequest): Promise<PublishAgentDefinitionResponse>;
|
|
196
196
|
GetAgentVersion(request: GetAgentVersionRequest): Promise<GetAgentVersionResponse>;
|
|
197
197
|
ListAgentVersions(request: ListAgentVersionsRequest): Promise<ListAgentVersionsResponse>;
|
|
198
198
|
RunAgent(request: RunAgentRequest): Promise<RunAgentResponse>;
|
|
@@ -205,11 +205,11 @@ export declare const AgentServiceDefinition: {
|
|
|
205
205
|
readonly name: "AgentService";
|
|
206
206
|
readonly fullName: "weaveapi.agent.v1.AgentService";
|
|
207
207
|
readonly methods: {
|
|
208
|
-
readonly
|
|
209
|
-
readonly name: "
|
|
210
|
-
readonly requestType: typeof
|
|
208
|
+
readonly createAgentDefinition: {
|
|
209
|
+
readonly name: "CreateAgentDefinition";
|
|
210
|
+
readonly requestType: typeof CreateAgentDefinitionRequest;
|
|
211
211
|
readonly requestStream: false;
|
|
212
|
-
readonly responseType: typeof
|
|
212
|
+
readonly responseType: typeof CreateAgentDefinitionResponse;
|
|
213
213
|
readonly responseStream: false;
|
|
214
214
|
readonly options: {
|
|
215
215
|
readonly _unknownFields: {
|
|
@@ -217,11 +217,11 @@ export declare const AgentServiceDefinition: {
|
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
|
-
readonly
|
|
221
|
-
readonly name: "
|
|
222
|
-
readonly requestType: typeof
|
|
220
|
+
readonly getAgentDefinition: {
|
|
221
|
+
readonly name: "GetAgentDefinition";
|
|
222
|
+
readonly requestType: typeof GetAgentDefinitionRequest;
|
|
223
223
|
readonly requestStream: false;
|
|
224
|
-
readonly responseType: typeof
|
|
224
|
+
readonly responseType: typeof GetAgentDefinitionResponse;
|
|
225
225
|
readonly responseStream: false;
|
|
226
226
|
readonly options: {
|
|
227
227
|
readonly _unknownFields: {
|
|
@@ -229,11 +229,11 @@ export declare const AgentServiceDefinition: {
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
|
-
readonly
|
|
233
|
-
readonly name: "
|
|
234
|
-
readonly requestType: typeof
|
|
232
|
+
readonly listAgentDefinitions: {
|
|
233
|
+
readonly name: "ListAgentDefinitions";
|
|
234
|
+
readonly requestType: typeof ListAgentDefinitionsRequest;
|
|
235
235
|
readonly requestStream: false;
|
|
236
|
-
readonly responseType: typeof
|
|
236
|
+
readonly responseType: typeof ListAgentDefinitionsResponse;
|
|
237
237
|
readonly responseStream: false;
|
|
238
238
|
readonly options: {
|
|
239
239
|
readonly _unknownFields: {
|
|
@@ -265,11 +265,11 @@ export declare const AgentServiceDefinition: {
|
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
|
-
readonly
|
|
269
|
-
readonly name: "
|
|
270
|
-
readonly requestType: typeof
|
|
268
|
+
readonly publishAgentDefinition: {
|
|
269
|
+
readonly name: "PublishAgentDefinition";
|
|
270
|
+
readonly requestType: typeof PublishAgentDefinitionRequest;
|
|
271
271
|
readonly requestStream: false;
|
|
272
|
-
readonly responseType: typeof
|
|
272
|
+
readonly responseType: typeof PublishAgentDefinitionResponse;
|
|
273
273
|
readonly responseStream: false;
|
|
274
274
|
readonly options: {
|
|
275
275
|
readonly _unknownFields: {
|