Class SubagentTaskOperations

java.lang.Object
io.agentscope.spring.boot.admin.service.SubagentTaskOperations

public final class SubagentTaskOperations extends Object
Read/cancel operations over a TaskRepository-managed pool of subagent background tasks.

The TaskRepository bean is optional. When absent (no user wired one into Spring), every method returns an empty result without raising — the endpoint is still reachable but inert, which is the same fail-soft behaviour as the rest of the inventory.

  • Constructor Details

    • SubagentTaskOperations

      public SubagentTaskOperations(org.springframework.beans.factory.ObjectProvider<io.agentscope.harness.agent.subagent.task.TaskRepository> repoProvider)
  • Method Details

    • isConfigured

      public boolean isConfigured()
    • list

      public reactor.core.publisher.Mono<List<SubagentTaskView>> list(String sessionId, String statusFilter)
    • get

      public reactor.core.publisher.Mono<SubagentTaskView> get(String sessionId, String taskId)
    • cancel

      public reactor.core.publisher.Mono<Boolean> cancel(String sessionId, String taskId)
      Returns:
      true if the cancel request was accepted by the repository.