Skip to content

Commit fde5875

Browse files
chore: update docs
1 parent 376ef12 commit fde5875

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/en/learn/a2a-agent-delegation.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ For A2A agents that require authentication, use one of the provided auth schemes
170170

171171
## Multiple A2A Agents
172172

173-
Configure multiple A2A agents for delegation by passing a dictionary:
173+
Configure multiple A2A agents for delegation by passing a list:
174174

175175
```python Code
176176
from crewai.a2a.config import A2AConfig
@@ -181,17 +181,17 @@ agent = Agent(
181181
goal="Coordinate with multiple specialized agents",
182182
backstory="Expert at delegating to the right specialist",
183183
llm="gpt-4o",
184-
a2a={
185-
"research_agent": A2AConfig(
184+
a2a=[
185+
A2AConfig(
186186
endpoint="https://research.example.com/.well-known/agent-card.json",
187187
timeout=120
188188
),
189-
"data_agent": A2AConfig(
189+
A2AConfig(
190190
endpoint="https://data.example.com/.well-known/agent-card.json",
191191
auth=BearerTokenAuth(token="data-token"),
192192
timeout=90
193193
)
194-
}
194+
]
195195
)
196196
```
197197

0 commit comments

Comments
 (0)