Skip to content

Commit ec08ee5

Browse files
authored
a2a sample update (#2391)
1 parent f9a94ce commit ec08ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/samples/getting_started/agents/a2a/agent_with_a2a.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def main():
5353
resolver = A2ACardResolver(httpx_client=http_client, base_url=a2a_agent_host)
5454

5555
# Get agent card
56-
agent_card = await resolver.get_agent_card(relative_card_path="/.well-known/agent.json")
56+
agent_card = await resolver.get_agent_card()
5757
print(f"Found agent: {agent_card.name} - {agent_card.description}")
5858

5959
# Create A2A agent instance
@@ -66,7 +66,7 @@ async def main():
6666

6767
# Invoke the agent and output the result
6868
print("\nSending message to A2A agent...")
69-
response = await agent.run("Tell me a joke about a pirate.")
69+
response = await agent.run("What are your capabilities?")
7070

7171
# Print the response
7272
print("\nAgent Response:")

0 commit comments

Comments
 (0)