AS AgentScopeAPI 手册 / API Reference

RemoteTaskRunSpec

record RemoteTaskRunSpec( String baseUrl, Map<String, String> headers, String agentId, String input, RemoteSubmitContext context) implements TaskRunSpec
源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

承载远程任务运行规格数据的记录类型。位于 io.agentscope.harness.agent.subagent.task 包,实现 TaskRunSpec。核心成员包括 baseUrl、headers、agentId、input、context、RemoteTaskRunSpec。

Remote HTTP task execution. The taskId is chosen by the client and used as the remote task key end-to-end. context carries submission-time metadata (streaming preference, propagated deny rules, parent identity); defaults to RemoteSubmitContext#empty() for callers that predate this field.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
baseUrlString
执行基类 URL相关操作。
Performs the base url operation.
headersMap<String, String>
执行请求头相关操作。
Performs the headers operation.
agentIdString
执行智能体标识相关操作。
Performs the agent id operation.
inputString
执行输入相关操作。
Performs the input operation.
contextRemoteSubmitContext
执行上下文相关操作。
Performs the context operation.

构造器摘要Constructor Summary

构造器Constructor说明Description
public RemoteTaskRunSpec(String baseUrl, Map<String, String> headers, String agentId, String input)
初始化 `RemoteTaskRunSpec` 实例。
Creates a new instance.

记录组件详情Record Component Detail

baseUrl

String baseUrl

执行基类 URL相关操作。

Performs the base url operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

headers

Map<String, String> headers

执行请求头相关操作。

Performs the headers operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

agentId

String agentId

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

Performs the agent id operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

input

String input

执行输入相关操作。

Performs the input operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

context

RemoteSubmitContext context

执行上下文相关操作。

Performs the context operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53

构造器详情Constructor Detail

RemoteTaskRunSpec

public RemoteTaskRunSpec(String baseUrl, Map<String, String> headers, String agentId, String input)

初始化 RemoteTaskRunSpec 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
baseUrlString基类 URL(类型 `String`)。The base url.
headersMap<String, String>请求头(类型 `Map`)。The headers.
agentIdString智能体标识(类型 `String`)。The agent id.
inputString输入消息(类型 `String`)。The input.
源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:49–52
基于官方固定版本源码静态生成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.