Skip to content

Commit ebb17b1

Browse files
committed
docs: Fix Docstring formatting
1 parent 63a8a18 commit ebb17b1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/a2a/client/client_factory.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@ class ClientFactory:
4141
The factory is configured with a `ClientConfig` and optionally a list of
4242
`Consumer`s to use for all generated `Client`s. The expected use is:
4343
44-
factory = ClientFactory(config, consumers)
45-
# Optionally register custom client implementations
46-
factory.register('my_customer_transport', NewCustomTransportClient)
47-
# Then with an agent card make a client with additional consumers and
48-
# interceptors
49-
client = factory.create(card, additional_consumers, interceptors)
50-
# Now the client can be used the same regardless of transport and
51-
# aligns client config with server capabilities.
44+
.. code-block:: python
45+
46+
factory = ClientFactory(config, consumers)
47+
# Optionally register custom client implementations
48+
factory.register('my_customer_transport', NewCustomTransportClient)
49+
# Then with an agent card make a client with additional consumers and
50+
# interceptors
51+
client = factory.create(card, additional_consumers, interceptors)
52+
53+
Now the client can be used the same regardless of transport and
54+
aligns client config with server capabilities.
5255
"""
5356

5457
def __init__(

0 commit comments

Comments
 (0)