Uses of Class
com.github.copilot.sdk.json.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.sdk
Methods in com.github.copilot.sdk 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.sdk.json
Methods in com.github.copilot.sdk.json that return SessionConfigModifier and TypeMethodDescriptionSessionConfig.setAvailableTools(List<String> availableTools) Sets the list of tool names that are allowed in this session.SessionConfig.setCustomAgents(List<CustomAgentConfig> customAgents) Sets custom agent configurations.SessionConfig.setExcludedTools(List<String> excludedTools) Sets the list of tool names to exclude from this session.SessionConfig.setInfiniteSessions(InfiniteSessionConfig infiniteSessions) Sets the infinite session configuration for persistent workspaces and automatic compaction.SessionConfig.setMcpServers(Map<String, Object> mcpServers) Sets MCP (Model Context Protocol) server configurations.Sets the AI model to use for this session.SessionConfig.setOnPermissionRequest(PermissionHandler onPermissionRequest) Sets a handler for permission requests from the assistant.SessionConfig.setProvider(ProviderConfig provider) Sets a custom API provider for BYOK (Bring Your Own Key) scenarios.SessionConfig.setSessionId(String sessionId) Sets a custom session ID.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.