AS AgentScopeAPI 手册 / API Reference

AdoptedTaskRunSpec

record AdoptedTaskRunSpec(CompletableFuture<String> future) implements TaskRunSpec
源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:60

承载 Adopted 任务运行规格数据的记录类型。位于 io.agentscope.harness.agent.subagent.task 包,实现 TaskRunSpec。核心成员包括 future。

Adopts an already-running CompletableFuture as a tracked background task. Used when a sync execution exceeds its timeout and is promoted to async: the future is still in progress and only needs status-tracking callbacks, not a new executor submission.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
futureCompletableFuture<String>
执行异步相关操作。
Performs the future operation.

记录组件详情Record Component Detail

future

CompletableFuture<String> future

执行异步相关操作。

Performs the future operation.

源码Source io/agentscope/harness/agent/subagent/task/TaskRunSpec.java:60
基于官方固定版本源码静态生成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.