AS AgentScopeAPI 手册 / API Reference

AgentTaskOutcomeTool

public final class AgentTaskOutcomeTool
源码Source io/agentscope/extensions/aistio/adapter/AgentTaskOutcomeTool.java:30–73

智能体任务 Outcome 工具,封装可被智能体调用的能力。位于 io.agentscope.extensions.aistio.adapter 包。核心成员包括 submit。

Captures intent. Only the adapter is allowed to commit the physical AgentTask lifecycle.

方法摘要Method Summary

方法Method说明Description
public ToolResultBlock submit(RuntimeContext context, String outcome, String result, String reason, List<String> pendingTaskIds)
执行提交相关操作。
Performs the submit operation.

方法详情Method Detail

submit

public ToolResultBlock submit(RuntimeContext context, String outcome, String result, String reason, List<String> pendingTaskIds)

执行提交相关操作。

Performs the submit operation.

参数Parameters
名称Name类型Type说明Description
contextRuntimeContext上下文(类型 `RuntimeContext`)。The context.
outcomeStringoutcome(类型 `String`)。The outcome.
resultString结果(类型 `String`)。The result.
reasonString原因(类型 `String`)。The reason.
pendingTaskIdsList<String>待处理任务 Ids(类型 `List`)。The pending task ids.
返回Returns ToolResultBlock
返回ToolResultBlock。Returns tool result block.
源码Source io/agentscope/extensions/aistio/adapter/AgentTaskOutcomeTool.java:31–72
基于官方固定版本源码静态生成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.