Uses of Class
io.agentscope.harness.agent.HarnessAgent.Builder
Packages that use HarnessAgent.Builder
-
Uses of HarnessAgent.Builder in io.agentscope.harness.agent
Methods in io.agentscope.harness.agent that return HarnessAgent.BuilderModifier and TypeMethodDescriptionHarnessAgent.Builder.abstractFilesystem(AbstractFilesystem store) Escape hatch: sets a customAbstractFilesystemimplementation directly.HarnessAgent.Builder.additionalContextFile(String relativePath) Adds a custom context file (relative to workspace) loaded into the system prompt alongside AGENTS.md, MEMORY.md, and KNOWLEDGE.md.Sets the stable identifier used as the agent's namespace key in the composite filesystem (e.g.HarnessAgent.Builder.allowShellInPlanMode()Allows the shell tool (execute) to run while plan mode is active.HarnessAgent.Builder.allowShellInPlanMode(boolean allowed) HarnessAgent.Builder.artifactDeliveryTarget(ArtifactDeliveryTarget target) Configures theArtifactDeliveryTargetused by thedeliver_artifacttool.HarnessAgent.Builder.asyncToolRegistry(AsyncToolRegistry registry) Sets theAsyncToolRegistryfor tracking async tool executions.HarnessAgent.Builder.asyncToolTimeout(Duration timeout) EnablesAsyncToolMiddlewarewith the given timeout.static HarnessAgent.BuilderHarnessAgent.builder()HarnessAgent.Builder.checkRunning(boolean checkRunning) HarnessAgent.Builder.compaction(CompactionConfig config) Overrides the defaultCompactionMiddlewareconfiguration.HarnessAgent.Builder.defaultSessionId(String defaultSessionId) HarnessAgent.Builder.description(String description) HarnessAgent.Builder.disableAtPathExpansion()HarnessAgent.Builder.disableCompaction()Disables theCompactionMiddlewareentirely.HarnessAgent.Builder.disableDefaultWorkspaceSkills()Skips registration of the default Layer-4WorkspaceSkillRepository.HarnessAgent.Builder.disableDynamicSkills()Disables dynamic per-call skill loading from the workspace filesystem.HarnessAgent.Builder.disableDynamicSubagents()HarnessAgent.Builder.disableFilesystemTools()Skips registration ofFilesystemTool.HarnessAgent.Builder.disableMemoryHooks()Disables memory flush + background consolidation, and removes the "automatically extracted" Persistence line from the workspace system prompt.HarnessAgent.Builder.disableMemoryTools()Skips registration ofmemory_search/memory_get/memory_save/session_search, and omits matching Memory Recall / tool-based Persistence guidance from the workspace system prompt.HarnessAgent.Builder.disableSessionPersistence()No-op since 2.0; session persistence is owned by ReActAgent itself.HarnessAgent.Builder.disableShellTool()Skips registration ofShellExecuteTool.HarnessAgent.Builder.disableSkills(String... skillNames) HarnessAgent.Builder.disableSubagents()HarnessAgent.Builder.disableToolResultEviction()Disables theToolResultEvictionMiddlewareentirely.HarnessAgent.Builder.disableToolsConfig()HarnessAgent.Builder.disableTranscript()Disables the independent session-transcript middleware.HarnessAgent.Builder.disableWebTools()Skips registration of the optional Tavily-backedweb_searchandweb_fetchtools.HarnessAgent.Builder.disableWorkspaceContext()HarnessAgent.Builder.distributedStore(DistributedStore store) Configures a distributed store that provides all storage components at once:AgentStateStore,BaseStore,SandboxSnapshotSpec, andSandboxExecutionGuard.HarnessAgent.Builder.enableAgentTracingLog(boolean enabled) Enables or disables agent execution trace logging viaAgentTraceMiddleware.HarnessAgent.Builder.enableMetaTool(boolean enableMetaTool) HarnessAgent.Builder.enablePendingToolRecovery(boolean enable) Enables recovery of orphaned tool calls when a new message arrives.HarnessAgent.Builder.enablePlanMode()Enables plan mode (read-only design phase) withplan_enter/plan_write/plan_exittools and aPlanModeMiddlewarethat enforces read-only tools while plan mode is active.HarnessAgent.Builder.enablePlanMode(boolean enabled) HarnessAgent.Builder.enableSkillCurator(SkillCuratorConfig config) Enables the background skill curator.HarnessAgent.Builder.enableSkillManageTool(boolean autoPromote) Shorthand forenableSkillManageTool(SkillManageConfig)with default config.HarnessAgent.Builder.enableSkillManageTool(SkillManageConfig config) Enables the agent-callableskill_managetool so the agent can create / edit / patch / archive its own skills in the workspace, and upgrades the workspace skill repository to a writable variant.HarnessAgent.Builder.enableSkillPromotionGate(SkillPromotionGate gate, SkillVisibilityFilter visibilityFilter) Configures the runtime promotion gate + visibility filter chain.HarnessAgent.Builder.enableSkills(String... skillNames) HarnessAgent.Builder.enableTaskList()HarnessAgent.Builder.enableTaskList(boolean enabled) HarnessAgent.Builder.environment(String env) Sets the deployment environment label used byEnvironmentFilter.HarnessAgent.Builder.environmentMemory(String environmentMemory) HarnessAgent.Builder.externalSubagentTool(Object tool) Injects an external subagent tool (typicallySessionsTool).HarnessAgent.Builder.failoverListener(io.agentscope.core.agent.config.FailoverListener failoverListener) Sets the listener notified when the fallback model takes over from a failed primary model.HarnessAgent.Builder.fallbackModel(io.agentscope.core.model.Model fallbackModel) HarnessAgent.Builder.fallbackModel(String modelId) HarnessAgent.Builder.filesystem(LocalFilesystemSpec spec) Configures Mode 3 — local filesystem with shell.HarnessAgent.Builder.filesystem(RemoteFilesystemSpec spec) Configures Mode 1 — composite (non-sandbox) filesystem.HarnessAgent.Builder.filesystem(SandboxFilesystemSpec spec) Configures Mode 2 — sandbox filesystem.HarnessAgent.Builder.filesystemRoute(String prefix, AbstractFilesystem filesystem) Mounts an additionalAbstractFilesystemunder a path prefix, alongside the primary filesystem configured viafilesystem(SandboxFilesystemSpec),filesystem(RemoteFilesystemSpec), orfilesystem(LocalFilesystemSpec).static HarnessAgent.BuilderHarnessAgent.Builder.fromAgent(io.agentscope.core.ReActAgent agent) Returns a newHarnessAgent.Builderpre-populated with as much of the givenReActAgent's observable configuration as can be read back from public getters.HarnessAgent.Builder.generateOptions(io.agentscope.core.model.GenerateOptions options) HarnessAgent.Builder.hook(io.agentscope.core.hook.Hook hook) HarnessAgent.Builder.maxContextTokens(int maxTokens) Sets the maximum token budget for workspace context.HarnessAgent.Builder.maxIters(int maxIters) HarnessAgent.Builder.maxRetries(int maxRetries) HarnessAgent.Builder.mcpServerRegistrationListener(McpServerRegistrationListener mcpServerRegistrationListener) Sets the listener for terminal MCP server registration results produced while building this agent.HarnessAgent.Builder.memory(MemoryConfig config) Overrides the long-term memory pipeline configuration (flush + consolidation + maintenance).HarnessAgent.Builder.messageBus(MessageBus messageBus) Sets theMessageBusfor inbox-based message delivery.HarnessAgent.Builder.middleware(io.agentscope.core.middleware.MiddlewareBase middleware) HarnessAgent.Builder.middlewares(List<? extends io.agentscope.core.middleware.MiddlewareBase> middlewareList) HarnessAgent.Builder.model(io.agentscope.core.model.Model model) HarnessAgent.Builder.modelExecutionConfig(io.agentscope.core.model.ExecutionConfig config) HarnessAgent.Builder.modelResolver(Function<String, io.agentscope.core.model.Model> resolver) Sets a resolver for model name strings toModelinstances for subagents.HarnessAgent.Builder.permissionContext(io.agentscope.core.permission.PermissionContextState permissionContext) HarnessAgent.Builder.planFileDirectory(String dir) HarnessAgent.Builder.projectGlobalSkillsDir(Path projectGlobalSkillsDir) Configures a project-global skills directory layered below marketplace and workspace skills (lowest precedence).HarnessAgent.Builder.registerExternalSchemas(List<io.agentscope.core.model.ToolSchema> schemas) Registers schema-only external tools on the builder toolkit (merged into the final agent toolkit atbuild()).HarnessAgent.Builder.skillFilter(io.agentscope.core.skill.SkillFilter filter) HarnessAgent.Builder.skillRepositories(List<io.agentscope.core.skill.repository.AgentSkillRepository> repositories) Replaces the current marketplace repository list with the given collection.HarnessAgent.Builder.skillRepository(io.agentscope.core.skill.repository.AgentSkillRepository skillRepository) Adds a marketplace / external skill repository (e.g.HarnessAgent.Builder.skillsEnabled(boolean enabled) HarnessAgent.Builder.stateStore(io.agentscope.core.state.AgentStateStore stateStore) HarnessAgent.Builder.stopOnReject(boolean stopOnReject) HarnessAgent.Builder.subagent(SubagentDeclaration declaration) Adds a subagent declaration.HarnessAgent.Builder.subagentFactory(String name, String description, Function<String, io.agentscope.core.agent.Agent> factory) Adds a fully custom subagent factory for a given agent id, with a description shown to the orchestrator.HarnessAgent.Builder.subagentFactory(String name, Function<String, io.agentscope.core.agent.Agent> factory) Adds a fully custom subagent factory for a given agent id.HarnessAgent.Builder.subagents(List<SubagentDeclaration> declarations) HarnessAgent.Builder.taskRepository(TaskRepository taskRepository) Sets a customTaskRepositoryfor background subagent execution.HarnessAgent.Builder.teamsMode(TeamClient teamClient, TeamContext teamContext) Enables AgentTeams mode: attachesTeamsMiddlewareand registers the role-clippedteamtool.HarnessAgent.Builder.teamsMode(TeamClient teamClient, TeamContext teamContext, String sessionId) Same asteamsMode(io.agentscope.harness.agent.team.TeamClient, io.agentscope.harness.agent.team.TeamContext)but also binds the middleware tosessionIdso control-plane TeamEvents addressed at that session reach this agent.HarnessAgent.Builder.toolExecutionConfig(io.agentscope.core.model.ExecutionConfig config) HarnessAgent.Builder.toolExecutionContext(io.agentscope.core.tool.ToolExecutionContext ctx) HarnessAgent.Builder.toolkit(io.agentscope.core.tool.Toolkit toolkit) HarnessAgent.Builder.toolResultEviction(ToolResultEvictionConfig config) Overrides the defaultToolResultEvictionMiddlewareconfiguration.HarnessAgent.Builder.toolsConfig(ToolsConfig toolsConfig) Programmatic override forworkspace/tools.json.HarnessAgent.Builder.transcriptStore(TranscriptStore transcriptStore) Optional override for the sessionTranscriptStore(segmented append store).HarnessAgent.Builder.transcriptTenant(String transcriptTenant) Tenant segment used in transcript object keys (default"default").HarnessAgent.Builder.useLegacyXmlWorkspaceContext(boolean enabled) Switches workspace context rendering between markdown (default) and legacy XML style.HarnessAgent.Builder.webHttpClient(HttpClient client) Supplies a customHttpClientused by the built-inweb_fetchandweb_searchtools (e.g. custom proxy, TLS or HTTP version settings).Sets the workspace directory from a filesystem path string.Sets the workspace directory. -
Uses of HarnessAgent.Builder in io.agentscope.harness.agent.gateway
Method parameters in io.agentscope.harness.agent.gateway with type arguments of type HarnessAgent.BuilderModifier and TypeMethodDescriptionGatewayBootstrap.Builder.agent(String id, Consumer<HarnessAgent.Builder> configurator) Registers an agent declared via a builder lambda.GatewayBootstrap.Builder.configureAllAgents(Consumer<HarnessAgent.Builder> customizer) Applies a customizer to every agent builder created via the lambda-basedGatewayBootstrap.Builder.agent(String, Consumer)method.