Skip to content

Commit c40deb1

Browse files
committed
Add comment
1 parent 534a50b commit c40deb1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/a2a/client/client_factory.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ async def connect( # noqa: PLR0913
120120
creating multiple clients via this method is less efficient than
121121
constructing an instance of ClientFactory and reusing that.
122122
123+
.. code-block:: python
124+
125+
# This will search for an AgentCard at /.well-known/agent-card.json
126+
my_agent_url = 'https://travel.agents.example.com'
127+
client = await ClientFactory.connect(my_agent_url)
128+
129+
123130
Args:
124131
agent: The base URL of the agent, or the AgentCard to connect to.
125132
client_config: The ClientConfig to use when connecting to the agent.

0 commit comments

Comments
 (0)