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.
@@ -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, AgentTemplate, AgentTemplateStatus, AgentToolDescriptor, AgentVersion } from "./agent.pb";
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 CreateAgentTemplateRequest {
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 CreateAgentTemplateResponse {
25
- template: AgentTemplate | undefined;
24
+ export interface CreateAgentDefinitionResponse {
25
+ definition: AgentDefinition | undefined;
26
26
  draft: AgentDraft | undefined;
27
27
  }
28
- export interface GetAgentTemplateRequest {
28
+ export interface GetAgentDefinitionRequest {
29
29
  organizationId: string;
30
- agentTemplateId: string;
30
+ agentDefinitionId: string;
31
31
  }
32
- export interface GetAgentTemplateResponse {
33
- template: AgentTemplate | undefined;
32
+ export interface GetAgentDefinitionResponse {
33
+ definition: AgentDefinition | undefined;
34
34
  draft: AgentDraft | undefined;
35
35
  latestVersion: AgentVersion | undefined;
36
36
  }
37
- export interface ListAgentTemplatesRequest {
37
+ export interface ListAgentDefinitionsRequest {
38
38
  organizationId: string;
39
- status: AgentTemplateStatus;
39
+ status: AgentDefinitionStatus;
40
40
  pageSize: number;
41
41
  pageToken: string;
42
42
  }
43
- export interface ListAgentTemplatesResponse {
44
- templates: AgentTemplate[];
43
+ export interface ListAgentDefinitionsResponse {
44
+ definitions: AgentDefinition[];
45
45
  nextPageToken: string;
46
46
  }
47
47
  export interface UpdateAgentDraftRequest {
48
48
  organizationId: string;
49
- agentTemplateId: string;
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
- agentTemplateId: string;
75
+ agentDefinitionId: string;
76
76
  draftRevision: number;
77
77
  }
78
78
  export interface PlanAgentPublishResponse {
79
79
  plan: AgentPublishPlan | undefined;
80
80
  }
81
- export interface PublishAgentTemplateRequest {
81
+ export interface PublishAgentDefinitionRequest {
82
82
  organizationId: string;
83
- agentTemplateId: string;
83
+ agentDefinitionId: string;
84
84
  draftRevision: number;
85
85
  }
86
- export interface PublishAgentTemplateResponse {
86
+ export interface PublishAgentDefinitionResponse {
87
87
  version: AgentVersion | undefined;
88
88
  }
89
89
  export interface GetAgentVersionRequest {
90
90
  organizationId: string;
91
- agentTemplateId: string;
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
- agentTemplateId: string;
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
- agentTemplateId: string;
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
- agentTemplateId: string;
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 CreateAgentTemplateRequest: MessageFns<CreateAgentTemplateRequest>;
146
- export declare const CreateAgentTemplateResponse: MessageFns<CreateAgentTemplateResponse>;
147
- export declare const GetAgentTemplateRequest: MessageFns<GetAgentTemplateRequest>;
148
- export declare const GetAgentTemplateResponse: MessageFns<GetAgentTemplateResponse>;
149
- export declare const ListAgentTemplatesRequest: MessageFns<ListAgentTemplatesRequest>;
150
- export declare const ListAgentTemplatesResponse: MessageFns<ListAgentTemplatesResponse>;
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 PublishAgentTemplateRequest: MessageFns<PublishAgentTemplateRequest>;
156
- export declare const PublishAgentTemplateResponse: MessageFns<PublishAgentTemplateResponse>;
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
- CreateAgentTemplate(request: CreateAgentTemplateRequest): Promise<CreateAgentTemplateResponse>;
171
- GetAgentTemplate(request: GetAgentTemplateRequest): Promise<GetAgentTemplateResponse>;
172
- ListAgentTemplates(request: ListAgentTemplatesRequest): Promise<ListAgentTemplatesResponse>;
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
- PublishAgentTemplate(request: PublishAgentTemplateRequest): Promise<PublishAgentTemplateResponse>;
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
- CreateAgentTemplate(request: CreateAgentTemplateRequest): Promise<CreateAgentTemplateResponse>;
191
- GetAgentTemplate(request: GetAgentTemplateRequest): Promise<GetAgentTemplateResponse>;
192
- ListAgentTemplates(request: ListAgentTemplatesRequest): Promise<ListAgentTemplatesResponse>;
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
- PublishAgentTemplate(request: PublishAgentTemplateRequest): Promise<PublishAgentTemplateResponse>;
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 createAgentTemplate: {
209
- readonly name: "CreateAgentTemplate";
210
- readonly requestType: typeof CreateAgentTemplateRequest;
208
+ readonly createAgentDefinition: {
209
+ readonly name: "CreateAgentDefinition";
210
+ readonly requestType: typeof CreateAgentDefinitionRequest;
211
211
  readonly requestStream: false;
212
- readonly responseType: typeof CreateAgentTemplateResponse;
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 getAgentTemplate: {
221
- readonly name: "GetAgentTemplate";
222
- readonly requestType: typeof GetAgentTemplateRequest;
220
+ readonly getAgentDefinition: {
221
+ readonly name: "GetAgentDefinition";
222
+ readonly requestType: typeof GetAgentDefinitionRequest;
223
223
  readonly requestStream: false;
224
- readonly responseType: typeof GetAgentTemplateResponse;
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 listAgentTemplates: {
233
- readonly name: "ListAgentTemplates";
234
- readonly requestType: typeof ListAgentTemplatesRequest;
232
+ readonly listAgentDefinitions: {
233
+ readonly name: "ListAgentDefinitions";
234
+ readonly requestType: typeof ListAgentDefinitionsRequest;
235
235
  readonly requestStream: false;
236
- readonly responseType: typeof ListAgentTemplatesResponse;
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 publishAgentTemplate: {
269
- readonly name: "PublishAgentTemplate";
270
- readonly requestType: typeof PublishAgentTemplateRequest;
268
+ readonly publishAgentDefinition: {
269
+ readonly name: "PublishAgentDefinition";
270
+ readonly requestType: typeof PublishAgentDefinitionRequest;
271
271
  readonly requestStream: false;
272
- readonly responseType: typeof PublishAgentTemplateResponse;
272
+ readonly responseType: typeof PublishAgentDefinitionResponse;
273
273
  readonly responseStream: false;
274
274
  readonly options: {
275
275
  readonly _unknownFields: {