TeamTask
public record TeamTask( String taskId, String teamName, String namespace, String subject, String description, String state, String owner, List<String> blockedBy, String result, long version)
io/agentscope/harness/agent/team/TeamTask.java:24–139承载团队任务数据的记录类型。位于 io.agentscope.harness.agent.team 包。核心成员包括 taskId、teamName、namespace、subject、description、state。
Shared team task board item.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
taskId | String | 执行任务标识相关操作。 Performs the task id operation. |
teamName | String | 执行团队名称相关操作。 Performs the team name operation. |
namespace | String | 执行命名空间相关操作。 Performs the namespace 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. |
blockedBy | List<String> | 执行 `blockedBy` 方法。 Performs the blocked by operation. |
result | String | 执行结果相关操作。 Performs the result operation. |
version | long | 执行版本相关操作。 Performs the version operation. |
字段摘要Field Summary
| 字段Field | 类型Type | 说明Description |
|---|---|---|
PENDINGstaticfinal | String | 待处理字段。 The PENDING field. |
IN_PROGRESSstaticfinal | String | IN PROGRESS字段。 The IN PROGRESS field. |
COMPLETEDstaticfinal | String | 已完成字段。 The COMPLETED field. |
FAILEDstaticfinal | String | 失败字段。 The FAILED field. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static boolean isTerminal(String state)static | 判断是否 `isTerminal`。 `true` when the state accepts no further transitions. |
public static List<TeamTask> claimableOf(List<TeamTask> tasks, String forMember)static | 执行 `claimableOf` 方法。 Unblocked pending tasks claimable by `forMember`: unassigned open-board items, and when
`forMember` is non-blank also pending tasks assigned to that member. |
记录组件详情Record Component Detail
taskId
String taskId执行任务标识相关操作。
Performs the task id operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139teamName
String teamName执行团队名称相关操作。
Performs the team name operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139namespace
String namespace执行命名空间相关操作。
Performs the namespace operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139subject
String subject执行主题相关操作。
Performs the subject operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139description
String description执行 description 方法。
Performs the description operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139state
String state执行状态相关操作。
Performs the state operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139owner
String owner执行所有者相关操作。
Performs the owner operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139blockedBy
List<String> blockedBy执行 blockedBy 方法。
Performs the blocked by operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139result
String result执行结果相关操作。
Performs the result operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139version
long version执行版本相关操作。
Performs the version operation.
io/agentscope/harness/agent/team/TeamTask.java:24–139字段详情Field Detail
PENDING
public static final String PENDING
待处理字段。声明为 public static final String PENDING。
The PENDING field.
io/agentscope/harness/agent/team/TeamTask.java:36IN_PROGRESS
public static final String IN_PROGRESS
IN PROGRESS字段。声明为 public static final String IN_PROGRESS。
The IN PROGRESS field.
io/agentscope/harness/agent/team/TeamTask.java:37COMPLETED
public static final String COMPLETED
已完成字段。声明为 public static final String COMPLETED。
The COMPLETED field.
io/agentscope/harness/agent/team/TeamTask.java:38FAILED
public static final String FAILED
失败字段。声明为 public static final String FAILED。
The FAILED field.
io/agentscope/harness/agent/team/TeamTask.java:39方法详情Method Detail
isTerminal
public static boolean isTerminal(String state)
判断是否 isTerminal。
true when the state accepts no further transitions.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
state | String | 状态对象(类型 `String`)。The state. |
booleanio/agentscope/harness/agent/team/TeamTask.java:42–44claimableOf
public static List<TeamTask> claimableOf(List<TeamTask> tasks, String forMember)
执行 claimableOf 方法。
Unblocked pending tasks claimable by forMember: unassigned open-board items, and when forMember is non-blank also pending tasks assigned to that member.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tasks | List<TeamTask> | 任务(类型 `List`)。The tasks. |
forMember | String | 用于成员(类型 `String`)。The for member. |
List<TeamTask>io/agentscope/harness/agent/team/TeamTask.java:50–82