AgentTaskAssignment
public record AgentTaskAssignment( String attemptId, String agentTaskId, String runId, String nodeId, long generation, String command, String contextUrl, String taskToken, String attemptToken, String sessionId, byte[] payload, long timestamp)
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46承载智能体任务 Assignment数据的记录类型。位于 io.agentscope.extensions.aistio.model 包。核心成员包括 attemptId、agentTaskId、runId、nodeId、generation、command。
Immutable ASDP execution envelope for one durable AgentTask.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
attemptId | String | 执行尝试标识相关操作。 Performs the attempt id operation. |
agentTaskId | String | 执行智能体任务标识相关操作。 Performs the agent task id operation. |
runId | String | 运行标识。 Runs the id. |
nodeId | String | 执行节点标识相关操作。 Performs the node id operation. |
generation | long | 执行 `generation` 方法。 Performs the generation operation. |
command | String | 执行命令相关操作。 Performs the command operation. |
contextUrl | String | 执行上下文 URL相关操作。 Performs the context url operation. |
taskToken | String | 执行任务令牌相关操作。 Performs the task token operation. |
attemptToken | String | 执行尝试令牌相关操作。 Performs the attempt token operation. |
sessionId | String | 执行会话标识相关操作。 Performs the session id operation. |
payload | byte[] | 执行负载相关操作。 Performs the payload operation. |
timestamp | long | 执行时间戳相关操作。 Performs the timestamp operation. |
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public byte[] payload() | 返回负载。 Returns the payload. |
记录组件详情Record Component Detail
attemptId
String attemptId执行尝试标识相关操作。
Performs the attempt id operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46agentTaskId
String agentTaskId执行智能体任务标识相关操作。
Performs the agent task id operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46runId
String runId运行标识。
Runs the id.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46nodeId
String nodeId执行节点标识相关操作。
Performs the node id operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46generation
long generation执行 generation 方法。
Performs the generation operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46command
String command执行命令相关操作。
Performs the command operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46contextUrl
String contextUrl执行上下文 URL相关操作。
Performs the context url operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46taskToken
String taskToken执行任务令牌相关操作。
Performs the task token operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46attemptToken
String attemptToken执行尝试令牌相关操作。
Performs the attempt token operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46sessionId
String sessionId执行会话标识相关操作。
Performs the session id operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46payload
byte[] payload执行负载相关操作。
Performs the payload operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46timestamp
long timestamp执行时间戳相关操作。
Performs the timestamp operation.
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:24–46构造器详情Constructor Detail
AgentTaskAssignment
public AgentTaskAssignment(String attemptId, String agentTaskId, String runId, String nodeId, long generation, String command, String contextUrl, String taskToken, String attemptToken, String sessionId, byte[] payload, long timestamp)
初始化 AgentTaskAssignment 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
attemptId | String | 尝试标识(类型 `String`)。The attempt id. |
agentTaskId | String | 智能体任务标识(类型 `String`)。The agent task id. |
runId | String | 运行标识(类型 `String`)。The run id. |
nodeId | String | 节点标识(类型 `String`)。The node id. |
generation | long | generation(类型 `long`)。The generation. |
command | String | 命令(类型 `String`)。The command. |
contextUrl | String | 上下文 URL(类型 `String`)。The context url. |
taskToken | String | 任务令牌(类型 `String`)。The task token. |
attemptToken | String | 尝试令牌(类型 `String`)。The attempt token. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
payload | byte[] | 负载(类型 `byte[]`)。The payload. |
timestamp | long | 时间戳(类型 `long`)。The timestamp. |
io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:38–40方法详情Method Detail
payload
public byte[] payload()
返回负载。
Returns the payload.
byte[]io/agentscope/extensions/aistio/model/AgentTaskAssignment.java:42–45