You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/a2a_readme.md
+24-22Lines changed: 24 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Flare AI Kit A2A Package
2
2
3
-
This package builds A2A (Agent-to-Agent) functionality into the Flare AI Kit. It consists of two main modules, a client and a server, that enable agents to communicate with each other over HTTP JSON-RPC 2.0. The package exposes A2A schemas following the v0.2.3 protocol spec.
3
+
This package builds A2A (Agent-to-Agent) functionality into the Flare AI Kit. It consists of two main modules, a client and a server, that enable agents to communicate with each other over HTTP JSON-RPC 2.0. The package exposes A2A schemas following the v0.2.3 protocol spec.
4
4
5
5
## Using the client
6
6
@@ -63,24 +63,24 @@ Below is an example response body from the agent:
63
63
64
64
```json
65
65
{
66
-
"jsonrpc": "2.0",
67
-
"id": "0dacbeeed6a842d0ad6d2d31ce3150f4",
68
-
"result": {
69
-
"kind": "message",
70
-
"role": "agent",
71
-
"parts": [
72
-
{
73
-
"kind": "text",
74
-
"text": "The price of BTC/USD is 111184.22.",
75
-
"metadata": null
76
-
}
77
-
],
78
-
"metadata": null,
79
-
"messageId": "98698e9607444cd0a4d26f52c11feec5",
80
-
"contextId": null,
81
-
"taskId": null
82
-
},
83
-
"error": null
66
+
"jsonrpc": "2.0",
67
+
"id": "0dacbeeed6a842d0ad6d2d31ce3150f4",
68
+
"result": {
69
+
"kind": "message",
70
+
"role": "agent",
71
+
"parts": [
72
+
{
73
+
"kind": "text",
74
+
"text": "The price of BTC/USD is 111184.22.",
75
+
"metadata": null
76
+
}
77
+
],
78
+
"metadata": null,
79
+
"messageId": "98698e9607444cd0a4d26f52c11feec5",
80
+
"contextId": null,
81
+
"taskId": null
82
+
},
83
+
"error": null
84
84
}
85
85
```
86
86
@@ -182,10 +182,10 @@ server = A2AServer(card, host="localhost", port=4500)
0 commit comments