Class SessionRpc

java.lang.Object
com.github.copilot.sdk.generated.rpc.SessionRpc

@Generated("copilot-sdk-codegen") public final class SessionRpc extends Object
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 Details

    • model

      public final SessionModelApi model
      API methods for the model namespace.
    • mode

      public final SessionModeApi mode
      API methods for the mode namespace.
    • plan

      public final SessionPlanApi plan
      API methods for the plan namespace.
    • workspace

      public final SessionWorkspaceApi workspace
      API methods for the workspace namespace.
    • fleet

      public final SessionFleetApi fleet
      API methods for the fleet namespace.
    • agent

      public final SessionAgentApi agent
      API methods for the agent namespace.
    • skills

      public final SessionSkillsApi skills
      API methods for the skills namespace.
    • mcp

      public final SessionMcpApi mcp
      API methods for the mcp namespace.
    • plugins

      public final SessionPluginsApi plugins
      API methods for the plugins namespace.
    • extensions

      public final SessionExtensionsApi extensions
      API methods for the extensions namespace.
    • tools

      public final SessionToolsApi tools
      API methods for the tools namespace.
    • commands

      public final SessionCommandsApi commands
      API methods for the commands namespace.
    • ui

      public final SessionUiApi ui
      API methods for the ui namespace.
    • permissions

      public final SessionPermissionsApi permissions
      API methods for the permissions namespace.
    • shell

      public final SessionShellApi shell
      API methods for the shell namespace.
    • history

      public final SessionHistoryApi history
      API methods for the history namespace.
    • usage

      public final SessionUsageApi usage
      API methods for the usage namespace.
  • Constructor Details

    • SessionRpc

      public SessionRpc(RpcCaller caller, String sessionId)
      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