Uses of Class
io.agentscope.harness.agent.subagent.task.BackgroundTask
Packages that use BackgroundTask
-
Uses of BackgroundTask in io.agentscope.harness.agent.subagent.task
Methods in io.agentscope.harness.agent.subagent.task that return BackgroundTaskModifier and TypeMethodDescriptionRetrieve a background task by session and task ID, ornullif not found.WorkspaceTaskRepository.getTask(io.agentscope.core.agent.RuntimeContext rc, String sessionId, String taskId) TaskRepository.putTask(io.agentscope.core.agent.RuntimeContext rc, String taskId, String subAgentId, String sessionId, TaskRunSpec spec) Submit a new background task according toTaskRunSpec.WorkspaceTaskRepository.putTask(io.agentscope.core.agent.RuntimeContext rc, String taskId, String subAgentId, String sessionId, TaskRunSpec spec) BackgroundTask.whenComplete(BiConsumer<String, Throwable> action) Observe the backing future; workspace local tasks persist their result before resolving it.Methods in io.agentscope.harness.agent.subagent.task that return types with arguments of type BackgroundTaskModifier and TypeMethodDescriptionTaskRepository.listTasks(io.agentscope.core.agent.RuntimeContext rc, String sessionId, TaskStatus filter) List all tracked tasks for the given session, optionally filtered by status.WorkspaceTaskRepository.listTasks(io.agentscope.core.agent.RuntimeContext rc, String sessionId, TaskStatus filter)