-
Notifications
You must be signed in to change notification settings - Fork 166
Add new a2a
call task to the specification and schema
#1114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
048a571
f9be8ea
87d99c3
52eb7bf
139b7e7
b703cd9
e0ea69f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
+ [gRPC](#grpc-call) | ||
+ [HTTP](#http-call) | ||
+ [OpenAPI](#openapi-call) | ||
+ [A2A](#a2a-call) | ||
- [Do](#do) | ||
- [Emit](#emit) | ||
- [For](#for) | ||
|
@@ -320,6 +321,7 @@ Serverless Workflow defines several default functions that **MUST** be supported | |
- [gRPC](#grpc-call) | ||
- [HTTP](#http-call) | ||
- [OpenAPI](#openapi-call) | ||
- [A2A](#a2a-call) | ||
|
||
##### AsyncAPI Call | ||
|
||
|
@@ -483,6 +485,48 @@ do: | |
status: available | ||
``` | ||
|
||
##### A2A Call | ||
|
||
The [A2A Call](#a2a-call) enables workflows to interact with AI agents described by [A2A](https://a2a-protocol.org/). | ||
|
||
###### Properties | ||
|
||
| Name | Type | Required | Description| | ||
|:--|:---:|:---:|:---| | ||
| method | `string` | `yes` | The A2A JSON-RPC method to send. | | ||
| agentCard | [`externalResource`](#external-resource) | `yes` | The AgentCard resource that describes the agent to call. | | ||
| parameters | `any` | `no` | The parameters for the A2A rpc method. For the `message/send` and `message/stream` methods the parameters `message.messageId` and `message.role` must be automatically set if missing. | | ||
ricardozanini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
cdavernas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
> [!NOTE] | ||
> The `security` and `securitySchemes` fields of the AgentCard contain authentication requirements and schemes for when communicating with the agent. | ||
ricardozanini marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
> [!NOTE] | ||
> On success the output is the JSON-RPC result. On failure runtimes must raise an error. | ||
|
||
|
||
> [!NOTE] | ||
> For `message/stream` and `tasks/resubscribe` methods the output is a sequentially ordered array of all the result objects. | ||
|
||
emmanuelallen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
###### Examples | ||
|
||
```yaml | ||
document: | ||
dsl: '1.0.0' | ||
namespace: test | ||
name: a2a-example | ||
version: '0.1.0' | ||
do: | ||
- GenerateReport: | ||
call: a2a | ||
with: | ||
method: message/send | ||
agentCard: https://example.com/.well-known/agent-card.json | ||
parameters: | ||
message: | ||
parts: | ||
- kind: text | ||
text: Generate the Q1 sales report. | ||
``` | ||
|
||
#### Do | ||
|
||
Serves as a fundamental building block within workflows, enabling the sequential execution of multiple subtasks. By defining a series of subtasks to perform in sequence, the Do task facilitates the efficient execution of complex operations, ensuring that each subtask is completed before the next one begins. | ||
|
Uh oh!
There was an error while loading. Please reload this page.