Interface TaskRunSpec

All Known Implementing Classes:
TaskRunSpec.AdoptedTaskRunSpec, TaskRunSpec.LocalTaskRunSpec, TaskRunSpec.RemoteTaskRunSpec

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).