Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,6 @@ AServers
AService
AStarlette
AUser
DSNs
EUR
GBP
GVsb
INR
JPY
JSONRPCt
Llm
POSTGRES
RUF
Tful
aconnect
adk
agentic
aio
aiomysql
aproject
autouse
backticks
cla
Expand Down Expand Up @@ -82,6 +65,7 @@ pyi
pypistats
pyupgrade
pyversions
redef
respx
resub
RUF
Expand All @@ -91,5 +75,6 @@ sse
tagwords
taskupdate
testuuid
Tful
typeerror
vulnz
53 changes: 50 additions & 3 deletions src/a2a/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,47 @@
CredentialService,
InMemoryContextCredentialStore,
)
from a2a.client.client import A2ACardResolver, A2AClient
from a2a.client.client import (
A2ACardResolver,
Client,
ClientConfig,
ClientEvent,
Consumer,
)
from a2a.client.client_factory import (
ClientFactory,
ClientProducer,
minimal_agent_card,
)
from a2a.client.errors import (
A2AClientError,
A2AClientHTTPError,
A2AClientJSONError,
A2AClientTimeoutError,
)
from a2a.client.grpc_client import (
GrpcClient,
GrpcTransportClient,
NewGrpcClient,
)
from a2a.client.helpers import create_text_message_object
from a2a.client.jsonrpc_client import (
JsonRpcClient,
JsonRpcTransportClient,
NewJsonRpcClient,
)
from a2a.client.middleware import ClientCallContext, ClientCallInterceptor
from a2a.client.rest_client import (
NewRestfulClient,
RestClient,
RestTransportClient,
)


# For backward compatability define this alias. This will be deprecated in
# a future release.
A2AClient = JsonRpcTransportClient
A2AGrpcClient = GrpcTransportClient

logger = logging.getLogger(__name__)

Expand All @@ -41,16 +72,32 @@ def __init__(self, *args, **kwargs):

__all__ = [
'A2ACardResolver',
'A2AClient',
'A2AClient', # for backward compatability
'A2AClientError',
'A2AClientHTTPError',
'A2AClientJSONError',
'A2AClientTimeoutError',
'A2AGrpcClient',
'A2AGrpcClient', # for backward compatability
'AuthInterceptor',
'Client',
'ClientCallContext',
'ClientCallInterceptor',
'ClientConfig',
'ClientEvent',
'ClientFactory',
'ClientProducer',
'Consumer',
'CredentialService',
'GrpcClient',
'GrpcTransportClient',
'InMemoryContextCredentialStore',
'JsonRpcClient',
'JsonRpcTransportClient',
'NewGrpcClient',
'NewJsonRpcClient',
'NewRestfulClient',
'RestClient',
'RestTransportClient',
'create_text_message_object',
'minimal_agent_card',
]
Loading