File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff 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__ (
You can’t perform that action at this time.
0 commit comments