Skip to content

Commit 14f92c6

Browse files
pgrayyOwen Kaplan
authored andcommitted
docs: update A2AExpressServer import path to sdk/a2a/express (strands-agents#695)
1 parent f3eb75d commit 14f92c6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/content/docs/user-guide/concepts/multi-agent/agent-to-agent.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ a2a_server.serve()
309309
<Tab label="TypeScript">
310310

311311
```typescript
312-
import { A2AExpressServer } from '@strands-agents/sdk/a2a'
312+
import { A2AExpressServer } from '@strands-agents/sdk/a2a/express'
313313

314314
--8<-- "user-guide/concepts/multi-agent/agent-to-agent.ts:basic_server"
315315
```
@@ -474,7 +474,7 @@ The TypeScript `A2AExpressServer` supports a custom `taskStore` for persisting t
474474

475475
```typescript
476476
import { Agent } from '@strands-agents/sdk'
477-
import { A2AExpressServer } from '@strands-agents/sdk/a2a'
477+
import { A2AExpressServer } from '@strands-agents/sdk/a2a/express'
478478

479479
const agent = new Agent({ systemPrompt: 'You are a helpful agent.' })
480480

@@ -528,7 +528,7 @@ Use the `httpUrl` option to set the public URL for the agent card. For custom pa
528528

529529
```typescript
530530
import { Agent } from '@strands-agents/sdk'
531-
import { A2AExpressServer } from '@strands-agents/sdk/a2a'
531+
import { A2AExpressServer } from '@strands-agents/sdk/a2a/express'
532532

533533
const agent = new Agent({ systemPrompt: 'A calculator agent.' })
534534

src/content/docs/user-guide/concepts/multi-agent/agent-to-agent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// NOTE: Type-checking is disabled because the examples reference remote services not available at build time.
33

44
import { Agent, tool } from '@strands-agents/sdk'
5-
import { A2AAgent, A2AExpressServer } from '@strands-agents/sdk/a2a'
5+
import { A2AAgent } from '@strands-agents/sdk/a2a'
6+
import { A2AExpressServer } from '@strands-agents/sdk/a2a/express'
67
import { z } from 'zod'
78

89
async function basicUsageExample() {

0 commit comments

Comments
 (0)