AS AgentScopeAPI 手册 / API Reference

TodoItem

public static final class TodoItem
源码Source io/agentscope/core/tool/builtin/TodoTools.java:228–260

Todo 条目,让智能体以受控方式调用外部能力。位于 io.agentscope.core.tool.builtin 包。核心成员包括 getContent、getStatus、getPriority、TodoItem。

A single todo item as supplied by the model.

构造器摘要Constructor Summary

构造器Constructor说明Description
public TodoItem(String content, String status, String priority)
初始化 `TodoItem` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getContent()
获取内容。
Returns the content.
public String getStatus()
获取状态。
Returns the status.
public String getPriority()
获取优先级。
Returns the priority.

构造器详情Constructor Detail

TodoItem

public TodoItem(String content, String status, String priority)

初始化 TodoItem 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
contentString内容(类型 `String`)。The content.
statusString状态(类型 `String`)。The status.
priorityString优先级(类型 `String`)。The priority.
源码Source io/agentscope/core/tool/builtin/TodoTools.java:233–241

方法详情Method Detail

getContent

public String getContent()

获取内容。

Returns the content.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/tool/builtin/TodoTools.java:243–247

getStatus

public String getStatus()

获取状态。

Returns the status.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/tool/builtin/TodoTools.java:249–253

getPriority

public String getPriority()

获取优先级。

Returns the priority.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/tool/builtin/TodoTools.java:255–259
基于官方固定版本源码静态生成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.