Class HarnessWorkspaceAgentFactory
java.lang.Object
io.agentscope.extensions.aistio.adapter.HarnessWorkspaceAgentFactory
- All Implemented Interfaces:
WorkspaceAgentFactory
Loads a published definition into a fresh attempt workspace. The application supplies a fresh
builder with its model registry and sandbox policy. Runtime files remain local to the application.
Applications needing custom tool/credential mapping can implement WorkspaceAgentFactory directly.
-
Constructor Summary
ConstructorsConstructorDescriptionHarnessWorkspaceAgentFactory(Path root, Supplier<io.agentscope.harness.agent.HarnessAgent.Builder> builders) -
Method Summary
Modifier and TypeMethodDescriptionio.agentscope.harness.agent.HarnessAgentcreate(com.fasterxml.jackson.databind.JsonNode definition, AgentTaskAssignment assignment) Creates a fresh attempt-owned agent, including its tools and credential policy.
-
Constructor Details
-
HarnessWorkspaceAgentFactory
-
-
Method Details
-
create
public io.agentscope.harness.agent.HarnessAgent create(com.fasterxml.jackson.databind.JsonNode definition, AgentTaskAssignment assignment) Description copied from interface:WorkspaceAgentFactoryCreates a fresh attempt-owned agent, including its tools and credential policy.- Specified by:
createin interfaceWorkspaceAgentFactory
-