Interface TaskRunSpec
- All Known Implementing Classes:
TaskRunSpec.AdoptedTaskRunSpec,TaskRunSpec.LocalTaskRunSpec,TaskRunSpec.RemoteTaskRunSpec
public sealed interface TaskRunSpec
permits TaskRunSpec.LocalTaskRunSpec, TaskRunSpec.RemoteTaskRunSpec, TaskRunSpec.AdoptedTaskRunSpec
Discriminated union describing how a background subagent task should execute.
TaskRunSpec.LocalTaskRunSpec runs the supplier on a local executor. TaskRunSpec.RemoteTaskRunSpec
delegates to an AgentScope task HTTP API (see agentscope-extensions-agent-protocol).
TaskRunSpec.AdoptedTaskRunSpec wraps an already-running CompletableFuture (used when a sync
execution is promoted to async on timeout).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAdopts an already-runningCompletableFutureas a tracked background task.static final recordIn-process execution viaSupplier.static final recordRemote HTTP task execution.