AS AgentScopeAPI 手册 / API Reference

PlanWriteTool

public static final class PlanWriteTool extends ToolBase
源码Source io/agentscope/harness/agent/tool/PlanModeTools.java:105–147

计划写入工具,封装可被智能体调用的能力。位于 io.agentscope.harness.agent.tool 包,继承自 ToolBase。核心成员包括 callAsync、PlanWriteTool。

plan_write: create / overwrite the plan markdown file.

构造器摘要Constructor Summary

构造器Constructor说明Description
public PlanWriteTool(PlanModeManager manager)
初始化 `PlanWriteTool` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public Mono<ToolResultBlock> callAsync(ToolCallParam param)
调用异步。
Calls the async.

构造器详情Constructor Detail

PlanWriteTool

public PlanWriteTool(PlanModeManager manager)

初始化 PlanWriteTool 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
managerPlanModeManager管理器(类型 `PlanModeManager`)。The manager.
源码Source io/agentscope/harness/agent/tool/PlanModeTools.java:108–133

方法详情Method Detail

callAsync

public Mono<ToolResultBlock> callAsync(ToolCallParam param)

调用异步。

Calls the async.

参数Parameters
名称Name类型Type说明Description
paramToolCallParam参数(类型 `ToolCallParam`)。The param.
返回Returns Mono<ToolResultBlock>
返回Mono。Returns mono.
源码Source io/agentscope/harness/agent/tool/PlanModeTools.java:135–146

继承成员Inherited Members

继承自Methods inherited from AgentTool
基于官方固定版本源码静态生成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.