AS AgentScopeAPI 手册 / API Reference

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)
源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

承载智能体任务 Assignment数据的记录类型。位于 io.agentscope.extensions.controlplane.model 包。核心成员包括 attemptId、agentTaskId、runId、nodeId、generation、command。

Immutable ASDP execution envelope for one durable AgentTask.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
attemptIdString
执行尝试标识相关操作。
Performs the attempt id operation.
agentTaskIdString
执行智能体任务标识相关操作。
Performs the agent task id operation.
runIdString
运行标识。
Runs the id.
nodeIdString
执行节点标识相关操作。
Performs the node id operation.
generationlong
执行 `generation` 方法。
Performs the generation operation.
commandString
执行命令相关操作。
Performs the command operation.
contextUrlString
执行上下文 URL相关操作。
Performs the context url operation.
taskTokenString
执行任务令牌相关操作。
Performs the task token operation.
attemptTokenString
执行尝试令牌相关操作。
Performs the attempt token operation.
sessionIdString
执行会话标识相关操作。
Performs the session id operation.
payloadbyte[]
执行负载相关操作。
Performs the payload operation.
timestamplong
执行时间戳相关操作。
Performs the timestamp operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
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.

方法摘要Method Summary

方法Method说明Description
public byte[] payload()
返回负载。
Returns the payload.

记录组件详情Record Component Detail

attemptId

String attemptId

执行尝试标识相关操作。

Performs the attempt id operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

agentTaskId

String agentTaskId

执行智能体任务标识相关操作。

Performs the agent task id operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

runId

String runId

运行标识。

Runs the id.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

nodeId

String nodeId

执行节点标识相关操作。

Performs the node id operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

generation

long generation

执行 generation 方法。

Performs the generation operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

command

String command

执行命令相关操作。

Performs the command operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

contextUrl

String contextUrl

执行上下文 URL相关操作。

Performs the context url operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

taskToken

String taskToken

执行任务令牌相关操作。

Performs the task token operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

attemptToken

String attemptToken

执行尝试令牌相关操作。

Performs the attempt token operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

sessionId

String sessionId

执行会话标识相关操作。

Performs the session id operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

payload

byte[] payload

执行负载相关操作。

Performs the payload operation.

源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:24–46

timestamp

long timestamp

执行时间戳相关操作。

Performs the timestamp operation.

源码Source io/agentscope/extensions/controlplane/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.

参数Parameters
名称Name类型Type说明Description
attemptIdString尝试标识(类型 `String`)。The attempt id.
agentTaskIdString智能体任务标识(类型 `String`)。The agent task id.
runIdString运行标识(类型 `String`)。The run id.
nodeIdString节点标识(类型 `String`)。The node id.
generationlonggeneration(类型 `long`)。The generation.
commandString命令(类型 `String`)。The command.
contextUrlString上下文 URL(类型 `String`)。The context url.
taskTokenString任务令牌(类型 `String`)。The task token.
attemptTokenString尝试令牌(类型 `String`)。The attempt token.
sessionIdString会话标识(类型 `String`)。The session id.
payloadbyte[]负载(类型 `byte[]`)。The payload.
timestamplong时间戳(类型 `long`)。The timestamp.
源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:38–40

方法详情Method Detail

payload

public byte[] payload()

返回负载。

Returns the payload.

返回Returns byte[]
返回byte[]。Returns byte.
源码Source io/agentscope/extensions/controlplane/model/AgentTaskAssignment.java:42–45
基于官方固定版本源码静态生成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.