From ebb17b1d9c4deaf97eb6fec6a73cbad90c266092 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:05:57 -0500 Subject: [PATCH 1/3] docs: Fix Docstring formatting --- src/a2a/client/client_factory.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py index c568331f..1ec6d580 100644 --- a/src/a2a/client/client_factory.py +++ b/src/a2a/client/client_factory.py @@ -41,14 +41,17 @@ class ClientFactory: The factory is configured with a `ClientConfig` and optionally a list of `Consumer`s to use for all generated `Client`s. The expected use is: - factory = ClientFactory(config, consumers) - # Optionally register custom client implementations - factory.register('my_customer_transport', NewCustomTransportClient) - # Then with an agent card make a client with additional consumers and - # interceptors - client = factory.create(card, additional_consumers, interceptors) - # Now the client can be used the same regardless of transport and - # aligns client config with server capabilities. + .. code-block:: python + + factory = ClientFactory(config, consumers) + # Optionally register custom client implementations + factory.register('my_customer_transport', NewCustomTransportClient) + # Then with an agent card make a client with additional consumers and + # interceptors + client = factory.create(card, additional_consumers, interceptors) + + Now the client can be used the same regardless of transport and + aligns client config with server capabilities. """ def __init__( From f55a0737117493cdb176bfbaa55dc3345201a98f Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Tue, 7 Oct 2025 12:24:31 -0500 Subject: [PATCH 2/3] Update docstring --- src/a2a/server/models.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/a2a/server/models.py b/src/a2a/server/models.py index c677fa8c..4b0f7504 100644 --- a/src/a2a/server/models.py +++ b/src/a2a/server/models.py @@ -166,15 +166,18 @@ def create_task_model( TaskModel class with the specified table name. Example: - # Create a task model with default table name - TaskModel = create_task_model() + .. code-block:: python - # Create a task model with custom table name - CustomTaskModel = create_task_model('my_tasks') + # Create a task model with default table name + TaskModel = create_task_model() - # Use with a custom base - from myapp.database import Base as MyBase - TaskModel = create_task_model('tasks', MyBase) + # Create a task model with custom table name + CustomTaskModel = create_task_model('my_tasks') + + # Use with a custom base + from myapp.database import Base as MyBase + + TaskModel = create_task_model('tasks', MyBase) """ class TaskModel(TaskMixin, base): # type: ignore From 5a191951fa961ee836cf3aa4f56ac6bef8667423 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Tue, 7 Oct 2025 14:20:30 -0500 Subject: [PATCH 3/3] Update src/a2a/client/client_factory.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/a2a/client/client_factory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py index 1ec6d580..3e98c9f5 100644 --- a/src/a2a/client/client_factory.py +++ b/src/a2a/client/client_factory.py @@ -50,8 +50,8 @@ class ClientFactory: # interceptors client = factory.create(card, additional_consumers, interceptors) - Now the client can be used the same regardless of transport and - aligns client config with server capabilities. + Now the client can be used consistently regardless of the transport. This + aligns the client configuration with the server's capabilities. """ def __init__(