Uses of Class
com.github.copilot.rpc.SessionConfig
Packages that use SessionConfig
Package
Description
Core classes for the GitHub Copilot SDK for Java.
Configuration classes and data transfer objects for the Copilot SDK.
-
Uses of SessionConfig in com.github.copilot
Methods in com.github.copilot with parameters of type SessionConfigModifier and TypeMethodDescriptionCopilotClient.createSession(SessionConfig config) Creates a new Copilot session with the specified configuration. -
Uses of SessionConfig in com.github.copilot.rpc
Methods in com.github.copilot.rpc that return SessionConfigModifier and TypeMethodDescriptionSessionConfig.clearCoauthorEnabled()Clears the coauthorEnabled setting.SessionConfig.clearCustomAgentsLocalOnly()Clears the customAgentsLocalOnly setting.SessionConfig.clearEnableConfigDiscovery()Clears the enableConfigDiscovery setting, reverting to the default behavior.SessionConfig.clearEnableSessionTelemetry()Clears the enableSessionTelemetry setting, reverting to the default behavior.SessionConfig.clearIncludeSubAgentStreamingEvents()Clears the includeSubAgentStreamingEvents setting, reverting to the default behavior.SessionConfig.clearManageScheduleEnabled()Clears the manageScheduleEnabled setting.SessionConfig.clearSkipCustomInstructions()Clears the skipCustomInstructions setting.SessionConfig.clone()Creates a shallow clone of thisSessionConfiginstance.Sets the name of the custom agent to activate when the session starts.SessionConfig.setAvailableTools(List<String> availableTools) Sets the list of tool names that are allowed in this session.SessionConfig.setClientName(String clientName) Sets the client name to identify the application using the SDK.SessionConfig.setCloud(CloudSessionOptions cloud) Sets the cloud session options.SessionConfig.setCoauthorEnabled(boolean coauthorEnabled) Sets whether the runtime is allowed to append aCo-authored-bytrailer when it commits on behalf of the user.SessionConfig.setCommands(List<CommandDefinition> commands) Sets slash commands registered for this session.SessionConfig.setConfigDir(String configDir) Sets a custom configuration directory for the session.SessionConfig.setCustomAgents(List<CustomAgentConfig> customAgents) Sets custom agent configurations.SessionConfig.setCustomAgentsLocalOnly(boolean customAgentsLocalOnly) Sets whether custom-agent discovery is restricted to the session's local working directory (no organisation-level discovery).SessionConfig.setDefaultAgent(DefaultAgentConfig defaultAgent) Sets the default agent configuration.SessionConfig.setDisabledSkills(List<String> disabledSkills) Sets the list of skill names to disable.SessionConfig.setEnableConfigDiscovery(boolean enableConfigDiscovery) Sets whether to automatically discover MCP server configurations and skill directories from the working directory.SessionConfig.setEnableSessionTelemetry(boolean enableSessionTelemetry) Enables or disables internal session telemetry for this session.SessionConfig.setExcludedTools(List<String> excludedTools) Sets the list of tool names to exclude from this session.SessionConfig.setGitHubToken(String gitHubToken) Sets the GitHub token for per-session authentication.SessionConfig.setHooks(SessionHooks hooks) Sets hook handlers for session lifecycle events.SessionConfig.setIncludeSubAgentStreamingEvents(boolean includeSubAgentStreamingEvents) Sets whether to include sub-agent streaming events in the event stream.SessionConfig.setInfiniteSessions(InfiniteSessionConfig infiniteSessions) Sets the infinite session configuration for persistent workspaces and automatic compaction.SessionConfig.setInstructionDirectories(List<String> instructionDirectories) Sets additional directories to search for custom instruction files.SessionConfig.setManageScheduleEnabled(boolean manageScheduleEnabled) Sets whether to enable themanage_scheduletool (host scheduler integration).SessionConfig.setMcpServers(Map<String, McpServerConfig> mcpServers) Sets MCP (Model Context Protocol) server configurations.Sets the AI model to use for this session.SessionConfig.setModelCapabilities(ModelCapabilitiesOverride modelCapabilities) Sets per-property overrides for model capabilities, deep-merged over runtime defaults.SessionConfig.setOnAutoModeSwitch(AutoModeSwitchHandler onAutoModeSwitch) Sets a handler for auto-mode-switch requests from the server.SessionConfig.setOnElicitationRequest(ElicitationHandler onElicitationRequest) Sets a handler for elicitation requests from the server or MCP tools.SessionConfig.setOnEvent(Consumer<SessionEvent> onEvent) Sets an event handler that is registered on the session before thesession.createRPC is issued.SessionConfig.setOnExitPlanMode(ExitPlanModeHandler onExitPlanMode) Sets a handler for exit-plan-mode requests from the server.SessionConfig.setOnPermissionRequest(PermissionHandler onPermissionRequest) Sets a handler for permission requests from the assistant.SessionConfig.setOnUserInputRequest(UserInputHandler onUserInputRequest) Sets a handler for user input requests from the agent.SessionConfig.setProvider(ProviderConfig provider) Sets a custom API provider for BYOK (Bring Your Own Key) scenarios.SessionConfig.setReasoningEffort(String reasoningEffort) Sets the reasoning effort level for models that support it.SessionConfig.setRemoteSession(String remoteSession) Sets the per-session remote behavior control.SessionConfig.setSessionId(String sessionId) Sets a custom session ID.SessionConfig.setSkillDirectories(List<String> skillDirectories) Sets the skill directories for loading custom skills.SessionConfig.setSkipCustomInstructions(boolean skipCustomInstructions) Sets whether to suppress loading of custom instruction files (e.g.SessionConfig.setStreaming(boolean streaming) Sets whether to enable streaming of response chunks.SessionConfig.setSystemMessage(SystemMessageConfig systemMessage) Sets the system message configuration.SessionConfig.setTools(List<ToolDefinition> tools) Sets custom tools that the assistant can invoke during the session.SessionConfig.setWorkingDirectory(String workingDirectory) Sets the working directory for the session.