tasks namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncancel(SessionTasksCancelParams params) Identifier of the background task to cancel.Identifies the target session.Identifier of the background task to fetch progress for.list()Identifies the target session.Identifies the target session.Identifier of the task to promote to background mode.refresh()Identifies the target session.remove(SessionTasksRemoveParams params) Identifier of the completed or cancelled task to remove from tracking.Identifier of the target agent task, message content, and optional sender agent ID.Agent type, prompt, name, and optional description and model override for the new task.Identifies the target session.
-
Method Details
-
startAgent
public CompletableFuture<SessionTasksStartAgentResult> startAgent(SessionTasksStartAgentParams params) Agent type, prompt, name, and optional description and model override for the new task.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
list
Identifies the target session.- Since:
- 1.0.0
-
refresh
Identifies the target session.- Since:
- 1.0.0
-
waitForPending
Identifies the target session.- Since:
- 1.0.0
-
getProgress
public CompletableFuture<SessionTasksGetProgressResult> getProgress(SessionTasksGetProgressParams params) Identifier of the background task to fetch progress for.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
getCurrentPromotable
Identifies the target session.- Since:
- 1.0.0
-
promoteToBackground
public CompletableFuture<SessionTasksPromoteToBackgroundResult> promoteToBackground(SessionTasksPromoteToBackgroundParams params) Identifier of the task to promote to background mode.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
promoteCurrentToBackground
Identifies the target session.- Since:
- 1.0.0
-
cancel
Identifier of the background task to cancel.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
remove
Identifier of the completed or cancelled task to remove from tracking.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
sendMessage
public CompletableFuture<SessionTasksSendMessageResult> sendMessage(SessionTasksSendMessageParams params) Identifier of the target agent task, message content, and optional sender agent ID.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-