Package io.agentscope.harness.agent.subagent.task
package io.agentscope.harness.agent.subagent.task
-
ClassDescriptionMinimal HTTP client for the internal AgentScope task protocol (
POST/GET /tasks/...).RemoteSubagentTransportbacked by the Agent Protocol HTTP client.Wraps aCompletableFutureto track background subagent task execution with status, result, error, and lifecycle metadata.Transport abstraction for remote subagent execution (Agent Protocol today; A2A later).Context sent with a remote task submission (permissions, streaming preferences, parent identity).Remote endpoint identity: base URL plus optional auth/routing headers.Status snapshot returned by the remote task HTTP API (GET /tasks/{taskId}).Snapshot of a terminal-state subagent task awaiting (or undergoing) push delivery to the parent agent's reasoning loop.Persistent metadata for a background subagent task, stored as JSON in the workspace underagents/<parentAgentId>/tasks/<parentSessionId>.json.Repository for managing background subagent tasks, scoped by session.Callback invoked when a background task reaches a terminal state (COMPLETED or FAILED).Discriminated union describing how a background subagent task should execute.Adopts an already-runningCompletableFutureas a tracked background task.In-process execution viaSupplier.Remote HTTP task execution.Lifecycle status of a background subagent task.Workspace-backedTaskRepositorythat usesWorkspaceManageras the authoritative truth source for task state, while maintaining in-memoryBackgroundTaskhandles as a local performance overlay for tasks running on the current node.