Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Swift SDK for the A2A (Agent-to-Agent) protocol v1.0.
- Run specific suite: `swift test --filter EventQueueManagerTests`

## Current Version
- Latest release: `0.3.0` (A2AVapor integration target, AgentCardResolver with caching)
- Latest release: `0.4.0` (SSE reconnection, connection health monitoring, streaming session API)
2 changes: 1 addition & 1 deletion Samples/A2AChatClient/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let package = Package(
.macOS(.v15),
],
dependencies: [
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.2.0"),
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.4.0"),
],
targets: [
.executableTarget(
Expand Down
2 changes: 1 addition & 1 deletion Samples/A2AChatClient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,4 @@ https://my-agent.example.com

The only requirement is that the agent serves:
- `GET /.well-known/agent-card.json` β€” agent card
- `POST /` β€” JSON-RPC endpoint (message/send or message/sendStream)
- `POST /` β€” JSON-RPC endpoint (SendMessage or SendStreamingMessage)
2 changes: 1 addition & 1 deletion Samples/A2AServer/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.100.0"),
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.3.0"),
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.4.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.20.0"),
],
targets: [
Expand Down
19 changes: 10 additions & 9 deletions Samples/A2AServer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ curl -X POST http://localhost:8080 \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "message/send",
"method": "SendMessage",
"params": {
"message": {
"role": "user",
"messageId": "msg-1",
"role": "ROLE_USER",
"parts": [{"text": "What laptops do you have?"}]
}
}
Expand All @@ -92,10 +93,11 @@ curl -X POST http://localhost:8080 \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "message/sendStream",
"method": "SendStreamingMessage",
"params": {
"message": {
"role": "user",
"messageId": "msg-1",
"role": "ROLE_USER",
"parts": [{"text": "Compare your most expensive and cheapest products"}]
}
}
Expand All @@ -112,10 +114,11 @@ curl -X POST http://localhost:8080 \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "message/sendStream",
"method": "SendStreamingMessage",
"params": {
"message": {
"role": "user",
"messageId": "msg-2",
"role": "ROLE_USER",
"parts": [{"text": "Which one has better reviews?"}],
"taskId": "TASK_ID_FROM_PREVIOUS_RESPONSE"
}
Expand Down Expand Up @@ -226,9 +229,7 @@ Replace `products.json` with your own catalog. The expected format:
"price": 999.99,
"category": "Category",
"inStock": true,
"specs": {
"key": "value"
}
"tags": ["keyword1", "keyword2"]
}
]
```
Expand Down
2 changes: 1 addition & 1 deletion Samples/A2AServer/Sources/ProductCatalog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct ProductCatalog: Sendable {
let terms = query.lowercased().split(separator: " ")
return products.filter { product in
let searchable = "\(product.name) \(product.category) \(product.description) \(product.tags.joined(separator: " "))".lowercased()
return terms.allSatisfy { searchable.contains($0) }
return terms.contains { searchable.contains($0) }
}
}

Expand Down
2 changes: 1 addition & 1 deletion Samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ swift run
β”‚ A2AChatClient β”‚ ◄──── (JSON-RPC + SSE) ────► β”‚ A2AServer β”‚
β”‚ β”‚ β”‚ β”‚
β”‚ SwiftUI + FM β”‚ 1. Agent card discovery β”‚ Vapor + Ollama β”‚
β”‚ orchestration β”‚ 2. message/send (streaming) β”‚ product catalog β”‚
β”‚ orchestration β”‚ 2. SendMessage (streaming) β”‚ product catalog β”‚
β”‚ β”‚ 3. Task continuations β”‚ conversation memory β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```
Expand Down
2 changes: 1 addition & 1 deletion Sources/A2A/A2A.docc/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Add A2A to your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.3.0")
.package(url: "https://github.com/Victory-Apps/a2a-swift.git", from: "0.4.0")
]
```

Expand Down
Loading