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)
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 |
|---|---|---|
id | String | 执行标识相关操作。 Performs the id operation. |
subject | String | 执行主题相关操作。 Performs the subject operation. |
description | String | 执行 `description` 方法。 Performs the description operation. |
state | String | 执行状态相关操作。 Performs the state operation. |
owner | String | 执行所有者相关操作。 Performs the owner operation. |
createdAt | String | 执行已创建 At相关操作。 Performs the created at operation. |
blocks | List<String> | 执行 `blocks` 方法。 Performs the blocks operation. |
blockedBy | List<String> | 执行 `blockedBy` 方法。 Performs the blocked by operation. |
metadata | Map<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.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53subject
String subject执行主题相关操作。
Performs the subject operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53description
String description执行 description 方法。
Performs the description operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53state
String state执行状态相关操作。
Performs the state operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53owner
String owner执行所有者相关操作。
Performs the owner operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53createdAt
String createdAt执行已创建 At相关操作。
Performs the created at operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53blocks
List<String> blocks执行 blocks 方法。
Performs the blocks operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53blockedBy
List<String> blockedBy执行 blockedBy 方法。
Performs the blocked by operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53metadata
Map<String, Object> metadata执行元数据相关操作。
Performs the metadata operation.
io/agentscope/spring/boot/admin/dto/AgentTaskView.java:29–53方法详情Method Detail
of
public static AgentTaskView of(Task t)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
t | Task | t(类型 `Task`)。The t. |
AgentTaskViewio/agentscope/spring/boot/admin/dto/AgentTaskView.java:40–52