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 SessionCommandsApiAPI methods for thecommandsnamespace.final SessionExtensionsApiAPI methods for theextensionsnamespace.final SessionFleetApiAPI methods for thefleetnamespace.final SessionHistoryApiAPI methods for thehistorynamespace.final SessionMcpApiAPI methods for themcpnamespace.final SessionModeApiAPI methods for themodenamespace.final SessionModelApiAPI methods for themodelnamespace.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 SessionWorkspaceApiAPI methods for theworkspacenamespace. -
Constructor Summary
ConstructorsConstructorDescriptionSessionRpc(RpcCaller caller, String sessionId) Creates a new session RPC client. -
Method Summary
-
Field Details
-
model
API methods for themodelnamespace. -
mode
API methods for themodenamespace. -
plan
API methods for theplannamespace. -
workspace
API methods for theworkspacenamespace. -
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
-