AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:55–149

构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.server.request 包。核心成员包括 agentExecutor、taskStore、queueManager、pushConfigStore、pushSender、build。

A class in io.agentscope.core.a2a.server.request that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.core.a2a.server.request.

方法摘要Method Summary

方法Method说明Description
public Builder agentExecutor(AgentExecutor agentExecutor)
设置智能体执行器。
Performs the agent executor operation.
public Builder taskStore(TaskStore taskStore)
设置任务存储。
Performs the task store operation.
public Builder queueManager(QueueManager queueManager)
设置队列管理器。
Performs the queue manager operation.
public Builder pushConfigStore(PushNotificationConfigStore pushConfigStore)
设置推送配置存储。
Performs the push config store operation.
public Builder pushSender(PushNotificationSender pushSender)
设置该配置项。
Performs the push sender operation.
public AgentScopeA2aRequestHandler build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

agentExecutor

public Builder agentExecutor(AgentExecutor agentExecutor)

设置智能体执行器。

Performs the agent executor operation.

参数Parameters
名称Name类型Type说明Description
agentExecutorAgentExecutor智能体执行器(类型 `AgentExecutor`)。The agent executor.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:67–70

taskStore

public Builder taskStore(TaskStore taskStore)

设置任务存储。

Performs the task store operation.

参数Parameters
名称Name类型Type说明Description
taskStoreTaskStore任务存储(类型 `TaskStore`)。The task store.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:72–75

queueManager

public Builder queueManager(QueueManager queueManager)

设置队列管理器。

Performs the queue manager operation.

参数Parameters
名称Name类型Type说明Description
queueManagerQueueManager队列管理器(类型 `QueueManager`)。The queue manager.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:77–80

pushConfigStore

public Builder pushConfigStore(PushNotificationConfigStore pushConfigStore)

设置推送配置存储。

Performs the push config store operation.

参数Parameters
名称Name类型Type说明Description
pushConfigStorePushNotificationConfigStore推送配置存储(类型 `PushNotificationConfigStore`)。The push config store.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:82–85

pushSender

public Builder pushSender(PushNotificationSender pushSender)

设置该配置项。

Performs the push sender operation.

参数Parameters
名称Name类型Type说明Description
pushSenderPushNotificationSender推送 Sender(类型 `PushNotificationSender`)。The push sender.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:87–90

build

public AgentScopeA2aRequestHandler build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns AgentScopeA2aRequestHandler
返回AgentScopeA2aRequestHandler。Returns AgentScope a 2 a request handler.
源码Source io/agentscope/core/a2a/server/request/AgentScopeA2aRequestHandler.java:92–124
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.