@alis-build/alis-open-agent-v2 2.16.0 → 2.17.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,7 +1,31 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/open/agent/v2/a2a.proto (package alis.open.agent.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // A gRPC binding of the Agent2Agent (A2A) protocol for sending messages to
6
+ // an agent and tracking the tasks it performs, shaped to follow AIP-127
7
+ // where appropriate.
8
+ //
9
+ // `A2AService` works with four nouns:
10
+ //
11
+ // - Messages: sent with `SendMessage` or `SendStreamingMessage`. They are
12
+ // not stored resources.
13
+ // - `Task` (`tasks/{task_id}`): the unit of work, with a status, output
14
+ // artifacts, and message history. Read with `GetTask` and `ListTasks`,
15
+ // cancelled with `CancelTask`, and streamed with `TaskSubscription`.
16
+ // - `TaskPushNotificationConfig`
17
+ // (`tasks/{task_id}/pushNotificationConfigs/{config_id}`): a webhook that
18
+ // the agent notifies of updates to one task.
19
+ // - `AgentCard`: the agent's self-description (skills, capabilities,
20
+ // security requirements), read with `GetAgentCard`.
21
+ //
22
+ // This package defines the same service and messages as
23
+ // `alis.open.agent.v1` with two differences: `Task` has no `name` field
24
+ // (requests still address a task as `tasks/{task_id}`), and `Part` cannot
25
+ // carry an arbitrary `google.protobuf.Any` message. The
26
+ // `alis.a2a.extension` packages build on the vendored `lf.a2a.v1` contract
27
+ // rather than on this package.
28
+
5
29
  import { enumDesc, fileDesc, messageDesc, serviceDesc, tsEnum } from "@bufbuild/protobuf/codegenv2";
6
30
  import { file_google_api_annotations } from "@alis-build/google-api/google/api/annotations_pb.js";
7
31
  import { file_google_api_client } from "@alis-build/google-api/google/api/client_pb.js";
@@ -350,6 +374,8 @@ export const TaskStateSchema = /*@__PURE__*/
350
374
  enumDesc(file_alis_open_agent_v2_a2a, 0);
351
375
 
352
376
  /**
377
+ * The set of states a Task can be in.
378
+ *
353
379
  * @generated from enum alis.open.agent.v2.TaskState
354
380
  */
355
381
  export const TaskState = /*@__PURE__*/
@@ -362,12 +388,25 @@ export const RoleSchema = /*@__PURE__*/
362
388
  enumDesc(file_alis_open_agent_v2_a2a, 1);
363
389
 
364
390
  /**
391
+ * Identifies the sender of a message.
392
+ *
365
393
  * @generated from enum alis.open.agent.v2.Role
366
394
  */
367
395
  export const Role = /*@__PURE__*/
368
396
  tsEnum(RoleSchema);
369
397
 
370
398
  /**
399
+ * A2AService defines the gRPC version of the A2A protocol. This has a slightly
400
+ * different shape than the JSONRPC version to better conform to AIP-127,
401
+ * where appropriate. The nouns are AgentCard, Message, Task and
402
+ * TaskPushNotificationConfig.
403
+ * - Messages are not a standard resource so there is no get/delete/update/list
404
+ * interface, only a send and stream custom methods.
405
+ * - Tasks have a get interface and custom cancel and subscribe methods.
406
+ * - TaskPushNotificationConfig are a resource whose parent is a task.
407
+ * They have get, list, create and delete methods.
408
+ * - AgentCard is a static resource with only a get method.
409
+ *
371
410
  * @generated from service alis.open.agent.v2.A2AService
372
411
  */
373
412
  export const A2AService = /*@__PURE__*/
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  },
26
26
  "type": "module",
27
27
  "types": "./index.d.ts",
28
- "version": "2.16.0"
28
+ "version": "2.17.0"
29
29
  }