AS AgentScopeAPI 手册 / API Reference

WorkspaceAgentFactory

@FunctionalInterface public interface WorkspaceAgentFactory
源码Source io/agentscope/extensions/controlplane/adapter/WorkspaceAgentFactory.java:28–32

定义工作区智能体工厂契约的接口。位于 io.agentscope.extensions.controlplane.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
definitionJsonNode定义(类型 `JsonNode`)。The definition.
assignmentAgentTaskAssignmentassignment(类型 `AgentTaskAssignment`)。The assignment.
返回Returns HarnessAgent
返回HarnessAgent。Returns harness agent.
源码Source io/agentscope/extensions/controlplane/adapter/WorkspaceAgentFactory.java:31
基于官方固定版本源码静态生成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.