SDK Playground
Generate connection code for any A2A agent. Enter the agent URL and message, pick your SDK, and get a ready-to-run snippet.
$ pip install a2a-sdk
python
from a2a.client import A2AClient
async def main():
client = A2AClient(url="https://agent.example.com")
# Discover agent capabilities
card = await client.get_agent_card()
print(f"Agent: {card.name}")
print(f"Skills: {[s.name for s in card.skills]}")
# Send a message
response = await client.send_message(
message={
"role": "user",
"parts": [{"kind": "text", "text": "Hello, what can you do?"}]
}
)
# Print the response
for part in response.result.artifacts:
print(part.parts[0].text)
import asyncio
asyncio.run(main())