We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 534a50b commit c40deb1Copy full SHA for c40deb1
src/a2a/client/client_factory.py
@@ -120,6 +120,13 @@ async def connect( # noqa: PLR0913
120
creating multiple clients via this method is less efficient than
121
constructing an instance of ClientFactory and reusing that.
122
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
130
Args:
131
agent: The base URL of the agent, or the AgentCard to connect to.
132
client_config: The ClientConfig to use when connecting to the agent.
0 commit comments