Skip to content
Merged
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
11 changes: 5 additions & 6 deletions docs/user-guide/concepts/multi-agent/agent-to-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,11 @@ agent = Agent(tools=provider.tools)
response = agent("pick an agent and make a sample call")
logger.info(response)

# Async usage
async def main():
response = await agent.invoke_async("pick an agent and make a sample call")
logger.info(response)

asyncio.run(main())
# Alternative Async usage
# async def main():
# response = await agent.invoke_async("pick an agent and make a sample call")
# logger.info(response)
# asyncio.run(main())
```

This approach allows your Strands agent to:
Expand Down