AS AgentScopeAPI 手册 / API Reference

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)
源码Source 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
taskIdString
执行任务标识相关操作。
Performs the task id operation.
teamNameString
执行团队名称相关操作。
Performs the team name operation.
namespaceString
执行命名空间相关操作。
Performs the namespace operation.
subjectString
执行主题相关操作。
Performs the subject operation.
descriptionString
执行 `description` 方法。
Performs the description operation.
stateString
执行状态相关操作。
Performs the state operation.
ownerString
执行所有者相关操作。
Performs the owner operation.
blockedByList<String>
执行 `blockedBy` 方法。
Performs the blocked by operation.
resultString
执行结果相关操作。
Performs the result operation.
versionlong
执行版本相关操作。
Performs the version operation.

字段摘要Field Summary

字段Field类型Type说明Description
PENDING
staticfinal
String
待处理字段。
The PENDING field.
IN_PROGRESS
staticfinal
String
IN PROGRESS字段。
The IN PROGRESS field.
COMPLETED
staticfinal
String
已完成字段。
The COMPLETED field.
FAILED
staticfinal
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.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

teamName

String teamName

执行团队名称相关操作。

Performs the team name operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

namespace

String namespace

执行命名空间相关操作。

Performs the namespace operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

subject

String subject

执行主题相关操作。

Performs the subject operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

description

String description

执行 description 方法。

Performs the description operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

state

String state

执行状态相关操作。

Performs the state operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

owner

String owner

执行所有者相关操作。

Performs the owner operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

blockedBy

List<String> blockedBy

执行 blockedBy 方法。

Performs the blocked by operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

result

String result

执行结果相关操作。

Performs the result operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

version

long version

执行版本相关操作。

Performs the version operation.

源码Source io/agentscope/harness/agent/team/TeamTask.java:24–139

字段详情Field Detail

PENDING

public static final String PENDING
staticfinal

待处理字段。声明为 public static final String PENDING。

The PENDING field.

源码Source io/agentscope/harness/agent/team/TeamTask.java:36

IN_PROGRESS

public static final String IN_PROGRESS
staticfinal

IN PROGRESS字段。声明为 public static final String IN_PROGRESS。

The IN PROGRESS field.

源码Source io/agentscope/harness/agent/team/TeamTask.java:37

COMPLETED

public static final String COMPLETED
staticfinal

已完成字段。声明为 public static final String COMPLETED。

The COMPLETED field.

源码Source io/agentscope/harness/agent/team/TeamTask.java:38

FAILED

public static final String FAILED
staticfinal

失败字段。声明为 public static final String FAILED。

The FAILED field.

源码Source io/agentscope/harness/agent/team/TeamTask.java:39

方法详情Method Detail

isTerminal

public static boolean isTerminal(String state)
static

判断是否 isTerminal。

true when the state accepts no further transitions.

参数Parameters
名称Name类型Type说明Description
stateString状态对象(类型 `String`)。The state.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/team/TeamTask.java:42–44

claimableOf

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.

参数Parameters
名称Name类型Type说明Description
tasksList<TeamTask>任务(类型 `List`)。The tasks.
forMemberString用于成员(类型 `String`)。The for member.
返回Returns List<TeamTask>
返回列出。Returns list.
源码Source io/agentscope/harness/agent/team/TeamTask.java:50–82
基于官方固定版本源码静态生成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.