Class DefaultRequestHandler.Builder
java.lang.Object
org.a2aproject.sdk.server.requesthandlers.DefaultRequestHandler.Builder
- Enclosing class:
- DefaultRequestHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentExecutor(AgentExecutor agentExecutor) agentExecutorRouter(@Nullable AgentExecutorRouter agentExecutorRouter) Sets the optionalAgentExecutorRouterfor tenant-based executor resolution.authorizationProvider(@Nullable TaskAuthorizationProvider authorizationProvider) authorizationRequired(boolean authorizationRequired) build()eventConsumerExecutor(Executor eventConsumerExecutor) mainEventBusProcessor(MainEventBusProcessor mainEventBusProcessor) populateReferredTasks(boolean populateReferredTasks) pushConfigStore(@Nullable PushNotificationConfigStore pushConfigStore) pushNotificationsEnabled(boolean pushNotificationsEnabled) Sets whether push notifications are enabled via the agent card capabilities.queueManager(QueueManager queueManager)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentExecutor
-
taskStore
-
queueManager
-
pushConfigStore
public DefaultRequestHandler.Builder pushConfigStore(@Nullable PushNotificationConfigStore pushConfigStore) -
mainEventBusProcessor
public DefaultRequestHandler.Builder mainEventBusProcessor(MainEventBusProcessor mainEventBusProcessor) -
executor
-
eventConsumerExecutor
-
authorizationProvider
public DefaultRequestHandler.Builder authorizationProvider(@Nullable TaskAuthorizationProvider authorizationProvider) -
agentExecutorRouter
public DefaultRequestHandler.Builder agentExecutorRouter(@Nullable AgentExecutorRouter agentExecutorRouter) Sets the optionalAgentExecutorRouterfor tenant-based executor resolution.- Parameters:
agentExecutorRouter- the router, may benull- Returns:
- this builder for method chaining
-
authorizationRequired
-
populateReferredTasks
-
pushNotificationsEnabled
Sets whether push notifications are enabled via the agent card capabilities. When false, push notification configs embedded in sendMessage requests are ignored.- Parameters:
pushNotificationsEnabled- true if the agent supports push notifications- Returns:
- this builder for chaining
-
build
-