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 |
|---|---|---|
baseUrl | String | 执行基类 URL相关操作。 Performs the base url operation. |
headers | Map<String, String> | 执行请求头相关操作。 Performs the headers operation. |
agentId | String | 执行智能体标识相关操作。 Performs the agent id operation. |
input | String | 执行输入相关操作。 Performs the input operation. |
context | RemoteSubmitContext | 执行上下文相关操作。 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–53headers
Map<String, String> headers执行请求头相关操作。
Performs the headers operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53agentId
String agentId执行智能体标识相关操作。
Performs the agent id operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53input
String input执行输入相关操作。
Performs the input operation.
源码Source
io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:41–53context
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 |
|---|---|---|
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
headers | Map<String, String> | 请求头(类型 `Map`)。The headers. |
agentId | String | 智能体标识(类型 `String`)。The agent id. |
input | String | 输入消息(类型 `String`)。The input. |
源码Source
io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:49–52