AguiAgentAdapterFactory
@FunctionalInterface public interface AguiAgentAdapterFactory
源码Source
io/agentscope/core/agui/adapter/AguiAgentAdapterFactory.java:26–46定义 AGUI 智能体适配器工厂契约的接口。位于 io.agentscope.core.agui.adapter 包。核心成员包括 create、defaultFactory。
Factory for creating AguiAgentAdapter instances for AG-UI requests.
Applications can provide a custom factory when they need to replace the default adapter, for
example to use an AguiAgentAdapter subclass that customizes runtime context creation.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public AguiAgentAdapter create(Agent agent, AguiAdapterConfig config) | 创建适配器用于已解析智能体。 Create an adapter for a resolved agent. |
static public AguiAgentAdapterFactory defaultFactory()static | 返回默认工厂。 Return the default factory. |
方法详情Method Detail
create
public AguiAgentAdapter create(Agent agent, AguiAdapterConfig config)
创建适配器用于已解析智能体。
Create an adapter for a resolved agent.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agent | Agent | 已解析智能体。The resolved agent |
config | AguiAdapterConfig | AG-UI 适配器配置。The AG-UI adapter configuration |
AguiAgentAdapter适配器到使用用于请求。The adapter to use for the request
源码Source
io/agentscope/core/agui/adapter/AguiAgentAdapterFactory.java:36defaultFactory
static public AguiAgentAdapterFactory defaultFactory()
static
返回默认工厂。
Return the default factory.
AguiAgentAdapterFactory返回AguiAgentAdapterFactory。A factory that creates the standard `AguiAgentAdapter`
源码Source
io/agentscope/core/agui/adapter/AguiAgentAdapterFactory.java:43–45