WorkspaceAgentFactory
@FunctionalInterface public interface WorkspaceAgentFactory
源码Source
io/agentscope/extensions/aistio/adapter/WorkspaceAgentFactory.java:28–32定义工作区智能体工厂契约的接口。位于 io.agentscope.extensions.aistio.adapter 包。核心成员包括 create。
Explicit application opt-in to consume the immutable control-plane definition per attempt.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public HarnessAgent create(JsonNode definition, AgentTaskAssignment assignment) | 创建并返回实例。 Creates a fresh attempt-owned agent, including its tools and credential policy. |
方法详情Method Detail
create
public HarnessAgent create(JsonNode definition, AgentTaskAssignment assignment)
创建并返回实例。
Creates a fresh attempt-owned agent, including its tools and credential policy.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
definition | JsonNode | 定义(类型 `JsonNode`)。The definition. |
assignment | AgentTaskAssignment | assignment(类型 `AgentTaskAssignment`)。The assignment. |
HarnessAgent返回HarnessAgent。Returns harness agent.
源码Source
io/agentscope/extensions/aistio/adapter/WorkspaceAgentFactory.java:31