Class SessionTasksApi
java.lang.Object
com.github.copilot.generated.rpc.SessionTasksApi
API methods for the
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
@CopilotExperimental 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
@CopilotExperimental 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
@CopilotExperimental public CompletableFuture<SessionTasksGetCurrentPromotableResult> getCurrentPromotable()Identifies the target session.- Since:
- 1.0.0
-
promoteToBackground
@CopilotExperimental 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
@CopilotExperimental public CompletableFuture<SessionTasksPromoteCurrentToBackgroundResult> promoteCurrentToBackground()Identifies the target session.- Since:
- 1.0.0
-
cancel
@CopilotExperimental public CompletableFuture<SessionTasksCancelResult> cancel(SessionTasksCancelParams params) 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
@CopilotExperimental public CompletableFuture<SessionTasksRemoveResult> remove(SessionTasksRemoveParams params) 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
@CopilotExperimental 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
-