@assistant-ui/react-a2a 0.2.12 → 0.2.15
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/README.md +12 -25
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
# `@assistant-ui/react-a2a`
|
|
2
2
|
|
|
3
|
-
[A2A (Agent-to-Agent) v1.0](https://github.com/a2aproject/A2A) protocol
|
|
3
|
+
[A2A (Agent-to-Agent) v1.0](https://github.com/a2aproject/A2A) protocol integration for `@assistant-ui/react`. Built-in HTTP client with SSE streaming, agent-card discovery, multi-tenancy, and structured error handling.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
```
|
|
7
|
+
```bash
|
|
8
8
|
npm install @assistant-ui/react @assistant-ui/react-a2a
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Usage
|
|
12
12
|
|
|
13
13
|
```tsx
|
|
14
|
-
import { AssistantRuntimeProvider
|
|
14
|
+
import { AssistantRuntimeProvider } from "@assistant-ui/react";
|
|
15
15
|
import { useA2ARuntime } from "@assistant-ui/react-a2a";
|
|
16
|
+
import { Thread } from "@/components/assistant-ui/thread";
|
|
16
17
|
|
|
17
|
-
function App() {
|
|
18
|
-
const runtime = useA2ARuntime({
|
|
19
|
-
baseUrl: "http://localhost:9999",
|
|
20
|
-
});
|
|
18
|
+
export function App() {
|
|
19
|
+
const runtime = useA2ARuntime({ baseUrl: "http://localhost:9999" });
|
|
21
20
|
|
|
22
21
|
return (
|
|
23
22
|
<AssistantRuntimeProvider runtime={runtime}>
|
|
@@ -27,23 +26,11 @@ function App() {
|
|
|
27
26
|
}
|
|
28
27
|
```
|
|
29
28
|
|
|
30
|
-
|
|
29
|
+
Supports all 9 A2A task states (including `input_required` and `auth_required`), artifact streaming, push-notification config, extension negotiation, and streaming/non-streaming auto-fallback.
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
## See also
|
|
33
32
|
|
|
34
|
-
|
|
33
|
+
- `@assistant-ui/react-ag-ui` for the AG-UI protocol.
|
|
34
|
+
- `@assistant-ui/react-langgraph` for LangGraph agents.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
- Built-in HTTP client with SSE streaming
|
|
38
|
-
- All 9 task states (including `input_required`, `auth_required`)
|
|
39
|
-
- Artifact streaming with append/lastChunk support
|
|
40
|
-
- Agent card discovery
|
|
41
|
-
- Multi-tenancy
|
|
42
|
-
- Structured error handling (google.rpc.Status)
|
|
43
|
-
- Push notification config CRUD
|
|
44
|
-
- Extension negotiation
|
|
45
|
-
- Streaming/non-streaming auto-fallback
|
|
46
|
-
|
|
47
|
-
## License
|
|
48
|
-
|
|
49
|
-
MIT
|
|
36
|
+
Full reference at [assistant-ui.com/docs/runtimes/a2a](https://www.assistant-ui.com/docs/runtimes/a2a/overview).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assistant-ui/react-a2a",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "A2A (Agent-to-Agent) v1.0 protocol adapter for assistant-ui",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a2a",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
],
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@assistant-ui/core": "^0.
|
|
33
|
-
"@assistant-ui/store": "^0.2.
|
|
32
|
+
"@assistant-ui/core": "^0.2.3",
|
|
33
|
+
"@assistant-ui/store": "^0.2.11"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@types/react": "*",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@types/react": "^19.2.14",
|
|
46
46
|
"react": "^19.2.5",
|
|
47
47
|
"vitest": "^4.1.5",
|
|
48
|
-
"@assistant-ui/x-buildutils": "0.0.
|
|
48
|
+
"@assistant-ui/x-buildutils": "0.0.8"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public",
|