Uses of Class
org.a2aproject.sdk.client.ClientBuilder
Packages that use ClientBuilder
-
Uses of ClientBuilder in org.a2aproject.sdk.client
Methods in org.a2aproject.sdk.client that return ClientBuilderModifier and TypeMethodDescriptionClientBuilder.addConsumer(BiConsumer<ClientEvent, AgentCard> consumer) Add a single event consumer to process events from the agent.ClientBuilder.addConsumers(List<BiConsumer<ClientEvent, AgentCard>> consumers) Add multiple event consumers to process events from the agent.static ClientBuilderCreate a new builder for constructing a client instance.ClientBuilder.clientConfig(@NonNull ClientConfig clientConfig) Configure client behavior such as streaming mode, polling, and transport preference.ClientBuilder.streamingErrorHandler(Consumer<Throwable> streamErrorHandler) Configure an error handler for streaming scenarios.<T extends ClientTransport>
ClientBuilderClientBuilder.withTransport(Class<T> clazz, ClientTransportConfig<T> config) Configure a transport protocol with a pre-built configuration.<T extends ClientTransport>
ClientBuilderClientBuilder.withTransport(Class<T> clazz, ClientTransportConfigBuilder<? extends ClientTransportConfig<T>, ?> configBuilder) Configure a transport protocol using a builder for type-safe configuration.