Class SessionRpc
java.lang.Object
com.github.copilot.sdk.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 SessionCommandsApiAPI methods for thecommandsnamespace.final SessionExtensionsApiAPI methods for theextensionsnamespace.final SessionFleetApiAPI methods for thefleetnamespace.final SessionHistoryApiAPI methods for thehistorynamespace.final SessionInstructionsApiAPI methods for theinstructionsnamespace.final SessionMcpApiAPI methods for themcpnamespace.final SessionModeApiAPI methods for themodenamespace.final SessionModelApiAPI methods for themodelnamespace.final SessionNameApiAPI methods for thenamenamespace.final SessionPermissionsApiAPI methods for thepermissionsnamespace.final SessionPlanApiAPI methods for theplannamespace.final SessionPluginsApiAPI methods for thepluginsnamespace.final SessionShellApiAPI methods for theshellnamespace.final SessionSkillsApiAPI methods for theskillsnamespace.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
-
Field Details
-
auth
API methods for theauthnamespace. -
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. -
skills
API methods for theskillsnamespace. -
mcp
API methods for themcpnamespace. -
plugins
API methods for thepluginsnamespace. -
extensions
API methods for theextensionsnamespace. -
tools
API methods for thetoolsnamespace. -
commands
API methods for thecommandsnamespace. -
ui
API methods for theuinamespace. -
permissions
API methods for thepermissionsnamespace. -
shell
API methods for theshellnamespace. -
history
API methods for thehistorynamespace. -
usage
API methods for theusagenamespace.
-
-
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
-
log
Invokessession.log.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-