java.lang.Object
com.github.copilot.generated.rpc.SessionRpc
Typed client for session-scoped RPC methods.
Provides strongly-typed access to all session-level API namespaces.
The sessionId is injected automatically into every call.
Obtain an instance by calling new SessionRpc(caller, sessionId).
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SessionAgentApiAPI methods for theagentnamespace.final SessionAuthApiAPI methods for theauthnamespace.final SessionCanvasApiAPI methods for thecanvasnamespace.final SessionCommandsApiAPI methods for thecommandsnamespace.final SessionEventLogApiAPI methods for theeventLognamespace.final SessionExtensionsApiAPI methods for theextensionsnamespace.final SessionFleetApiAPI methods for thefleetnamespace.final SessionHistoryApiAPI methods for thehistorynamespace.final SessionInstructionsApiAPI methods for theinstructionsnamespace.final SessionLspApiAPI methods for thelspnamespace.final SessionMcpApiAPI methods for themcpnamespace.final SessionMetadataApiAPI methods for themetadatanamespace.final SessionModeApiAPI methods for themodenamespace.final SessionModelApiAPI methods for themodelnamespace.final SessionNameApiAPI methods for thenamenamespace.final SessionOptionsApiAPI methods for theoptionsnamespace.final SessionPermissionsApiAPI methods for thepermissionsnamespace.final SessionPlanApiAPI methods for theplannamespace.final SessionPluginsApiAPI methods for thepluginsnamespace.final SessionQueueApiAPI methods for thequeuenamespace.final SessionRemoteApiAPI methods for theremotenamespace.final SessionScheduleApiAPI methods for theschedulenamespace.final SessionShellApiAPI methods for theshellnamespace.final SessionSkillsApiAPI methods for theskillsnamespace.final SessionTasksApiAPI methods for thetasksnamespace.final SessionTelemetryApiAPI methods for thetelemetrynamespace.final SessionToolsApiAPI methods for thetoolsnamespace.final SessionUiApiAPI methods for theuinamespace.final SessionUsageApiAPI methods for theusagenamespace.final SessionWorkspacesApiAPI methods for theworkspacesnamespace. -
Constructor Summary
ConstructorsConstructorDescriptionSessionRpc(RpcCaller caller, String sessionId) Creates a new session RPC client. -
Method Summary
Modifier and TypeMethodDescriptionabort(SessionAbortParams params) Parameters for aborting the current turnlog(SessionLogParams params) Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip.send(SessionSendParams params) Parameters for sending a user message to the sessionshutdown(SessionShutdownParams params) Parameters for shutting down the sessionsuspend()Identifies the target session.
-
Field Details
-
auth
API methods for theauthnamespace. -
canvas
API methods for thecanvasnamespace. -
model
API methods for themodelnamespace. -
mode
API methods for themodenamespace. -
name
API methods for thenamenamespace. -
plan
API methods for theplannamespace. -
workspaces
API methods for theworkspacesnamespace. -
instructions
API methods for theinstructionsnamespace. -
fleet
API methods for thefleetnamespace. -
agent
API methods for theagentnamespace. -
tasks
API methods for thetasksnamespace. -
skills
API methods for theskillsnamespace. -
mcp
API methods for themcpnamespace. -
plugins
API methods for thepluginsnamespace. -
options
API methods for theoptionsnamespace. -
lsp
API methods for thelspnamespace. -
extensions
API methods for theextensionsnamespace. -
tools
API methods for thetoolsnamespace. -
commands
API methods for thecommandsnamespace. -
telemetry
API methods for thetelemetrynamespace. -
ui
API methods for theuinamespace. -
permissions
API methods for thepermissionsnamespace. -
metadata
API methods for themetadatanamespace. -
shell
API methods for theshellnamespace. -
history
API methods for thehistorynamespace. -
queue
API methods for thequeuenamespace. -
eventLog
API methods for theeventLognamespace. -
usage
API methods for theusagenamespace. -
remote
API methods for theremotenamespace. -
schedule
API methods for theschedulenamespace.
-
-
Constructor Details
-
SessionRpc
Creates a new session RPC client.- Parameters:
caller- the RPC transport function (e.g.,jsonRpcClient::invoke)sessionId- the session ID to inject into every request
-
-
Method Details
-
suspend
Identifies the target session.- Since:
- 1.0.0
-
send
Parameters for sending a user message to the sessionNote: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
abort
Parameters for aborting the current turnNote: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
shutdown
Parameters for shutting down the sessionNote: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
log
Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-