AS AgentScopeAPI 手册 / API Reference

AgentTaskView

public record AgentTaskView( String id, String subject, String description, String state, String owner, String createdAt, List<String> blocks, List<String> blockedBy, Map<String, Object> metadata)
源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

承载智能体任务 View数据的记录类型。位于 io.agentscope.spring.boot.admin.dto 包。核心成员包括 id、subject、description、state、owner、createdAt。

Read-only wire view of Task (the per-io.agentscope.core.state.AgentState task record — the TodoWrite-style work-item list that an agent maintains for itself).

Distinct from SubagentTaskView, which describes a BackgroundTask dispatched to a subagent via TaskRepository.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
idString
执行标识相关操作。
Performs the id operation.
subjectString
执行主题相关操作。
Performs the subject operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
stateString
执行状态相关操作。
Performs the state operation.
ownerString
执行所有者相关操作。
Performs the owner operation.
createdAtString
执行已创建 At相关操作。
Performs the created at operation.
blocksList<String>
执行 `blocks` 方法。
Performs the blocks operation.
blockedByList<String>
执行 `blockedBy` 方法。
Performs the blocked by operation.
metadataMap<String, Object>
执行元数据相关操作。
Performs the metadata operation.

方法摘要Method Summary

方法Method说明Description
public static AgentTaskView of(Task t)
static
创建并返回实例。
Creates and returns an instance.

记录组件详情Record Component Detail

id

String id

执行标识相关操作。

Performs the id operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

subject

String subject

执行主题相关操作。

Performs the subject operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

state

String state

执行状态相关操作。

Performs the state operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

owner

String owner

执行所有者相关操作。

Performs the owner operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

createdAt

String createdAt

执行已创建 At相关操作。

Performs the created at operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

blocks

List<String> blocks

执行 blocks 方法。

Performs the blocks operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

blockedBy

List<String> blockedBy

执行 blockedBy 方法。

Performs the blocked by operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

metadata

Map<String, Object> metadata

执行元数据相关操作。

Performs the metadata operation.

源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53

方法详情Method Detail

of

public static AgentTaskView of(Task t)
static

创建并返回实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
tTaskt(类型 `Task`)。The t.
返回Returns AgentTaskView
返回AgentTaskView。Returns agent task view.
源码Source io/agentscope/spring/boot/admin/dto/AgentTaskView.java:40–52
基于官方固定版本源码静态生成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.