Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- abort() - Method in class com.github.copilot.sdk.CopilotSession
-
Aborts the currently processing message in this session.
- AbortData(String) - Constructor for record class com.github.copilot.sdk.events.AbortEvent.AbortData
-
Creates an instance of a
AbortDatarecord class. - AbortEvent - Class in com.github.copilot.sdk.events
-
Event: abort
- AbortEvent() - Constructor for class com.github.copilot.sdk.events.AbortEvent
- AbortEvent.AbortData - Record Class in com.github.copilot.sdk.events
- AbstractSessionEvent - Class in com.github.copilot.sdk.events
-
Base class for all session events in the Copilot SDK.
- AbstractSessionEvent() - Constructor for class com.github.copilot.sdk.events.AbstractSessionEvent
- additionalContext() - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Returns the value of the
additionalContextrecord component. - additionalContext() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns the value of the
additionalContextrecord component. - additionalContext() - Method in record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Returns the value of the
additionalContextrecord component. - additionalContext() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Returns the value of the
additionalContextrecord component. - agentDescription() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns the value of the
agentDescriptionrecord component. - agentDisplayName() - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Returns the value of the
agentDisplayNamerecord component. - agentDisplayName() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns the value of the
agentDisplayNamerecord component. - agentName() - Method in record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Returns the value of the
agentNamerecord component. - agentName() - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Returns the value of the
agentNamerecord component. - agentName() - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Returns the value of the
agentNamerecord component. - agentName() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns the value of the
agentNamerecord component. - allow() - Static method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an output that allows the tool to execute.
- allowedTools() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns the value of the
allowedToolsrecord component. - apiCallId() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
apiCallIdrecord component. - APPEND - Enum constant in enum class com.github.copilot.sdk.SystemMessageMode
-
Append the custom content to the default system message.
- arguments() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
argumentsrecord component. - arguments() - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Returns the value of the
argumentsrecord component. - ask() - Static method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an output that asks for user confirmation before executing the tool.
- AssistantIntentData(String) - Constructor for record class com.github.copilot.sdk.events.AssistantIntentEvent.AssistantIntentData
-
Creates an instance of a
AssistantIntentDatarecord class. - AssistantIntentEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.intent
- AssistantIntentEvent() - Constructor for class com.github.copilot.sdk.events.AssistantIntentEvent
- AssistantIntentEvent.AssistantIntentData - Record Class in com.github.copilot.sdk.events
- AssistantMessageData(String, String, List<AssistantMessageEvent.AssistantMessageData.ToolRequest>, String, String, String, String) - Constructor for record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Creates an instance of a
AssistantMessageDatarecord class. - AssistantMessageDeltaData(String, String, Double, String) - Constructor for record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Creates an instance of a
AssistantMessageDeltaDatarecord class. - AssistantMessageDeltaEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.message_delta
- AssistantMessageDeltaEvent() - Constructor for class com.github.copilot.sdk.events.AssistantMessageDeltaEvent
- AssistantMessageDeltaEvent.AssistantMessageDeltaData - Record Class in com.github.copilot.sdk.events
- AssistantMessageEvent - Class in com.github.copilot.sdk.events
-
Event representing a complete message from the assistant.
- AssistantMessageEvent() - Constructor for class com.github.copilot.sdk.events.AssistantMessageEvent
- AssistantMessageEvent.AssistantMessageData - Record Class in com.github.copilot.sdk.events
-
Contains the assistant message content and metadata.
- AssistantMessageEvent.AssistantMessageData.ToolRequest - Record Class in com.github.copilot.sdk.events
-
Represents a request from the assistant to invoke a tool.
- AssistantReasoningData(String, String) - Constructor for record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Creates an instance of a
AssistantReasoningDatarecord class. - AssistantReasoningDeltaData(String, String) - Constructor for record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Creates an instance of a
AssistantReasoningDeltaDatarecord class. - AssistantReasoningDeltaEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.reasoning_delta
- AssistantReasoningDeltaEvent() - Constructor for class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent
- AssistantReasoningDeltaEvent.AssistantReasoningDeltaData - Record Class in com.github.copilot.sdk.events
- AssistantReasoningEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.reasoning
- AssistantReasoningEvent() - Constructor for class com.github.copilot.sdk.events.AssistantReasoningEvent
- AssistantReasoningEvent.AssistantReasoningData - Record Class in com.github.copilot.sdk.events
- AssistantTurnEndData(String) - Constructor for record class com.github.copilot.sdk.events.AssistantTurnEndEvent.AssistantTurnEndData
-
Creates an instance of a
AssistantTurnEndDatarecord class. - AssistantTurnEndEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.turn_end
- AssistantTurnEndEvent() - Constructor for class com.github.copilot.sdk.events.AssistantTurnEndEvent
- AssistantTurnEndEvent.AssistantTurnEndData - Record Class in com.github.copilot.sdk.events
- AssistantTurnStartData(String) - Constructor for record class com.github.copilot.sdk.events.AssistantTurnStartEvent.AssistantTurnStartData
-
Creates an instance of a
AssistantTurnStartDatarecord class. - AssistantTurnStartEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.turn_start
- AssistantTurnStartEvent() - Constructor for class com.github.copilot.sdk.events.AssistantTurnStartEvent
- AssistantTurnStartEvent.AssistantTurnStartData - Record Class in com.github.copilot.sdk.events
- AssistantUsageData(String, Double, Double, Double, Double, Double, Double, String, String, String, String, Map<String, Object>) - Constructor for record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Creates an instance of a
AssistantUsageDatarecord class. - AssistantUsageEvent - Class in com.github.copilot.sdk.events
-
Event: assistant.usage
- AssistantUsageEvent() - Constructor for class com.github.copilot.sdk.events.AssistantUsageEvent
- AssistantUsageEvent.AssistantUsageData - Record Class in com.github.copilot.sdk.events
- Attachment - Record Class in com.github.copilot.sdk.json
-
Represents a file attachment to include with a message.
- Attachment(String, String, String) - Constructor for record class com.github.copilot.sdk.json.Attachment
-
Creates an instance of a
Attachmentrecord class. - Attachment(String, String, String, String, String, UserMessageEvent.UserMessageData.Attachment.Selection) - Constructor for record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Creates an instance of a
Attachmentrecord class. - attachments() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns a defensive copy of the attachments list.
- AUTOCLOSEABLE_TIMEOUT_SECONDS - Static variable in class com.github.copilot.sdk.CopilotClient
-
Timeout, in seconds, used by
CopilotClient.close()when waiting for graceful shutdown viaCopilotClient.stop(). - AzureOptions - Class in com.github.copilot.sdk.json
-
Azure OpenAI-specific configuration options.
- AzureOptions() - Constructor for class com.github.copilot.sdk.json.AzureOptions
B
- BACKGROUND - Static variable in class com.github.copilot.sdk.json.SessionLifecycleEventTypes
-
Event fired when a session moves to background (TUI+server mode).
- binaryResultsForLlm() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
binaryResultsForLlmrecord component. - branch() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Returns the value of the
branchrecord component.
C
- cachedInput() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Returns the value of the
cachedInputrecord component. - cacheReadTokens() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
cacheReadTokensrecord component. - cacheWriteTokens() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
cacheWriteTokensrecord component. - character() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Returns the value of the
characterrecord component. - checkpointNumber() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
checkpointNumberrecord component. - checkpointPath() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
checkpointPathrecord component. - cleanupActions() - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Returns the value of the
cleanupActionsrecord component. - close() - Method in class com.github.copilot.sdk.CopilotClient
-
Closes this client using graceful shutdown semantics.
- close() - Method in class com.github.copilot.sdk.CopilotSession
-
Disposes the session and releases all associated resources.
- code() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Returns the value of the
coderecord component. - codeChanges() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
codeChangesrecord component. - CodeChanges(double, double, List<String>) - Constructor for record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Creates an instance of a
CodeChangesrecord class. - com.github.copilot.sdk - package com.github.copilot.sdk
-
Core classes for the GitHub Copilot SDK for Java.
- com.github.copilot.sdk.events - package com.github.copilot.sdk.events
-
Event types emitted during Copilot session processing.
- com.github.copilot.sdk.json - package com.github.copilot.sdk.json
-
Configuration classes and data transfer objects for the Copilot SDK.
- compactionTokensUsed() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
compactionTokensUsedrecord component. - CompactionTokensUsed(double, double, double) - Constructor for record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Creates an instance of a
CompactionTokensUsedrecord class. - CONNECTED - Enum constant in enum class com.github.copilot.sdk.ConnectionState
-
The client is connected and ready to accept requests.
- CONNECTING - Enum constant in enum class com.github.copilot.sdk.ConnectionState
-
The client is in the process of connecting to the server.
- ConnectionState - Enum Class in com.github.copilot.sdk
-
Represents the connection state of a
CopilotClient. - content() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
contentrecord component. - content() - Method in record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Returns the value of the
contentrecord component. - content() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns the value of the
contentrecord component. - content() - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Returns the value of the
contentrecord component. - content() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Returns the value of the
contentrecord component. - content() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns the value of the
contentrecord component. - context() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
contextrecord component. - CopilotClient - Class in com.github.copilot.sdk
-
Provides a client for interacting with the Copilot CLI server.
- CopilotClient() - Constructor for class com.github.copilot.sdk.CopilotClient
-
Creates a new CopilotClient with default options.
- CopilotClient(CopilotClientOptions) - Constructor for class com.github.copilot.sdk.CopilotClient
-
Creates a new CopilotClient with the specified options.
- CopilotClientOptions - Class in com.github.copilot.sdk.json
-
Configuration options for creating a
CopilotClient. - CopilotClientOptions() - Constructor for class com.github.copilot.sdk.json.CopilotClientOptions
- CopilotSession - Class in com.github.copilot.sdk
-
Represents a single conversation session with the Copilot CLI.
- copilotVersion() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
copilotVersionrecord component. - cost() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
costrecord component. - create(String, String, Map<String, Object>, ToolHandler) - Static method in record class com.github.copilot.sdk.json.ToolDefinition
-
Creates a tool definition with a JSON schema for parameters.
- CREATED - Static variable in class com.github.copilot.sdk.json.SessionLifecycleEventTypes
-
Event fired when a session is created.
- createSession() - Method in class com.github.copilot.sdk.CopilotClient
-
Creates a new Copilot session with default configuration.
- createSession(SessionConfig) - Method in class com.github.copilot.sdk.CopilotClient
-
Creates a new Copilot session with the specified configuration.
- CreateSessionRequest - Class in com.github.copilot.sdk.json
-
Internal request object for creating a new session.
- CreateSessionRequest() - Constructor for class com.github.copilot.sdk.json.CreateSessionRequest
- CreateSessionResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from creating a session.
- CreateSessionResponse(String, String) - Constructor for record class com.github.copilot.sdk.json.CreateSessionResponse
-
Creates an instance of a
CreateSessionResponserecord class. - currentModel() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
currentModelrecord component. - currentTokens() - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Returns the value of the
currentTokensrecord component. - CustomAgentConfig - Class in com.github.copilot.sdk.json
-
Configuration for a custom agent in a Copilot session.
- CustomAgentConfig() - Constructor for class com.github.copilot.sdk.json.CustomAgentConfig
- cwd() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns the value of the
cwdrecord component. - cwd() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns the value of the
cwdrecord component. - cwd() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Returns the value of the
cwdrecord component.
D
- data() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns the value of the
datarecord component. - DELETED - Static variable in class com.github.copilot.sdk.json.SessionLifecycleEventTypes
-
Event fired when a session is deleted.
- deleteSession(String) - Method in class com.github.copilot.sdk.CopilotClient
-
Deletes a session by ID.
- DeleteSessionResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from deleting a session.
- DeleteSessionResponse(boolean, String) - Constructor for record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Creates an instance of a
DeleteSessionResponserecord class. - deltaContent() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns the value of the
deltaContentrecord component. - deltaContent() - Method in record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Returns the value of the
deltaContentrecord component. - deny() - Static method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an output that denies the tool execution.
- deny(String) - Static method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an output that denies the tool execution with a reason.
- description() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns the value of the
descriptionrecord component. - detailedContent() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Returns the value of the
detailedContentrecord component. - DISCONNECTED - Enum constant in enum class com.github.copilot.sdk.ConnectionState
-
The client is not connected to the server.
- displayName() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
displayNamerecord component. - displayName() - Method in record class com.github.copilot.sdk.json.Attachment
-
Returns the value of the
displayNamerecord component. - duration() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
durationrecord component.
E
- encryptedContent() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
encryptedContentrecord component. - end() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Returns the value of the
endrecord component. - equals(Object) - Method in record class com.github.copilot.sdk.events.AbortEvent.AbortData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantIntentEvent.AssistantIntentData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantTurnEndEvent.AssistantTurnEndData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantTurnStartEvent.AssistantTurnStartData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.PendingMessagesModifiedEvent.PendingMessagesModifiedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionCompactionStartEvent.SessionCompactionStartData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionIdleEvent.SessionIdleData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.Attachment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.CreateSessionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.GetLastSessionIdResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.GetMessagesResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.ListSessionsResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.PingResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SendMessageResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Returns the value of the
errorrecord component. - error() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
errorrecord component. - error(String) - Static method in record class com.github.copilot.sdk.json.ToolResultObject
-
Creates an error result with the given error message.
- error(String, String) - Static method in record class com.github.copilot.sdk.json.ToolResultObject
-
Creates an error result with both a text result and error message.
- Error(String, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Creates an instance of a
Errorrecord class. - ERROR - Enum constant in enum class com.github.copilot.sdk.ConnectionState
-
The client encountered an error during connection or operation.
- ERROR - Enum constant in enum class com.github.copilot.sdk.events.SessionShutdownEvent.ShutdownType
- errorReason() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
errorReasonrecord component. - errorType() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns the value of the
errorTyperecord component. - eventCount() - Method in record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Returns the value of the
eventCountrecord component. - EventErrorHandler - Interface in com.github.copilot.sdk
-
A handler for errors thrown by event handlers during event dispatch.
- EventErrorPolicy - Enum Class in com.github.copilot.sdk
-
Controls how event dispatch behaves when an event handler throws an exception.
- events() - Method in record class com.github.copilot.sdk.json.GetMessagesResponse
-
Returns the value of the
eventsrecord component. - eventsRemoved() - Method in record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Returns the value of the
eventsRemovedrecord component.
F
- failure(String, String) - Static method in record class com.github.copilot.sdk.json.ToolResultObject
-
Creates a failure result with the given text and error message.
- filePath() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
filePathrecord component. - filesModified() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Returns the value of the
filesModifiedrecord component. - finalMessage() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns the value of the
finalMessagerecord component. - forceStop() - Method in class com.github.copilot.sdk.CopilotClient
-
Forces an immediate stop of the client without graceful cleanup.
- FOREGROUND - Static variable in class com.github.copilot.sdk.json.SessionLifecycleEventTypes
-
Event fired when a session moves to foreground (TUI+server mode).
G
- get() - Static method in enum class com.github.copilot.sdk.SdkProtocolVersion
-
Gets the SDK protocol version.
- getAllowFreeform() - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Returns whether freeform text input is allowed.
- getAnswer() - Method in class com.github.copilot.sdk.json.UserInputResponse
-
Gets the user's answer.
- getApiKey() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the API key.
- getApiVersion() - Method in class com.github.copilot.sdk.json.AzureOptions
-
Gets the Azure OpenAI API version.
- getArguments() - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Gets the arguments passed to the tool as a Map.
- getArgumentsAs(Class<T>) - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Deserializes the tool arguments into the specified type.
- getAttachments() - Method in class com.github.copilot.sdk.json.MessageOptions
-
Gets the file attachments.
- getAttachments() - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Gets the attachments.
- getAuthStatus() - Method in class com.github.copilot.sdk.CopilotClient
-
Gets current authentication status.
- GetAuthStatusResponse - Class in com.github.copilot.sdk.json
-
Response from the auth.getStatus RPC call.
- GetAuthStatusResponse() - Constructor for class com.github.copilot.sdk.json.GetAuthStatusResponse
- getAuthType() - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- getAvailableTools() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets available tools.
- getAvailableTools() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the list of allowed tool names.
- getAvailableTools() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets available tools.
- getAvailableTools() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the list of allowed tool names.
- getAzure() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the Azure-specific options.
- getBackgroundCompactionThreshold() - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Gets the background compaction threshold.
- getBaseUrl() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the base URL for the API.
- getBearerToken() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the bearer token.
- getBilling() - Method in class com.github.copilot.sdk.json.ModelInfo
- getBranch() - Method in class com.github.copilot.sdk.json.SessionContext
-
Gets the current git branch.
- getBufferExhaustionThreshold() - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Gets the buffer exhaustion threshold.
- getCapabilities() - Method in class com.github.copilot.sdk.json.ModelInfo
- getChoices() - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Gets the optional choices for multiple choice questions.
- getCliArgs() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the extra CLI arguments.
- getCliPath() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the path to the Copilot CLI executable.
- getCliUrl() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the URL of an existing CLI server to connect to.
- getCode() - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Gets the error code.
- getConfigDir() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets config directory.
- getConfigDir() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the configuration directory path.
- getConfigDir() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets config directory.
- getConfigDir() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the custom configuration directory.
- getContent() - Method in class com.github.copilot.sdk.json.SystemMessageConfig
-
Gets the system message content.
- getContext() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Gets the working directory context from session creation.
- getCustomAgents() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets custom agents.
- getCustomAgents() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the custom agent configurations.
- getCustomAgents() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets custom agents.
- getCustomAgents() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the custom agent configurations.
- getCwd() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the working directory for the CLI process.
- getCwd() - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Gets the current working directory.
- getCwd() - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Gets the current working directory.
- getCwd() - Method in class com.github.copilot.sdk.json.SessionContext
-
Gets the working directory where the session was created.
- getData() - Method in class com.github.copilot.sdk.events.AbortEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantIntentEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantMessageDeltaEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantMessageEvent
-
Gets the message data.
- getData() - Method in class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantReasoningEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantTurnEndEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantTurnStartEvent
- getData() - Method in class com.github.copilot.sdk.events.AssistantUsageEvent
- getData() - Method in class com.github.copilot.sdk.events.HookEndEvent
- getData() - Method in class com.github.copilot.sdk.events.HookStartEvent
- getData() - Method in class com.github.copilot.sdk.events.PendingMessagesModifiedEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionCompactionCompleteEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionCompactionStartEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionContextChangedEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionErrorEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionHandoffEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionIdleEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionInfoEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionModelChangeEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionResumeEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionShutdownEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionSnapshotRewindEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionStartEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionTruncationEvent
- getData() - Method in class com.github.copilot.sdk.events.SessionUsageInfoEvent
- getData() - Method in class com.github.copilot.sdk.events.SkillInvokedEvent
- getData() - Method in class com.github.copilot.sdk.events.SubagentCompletedEvent
- getData() - Method in class com.github.copilot.sdk.events.SubagentFailedEvent
- getData() - Method in class com.github.copilot.sdk.events.SubagentSelectedEvent
- getData() - Method in class com.github.copilot.sdk.events.SubagentStartedEvent
- getData() - Method in class com.github.copilot.sdk.events.SystemMessageEvent
- getData() - Method in class com.github.copilot.sdk.events.ToolExecutionCompleteEvent
- getData() - Method in class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent
- getData() - Method in class com.github.copilot.sdk.events.ToolExecutionProgressEvent
- getData() - Method in class com.github.copilot.sdk.events.ToolExecutionStartEvent
- getData() - Method in class com.github.copilot.sdk.events.ToolUserRequestedEvent
- getData() - Method in class com.github.copilot.sdk.events.UserMessageEvent
- getData() - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Gets the additional error data.
- getDefaultReasoningEffort() - Method in class com.github.copilot.sdk.json.ModelInfo
-
Gets the default reasoning effort level.
- getDescription() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the agent description.
- getDisabledSkills() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets disabled skills.
- getDisabledSkills() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the disabled skills.
- getDisabledSkills() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets disabled skills.
- getDisabledSkills() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the disabled skill names.
- getDisableResume() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets disable resume flag.
- getDisplayName() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the human-readable display name.
- getEnabled() - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Gets whether infinite sessions are enabled.
- getEnvironment() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the environment variables for the CLI process.
- getEphemeral() - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Returns whether this is an ephemeral event.
- getError() - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Gets the error if the RPC call failed.
- getExcludedTools() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets excluded tools.
- getExcludedTools() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the list of excluded tool names.
- getExcludedTools() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets excluded tools.
- getExcludedTools() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the list of excluded tool names.
- getExtensionData() - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Gets additional extension data for the request.
- getForegroundSessionId() - Method in class com.github.copilot.sdk.CopilotClient
-
Gets the ID of the session currently displayed in the TUI.
- GetForegroundSessionResponse - Record Class in com.github.copilot.sdk.json
-
Response from session.getForeground RPC call.
- GetForegroundSessionResponse(String, String) - Constructor for record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Creates an instance of a
GetForegroundSessionResponserecord class. - getGithubToken() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the GitHub token for authentication.
- getGitRoot() - Method in class com.github.copilot.sdk.json.SessionContext
-
Gets the git repository root directory.
- getHooks() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets hooks flag.
- getHooks() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the hook handlers configuration.
- getHooks() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets hooks flag.
- getHooks() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the hook handlers configuration.
- getHost() - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- getId() - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Gets the unique identifier for this event.
- getId() - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Gets the request ID.
- getId() - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Gets the response ID.
- getId() - Method in class com.github.copilot.sdk.json.ModelInfo
- getInfer() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets whether inference mode is enabled.
- getInfiniteSessions() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets infinite sessions config.
- getInfiniteSessions() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the infinite session configuration.
- getInfiniteSessions() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets infinite sessions config.
- getInfiniteSessions() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the infinite sessions configuration.
- getJsonrpc() - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Gets the JSON-RPC version.
- getJsonrpc() - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Gets the JSON-RPC version.
- getKind() - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Gets the kind of permission being requested.
- getKind() - Method in class com.github.copilot.sdk.json.PermissionRequestResult
-
Gets the result kind.
- getLastSessionId() - Method in class com.github.copilot.sdk.CopilotClient
-
Gets the ID of the most recently used session.
- GetLastSessionIdResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from getting the last session ID.
- GetLastSessionIdResponse(String) - Constructor for record class com.github.copilot.sdk.json.GetLastSessionIdResponse
-
Creates an instance of a
GetLastSessionIdResponserecord class. - getLimits() - Method in class com.github.copilot.sdk.json.ModelCapabilities
- getLogin() - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- getLogLevel() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the log level for the CLI process.
- getMaxContextWindowTokens() - Method in class com.github.copilot.sdk.json.ModelLimits
- getMaxPromptImages() - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- getMaxPromptImageSize() - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- getMaxPromptTokens() - Method in class com.github.copilot.sdk.json.ModelLimits
- getMcpServers() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets MCP servers.
- getMcpServers() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the MCP server configurations for this agent.
- getMcpServers() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the MCP server configurations.
- getMcpServers() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets MCP servers.
- getMcpServers() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the MCP server configurations.
- getMessage() - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Gets the error message.
- getMessages() - Method in class com.github.copilot.sdk.CopilotSession
-
Gets the complete list of messages and events in the session.
- GetMessagesResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from getting session messages.
- GetMessagesResponse(List<JsonNode>) - Constructor for record class com.github.copilot.sdk.json.GetMessagesResponse
-
Creates an instance of a
GetMessagesResponserecord class. - getMetadata() - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- getMethod() - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Gets the method name.
- getMode() - Method in class com.github.copilot.sdk.json.MessageOptions
-
Gets the delivery mode.
- getMode() - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Gets the mode.
- getMode() - Method in class com.github.copilot.sdk.json.SystemMessageConfig
-
Gets the system message mode.
- getModel() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the model name.
- getModel() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the AI model to use.
- getModel() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the model name.
- getModel() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the AI model to use.
- getModels() - Method in class com.github.copilot.sdk.json.GetModelsResponse
- GetModelsResponse - Class in com.github.copilot.sdk.json
-
Response from the models.list RPC call.
- GetModelsResponse() - Constructor for class com.github.copilot.sdk.json.GetModelsResponse
- getModifiedTime() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Gets the timestamp when the session was last modified.
- getMultiplier() - Method in class com.github.copilot.sdk.json.ModelBilling
- getName() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the unique identifier name for this agent.
- getName() - Method in class com.github.copilot.sdk.json.ModelInfo
- getOnPermissionRequest() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the permission request handler.
- getOnPermissionRequest() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the permission request handler.
- getOnPostToolUse() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Gets the post-tool-use handler.
- getOnPreToolUse() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Gets the pre-tool-use handler.
- getOnSessionEnd() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Gets the session-end handler.
- getOnSessionStart() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Gets the session-start handler.
- getOnUserInputRequest() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the user input request handler.
- getOnUserInputRequest() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the user input request handler.
- getOnUserPromptSubmitted() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Gets the user-prompt-submitted handler.
- getParams() - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Gets the method parameters.
- getParentId() - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Gets the parent event ID, if this event is a child of another.
- getPolicy() - Method in class com.github.copilot.sdk.json.ModelInfo
- getPort() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Gets the TCP port for the CLI server.
- getPrompt() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the system prompt for this agent.
- getPrompt() - Method in class com.github.copilot.sdk.json.MessageOptions
-
Gets the message prompt.
- getPrompt() - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Gets the message prompt.
- getProtocolVersion() - Method in class com.github.copilot.sdk.json.GetStatusResponse
- getProvider() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the provider config.
- getProvider() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the custom API provider configuration.
- getProvider() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the provider config.
- getProvider() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the custom API provider configuration.
- getQuestion() - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Gets the question to ask the user.
- getReasoningEffort() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the reasoning effort.
- getReasoningEffort() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the reasoning effort level.
- getReasoningEffort() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the reasoning effort.
- getReasoningEffort() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the reasoning effort level.
- getRepository() - Method in class com.github.copilot.sdk.json.SessionContext
-
Gets the GitHub repository in "owner/repo" format.
- getRequestPermission() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets request permission flag.
- getRequestPermission() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets request permission flag.
- getRequestUserInput() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets request user input flag.
- getRequestUserInput() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets request user input flag.
- getResult() - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Gets the result of the RPC call.
- getRules() - Method in class com.github.copilot.sdk.json.PermissionRequestResult
-
Gets the approval rules.
- getSessionId() - Method in class com.github.copilot.sdk.CopilotSession
-
Gets the unique identifier for this session.
- getSessionId() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the session ID.
- getSessionId() - Method in class com.github.copilot.sdk.json.HookInvocation
-
Gets the session ID.
- getSessionId() - Method in class com.github.copilot.sdk.json.PermissionInvocation
-
Gets the session ID where the permission was requested.
- getSessionId() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the session ID.
- getSessionId() - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Gets the session ID.
- getSessionId() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the custom session ID.
- getSessionId() - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- getSessionId() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Gets the unique identifier for this session.
- getSessionId() - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Gets the session ID where the tool was invoked.
- getSessionId() - Method in class com.github.copilot.sdk.json.UserInputInvocation
-
Gets the session ID.
- getSkillDirectories() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets skill directories.
- getSkillDirectories() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the skill directories.
- getSkillDirectories() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets skill directories.
- getSkillDirectories() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the skill directories.
- getStartTime() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Gets the timestamp when the session was created.
- getState() - Method in class com.github.copilot.sdk.CopilotClient
-
Gets the current connection state.
- getState() - Method in class com.github.copilot.sdk.json.ModelPolicy
- getStatus() - Method in class com.github.copilot.sdk.CopilotClient
-
Gets CLI status including version and protocol information.
- getStatusMessage() - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- GetStatusResponse - Class in com.github.copilot.sdk.json
-
Response from the status.get RPC call.
- GetStatusResponse() - Constructor for class com.github.copilot.sdk.json.GetStatusResponse
- getStreaming() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets streaming flag.
- getStreaming() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets streaming flag.
- getSummary() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Gets a brief summary of the session's conversation.
- getSupportedMediaTypes() - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- getSupportedReasoningEfforts() - Method in class com.github.copilot.sdk.json.ModelInfo
-
Gets the supported reasoning effort levels.
- getSupports() - Method in class com.github.copilot.sdk.json.ModelCapabilities
- getSystemMessage() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the system message config.
- getSystemMessage() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the system message configuration.
- getSystemMessage() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the system message config.
- getSystemMessage() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the system message configuration.
- getTerms() - Method in class com.github.copilot.sdk.json.ModelPolicy
- getTimestamp() - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Gets the timestamp when this event occurred.
- getTimestamp() - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Gets the timestamp of the hook invocation.
- getTimestamp() - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Gets the timestamp of the hook invocation.
- getToolArgs() - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Gets the arguments passed to the tool.
- getToolArgs() - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Gets the arguments passed to the tool.
- getToolCallId() - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Gets the associated tool call ID, if applicable.
- getToolCallId() - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Gets the unique identifier for this tool call.
- getToolName() - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Gets the name of the tool that was invoked.
- getToolName() - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Gets the name of the tool being invoked.
- getToolName() - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Gets the name of the tool being invoked.
- getToolResult() - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Gets the result returned by the tool.
- getTools() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets the tools.
- getTools() - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Gets the list of tool names available to this agent.
- getTools() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the custom tools for this session.
- getTools() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets the tools.
- getTools() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the custom tools for this session.
- getType() - Method in class com.github.copilot.sdk.events.AbortEvent
- getType() - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Gets the event type discriminator string.
- getType() - Method in class com.github.copilot.sdk.events.AssistantIntentEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantMessageDeltaEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantMessageEvent
-
Gets the event type discriminator string.
- getType() - Method in class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantReasoningEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantTurnEndEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantTurnStartEvent
- getType() - Method in class com.github.copilot.sdk.events.AssistantUsageEvent
- getType() - Method in class com.github.copilot.sdk.events.HookEndEvent
- getType() - Method in class com.github.copilot.sdk.events.HookStartEvent
- getType() - Method in class com.github.copilot.sdk.events.PendingMessagesModifiedEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionCompactionCompleteEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionCompactionStartEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionContextChangedEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionErrorEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionHandoffEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionIdleEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionInfoEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionModelChangeEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionResumeEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionShutdownEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionSnapshotRewindEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionStartEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionTruncationEvent
- getType() - Method in class com.github.copilot.sdk.events.SessionUsageInfoEvent
- getType() - Method in class com.github.copilot.sdk.events.SkillInvokedEvent
- getType() - Method in class com.github.copilot.sdk.events.SubagentCompletedEvent
- getType() - Method in class com.github.copilot.sdk.events.SubagentFailedEvent
- getType() - Method in class com.github.copilot.sdk.events.SubagentSelectedEvent
- getType() - Method in class com.github.copilot.sdk.events.SubagentStartedEvent
- getType() - Method in class com.github.copilot.sdk.events.SystemMessageEvent
- getType() - Method in class com.github.copilot.sdk.events.ToolExecutionCompleteEvent
- getType() - Method in class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent
- getType() - Method in class com.github.copilot.sdk.events.ToolExecutionProgressEvent
- getType() - Method in class com.github.copilot.sdk.events.ToolExecutionStartEvent
- getType() - Method in class com.github.copilot.sdk.events.ToolUserRequestedEvent
- getType() - Method in class com.github.copilot.sdk.events.UserMessageEvent
- getType() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the provider type.
- getType() - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- getUseLoggedInUser() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Returns whether to use the logged-in user for authentication.
- getValue() - Method in enum class com.github.copilot.sdk.SystemMessageMode
-
Returns the JSON value for this mode.
- getVersion() - Method in class com.github.copilot.sdk.json.GetStatusResponse
- getVersionNumber() - Method in enum class com.github.copilot.sdk.SdkProtocolVersion
- getVision() - Method in class com.github.copilot.sdk.json.ModelLimits
- getWireApi() - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Gets the wire API format.
- getWorkingDirectory() - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Gets working directory.
- getWorkingDirectory() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Gets the working directory for the session.
- getWorkingDirectory() - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Gets working directory.
- getWorkingDirectory() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Gets the working directory for the session.
- getWorkspacePath() - Method in class com.github.copilot.sdk.CopilotSession
-
Gets the path to the session workspace directory when infinite sessions are enabled.
H
- handle(PermissionRequest, PermissionInvocation) - Method in interface com.github.copilot.sdk.json.PermissionHandler
-
Handles a permission request from the assistant.
- handle(PostToolUseHookInput, HookInvocation) - Method in interface com.github.copilot.sdk.json.PostToolUseHandler
-
Handles a post-tool-use hook invocation.
- handle(PreToolUseHookInput, HookInvocation) - Method in interface com.github.copilot.sdk.json.PreToolUseHandler
-
Handles a pre-tool-use hook invocation.
- handle(SessionEndHookInput, HookInvocation) - Method in interface com.github.copilot.sdk.json.SessionEndHandler
-
Handles a session end event.
- handle(SessionStartHookInput, HookInvocation) - Method in interface com.github.copilot.sdk.json.SessionStartHandler
-
Handles a session start event.
- handle(UserInputRequest, UserInputInvocation) - Method in interface com.github.copilot.sdk.json.UserInputHandler
-
Handles a user input request from the agent.
- handle(UserPromptSubmittedHookInput, HookInvocation) - Method in interface com.github.copilot.sdk.json.UserPromptSubmittedHandler
-
Handles a user prompt submission event.
- handleError(AbstractSessionEvent, Exception) - Method in interface com.github.copilot.sdk.EventErrorHandler
-
Called when an event handler throws an exception during event dispatch.
- handler() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns the value of the
handlerrecord component. - handoffTime() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
handoffTimerecord component. - hashCode() - Method in record class com.github.copilot.sdk.events.AbortEvent.AbortData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantIntentEvent.AssistantIntentData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantTurnEndEvent.AssistantTurnEndData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantTurnStartEvent.AssistantTurnStartData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.PendingMessagesModifiedEvent.PendingMessagesModifiedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionCompactionStartEvent.SessionCompactionStartData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionIdleEvent.SessionIdleData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.Attachment
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.CreateSessionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.GetLastSessionIdResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.GetMessagesResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.ListSessionsResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.PingResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SendMessageResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Returns a hash code value for this object.
- hasHooks() - Method in class com.github.copilot.sdk.json.SessionHooks
-
Returns whether any hooks are registered.
- HookEndData(String, String, Object, boolean, HookEndEvent.HookEndData.HookError) - Constructor for record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Creates an instance of a
HookEndDatarecord class. - HookEndEvent - Class in com.github.copilot.sdk.events
-
Event: hook.end
- HookEndEvent() - Constructor for class com.github.copilot.sdk.events.HookEndEvent
- HookEndEvent.HookEndData - Record Class in com.github.copilot.sdk.events
- HookEndEvent.HookEndData.HookError - Record Class in com.github.copilot.sdk.events
- HookError(String, String) - Constructor for record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Creates an instance of a
HookErrorrecord class. - HookInvocation - Class in com.github.copilot.sdk.json
-
Context for a hook invocation.
- HookInvocation() - Constructor for class com.github.copilot.sdk.json.HookInvocation
- hookInvocationId() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns the value of the
hookInvocationIdrecord component. - hookInvocationId() - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Returns the value of the
hookInvocationIdrecord component. - HookStartData(String, String, Object) - Constructor for record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Creates an instance of a
HookStartDatarecord class. - HookStartEvent - Class in com.github.copilot.sdk.events
-
Event: hook.start
- HookStartEvent() - Constructor for class com.github.copilot.sdk.events.HookStartEvent
- HookStartEvent.HookStartData - Record Class in com.github.copilot.sdk.events
- hookType() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns the value of the
hookTyperecord component. - hookType() - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Returns the value of the
hookTyperecord component.
I
- InfiniteSessionConfig - Class in com.github.copilot.sdk.json
-
Configuration for infinite sessions with automatic context compaction and workspace persistence.
- InfiniteSessionConfig() - Constructor for class com.github.copilot.sdk.json.InfiniteSessionConfig
- infoType() - Method in record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Returns the value of the
infoTyperecord component. - initialPrompt() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns the value of the
initialPromptrecord component. - initiator() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
initiatorrecord component. - input() - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Returns the value of the
inputrecord component. - input() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Returns the value of the
inputrecord component. - inputTokens() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
inputTokensrecord component. - intent() - Method in record class com.github.copilot.sdk.events.AssistantIntentEvent.AssistantIntentData
-
Returns the value of the
intentrecord component. - invoke(ToolInvocation) - Method in interface com.github.copilot.sdk.json.ToolHandler
-
Invokes the tool with the given invocation context.
- isAuthenticated() - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- isAutoRestart() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Returns whether the client should automatically restart the server on crash.
- isAutoStart() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Returns whether the client should automatically start the server.
- isDisableResume() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Returns whether the resume event is disabled.
- isReasoningEffort() - Method in class com.github.copilot.sdk.json.ModelSupports
-
Returns whether this model supports reasoning effort configuration.
- isRemote() - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Returns whether this session is stored remotely.
- isStreaming() - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Returns whether streaming is enabled.
- isStreaming() - Method in class com.github.copilot.sdk.json.SessionConfig
-
Returns whether streaming is enabled.
- isUserRequested() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
isUserRequestedrecord component. - isUseStdio() - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Returns whether to use stdio transport instead of TCP.
- isVision() - Method in class com.github.copilot.sdk.json.ModelSupports
- isWasFreeform() - Method in class com.github.copilot.sdk.json.UserInputResponse
-
Returns whether the answer was freeform (not from the provided choices).
J
- JsonRpcError - Class in com.github.copilot.sdk.json
-
JSON-RPC 2.0 error structure.
- JsonRpcError() - Constructor for class com.github.copilot.sdk.json.JsonRpcError
- JsonRpcRequest - Class in com.github.copilot.sdk.json
-
JSON-RPC 2.0 request structure.
- JsonRpcRequest() - Constructor for class com.github.copilot.sdk.json.JsonRpcRequest
- JsonRpcResponse - Class in com.github.copilot.sdk.json
-
JSON-RPC 2.0 response structure.
- JsonRpcResponse() - Constructor for class com.github.copilot.sdk.json.JsonRpcResponse
L
- LATEST - Enum constant in enum class com.github.copilot.sdk.SdkProtocolVersion
- line() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Returns the value of the
linerecord component. - linesAdded() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Returns the value of the
linesAddedrecord component. - linesRemoved() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Returns the value of the
linesRemovedrecord component. - listModels() - Method in class com.github.copilot.sdk.CopilotClient
-
Lists available models with their metadata.
- listSessions() - Method in class com.github.copilot.sdk.CopilotClient
-
Lists all available sessions.
- listSessions(SessionListFilter) - Method in class com.github.copilot.sdk.CopilotClient
-
Lists all available sessions with optional filtering.
- ListSessionsResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from listing sessions.
- ListSessionsResponse(List<SessionMetadata>) - Constructor for record class com.github.copilot.sdk.json.ListSessionsResponse
-
Creates an instance of a
ListSessionsResponserecord class.
M
- mcpServerName() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
mcpServerNamerecord component. - mcpToolName() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
mcpToolNamerecord component. - message() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Returns the value of the
messagerecord component. - message() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns the value of the
messagerecord component. - message() - Method in record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Returns the value of the
messagerecord component. - message() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Returns the value of the
messagerecord component. - message() - Method in record class com.github.copilot.sdk.json.PingResponse
-
Returns the value of the
messagerecord component. - messageId() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns the value of the
messageIdrecord component. - messageId() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
messageIdrecord component. - messageId() - Method in record class com.github.copilot.sdk.json.SendMessageResponse
-
Returns the value of the
messageIdrecord component. - MessageOptions - Class in com.github.copilot.sdk.json
-
Options for sending a message to a Copilot session.
- MessageOptions() - Constructor for class com.github.copilot.sdk.json.MessageOptions
- messagesLength() - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Returns the value of the
messagesLengthrecord component. - messagesRemoved() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
messagesRemovedrecord component. - messagesRemovedDuringTruncation() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
messagesRemovedDuringTruncationrecord component. - metadata() - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Returns the value of the
metadatarecord component. - mimeType() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns the value of the
mimeTyperecord component. - model() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
modelrecord component. - ModelBilling - Class in com.github.copilot.sdk.json
-
Model billing information.
- ModelBilling() - Constructor for class com.github.copilot.sdk.json.ModelBilling
- ModelCapabilities - Class in com.github.copilot.sdk.json
-
Model capabilities and limits.
- ModelCapabilities() - Constructor for class com.github.copilot.sdk.json.ModelCapabilities
- ModelInfo - Class in com.github.copilot.sdk.json
-
Information about an available model.
- ModelInfo() - Constructor for class com.github.copilot.sdk.json.ModelInfo
- ModelLimits - Class in com.github.copilot.sdk.json
-
Model limits.
- ModelLimits() - Constructor for class com.github.copilot.sdk.json.ModelLimits
- modelMetrics() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
modelMetricsrecord component. - ModelPolicy - Class in com.github.copilot.sdk.json
-
Model policy state.
- ModelPolicy() - Constructor for class com.github.copilot.sdk.json.ModelPolicy
- ModelSupports - Class in com.github.copilot.sdk.json
-
Model support flags.
- ModelSupports() - Constructor for class com.github.copilot.sdk.json.ModelSupports
- ModelVisionLimits - Class in com.github.copilot.sdk.json
-
Model vision-specific limits.
- ModelVisionLimits() - Constructor for class com.github.copilot.sdk.json.ModelVisionLimits
- modifiedArgs() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns the value of the
modifiedArgsrecord component. - modifiedConfig() - Method in record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Returns the value of the
modifiedConfigrecord component. - modifiedPrompt() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Returns the value of the
modifiedPromptrecord component. - modifiedResult() - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Returns the value of the
modifiedResultrecord component. - modifiedTime() - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Returns the value of the
modifiedTimerecord component.
N
- name() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Returns the value of the
namerecord component. - name() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Returns the value of the
namerecord component. - name() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns the value of the
namerecord component. - name() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns the value of the
namerecord component. - newModel() - Method in record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Returns the value of the
newModelrecord component.
O
- on(Class<T>, Consumer<T>) - Method in class com.github.copilot.sdk.CopilotSession
-
Registers an event handler for a specific event type.
- on(Consumer<AbstractSessionEvent>) - Method in class com.github.copilot.sdk.CopilotSession
-
Registers a callback for all session events.
- onLifecycle(SessionLifecycleHandler) - Method in class com.github.copilot.sdk.CopilotClient
-
Subscribes to all session lifecycle events.
- onLifecycle(String, SessionLifecycleHandler) - Method in class com.github.copilot.sdk.CopilotClient
-
Subscribes to a specific session lifecycle event type.
- onLifecycleEvent(SessionLifecycleEvent) - Method in interface com.github.copilot.sdk.json.SessionLifecycleHandler
-
Called when a session lifecycle event occurs.
- output() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns the value of the
outputrecord component. - output() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Returns the value of the
outputrecord component. - outputTokens() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
outputTokensrecord component. - owner() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Returns the value of the
ownerrecord component.
P
- parameters() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns the value of the
parametersrecord component. - parentToolCallId() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns the value of the
parentToolCallIdrecord component. - parentToolCallId() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
parentToolCallIdrecord component. - parentToolCallId() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
parentToolCallIdrecord component. - parentToolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
parentToolCallIdrecord component. - parentToolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
parentToolCallIdrecord component. - parse(JsonNode) - Static method in class com.github.copilot.sdk.events.SessionEventParser
-
Parses a JsonNode into the appropriate SessionEvent subclass.
- partialOutput() - Method in record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Returns the value of the
partialOutputrecord component. - path() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns the value of the
pathrecord component. - path() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
pathrecord component. - path() - Method in record class com.github.copilot.sdk.json.Attachment
-
Returns the value of the
pathrecord component. - PendingMessagesModifiedData() - Constructor for record class com.github.copilot.sdk.events.PendingMessagesModifiedEvent.PendingMessagesModifiedData
-
Creates an instance of a
PendingMessagesModifiedDatarecord class. - PendingMessagesModifiedEvent - Class in com.github.copilot.sdk.events
-
Event: pending_messages.modified
- PendingMessagesModifiedEvent() - Constructor for class com.github.copilot.sdk.events.PendingMessagesModifiedEvent
- PendingMessagesModifiedEvent.PendingMessagesModifiedData - Record Class in com.github.copilot.sdk.events
- performedBy() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
performedByrecord component. - permissionDecision() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns the value of the
permissionDecisionrecord component. - permissionDecisionReason() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns the value of the
permissionDecisionReasonrecord component. - PermissionHandler - Interface in com.github.copilot.sdk.json
-
Functional interface for handling permission requests from the AI assistant.
- PermissionInvocation - Class in com.github.copilot.sdk.json
-
Context information for a permission request invocation.
- PermissionInvocation() - Constructor for class com.github.copilot.sdk.json.PermissionInvocation
- PermissionRequest - Class in com.github.copilot.sdk.json
-
Represents a permission request from the AI assistant.
- PermissionRequest() - Constructor for class com.github.copilot.sdk.json.PermissionRequest
- PermissionRequestResult - Class in com.github.copilot.sdk.json
-
Result of a permission request decision.
- PermissionRequestResult() - Constructor for class com.github.copilot.sdk.json.PermissionRequestResult
- ping(String) - Method in class com.github.copilot.sdk.CopilotClient
-
Pings the server to check connectivity.
- PingResponse - Record Class in com.github.copilot.sdk.json
-
Response from a ping request to the Copilot CLI server.
- PingResponse(String, long, Integer) - Constructor for record class com.github.copilot.sdk.json.PingResponse
-
Creates an instance of a
PingResponserecord class. - Position(int, int) - Constructor for record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Creates an instance of a
Positionrecord class. - postCompactionTokens() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
postCompactionTokensrecord component. - PostToolUseHandler - Interface in com.github.copilot.sdk.json
-
Handler for post-tool-use hooks.
- PostToolUseHookInput - Class in com.github.copilot.sdk.json
-
Input for a post-tool-use hook.
- PostToolUseHookInput() - Constructor for class com.github.copilot.sdk.json.PostToolUseHookInput
- PostToolUseHookOutput - Record Class in com.github.copilot.sdk.json
-
Output for a post-tool-use hook.
- PostToolUseHookOutput(JsonNode, String, Boolean) - Constructor for record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Creates an instance of a
PostToolUseHookOutputrecord class. - postTruncationMessagesLength() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
postTruncationMessagesLengthrecord component. - postTruncationTokensInMessages() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
postTruncationTokensInMessagesrecord component. - preCompactionMessagesLength() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
preCompactionMessagesLengthrecord component. - preCompactionTokens() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
preCompactionTokensrecord component. - PreToolUseHandler - Interface in com.github.copilot.sdk.json
-
Handler for pre-tool-use hooks.
- PreToolUseHookInput - Class in com.github.copilot.sdk.json
-
Input for a pre-tool-use hook.
- PreToolUseHookInput() - Constructor for class com.github.copilot.sdk.json.PreToolUseHookInput
- PreToolUseHookOutput - Record Class in com.github.copilot.sdk.json
-
Output for a pre-tool-use hook.
- PreToolUseHookOutput(String, String, JsonNode, String, Boolean) - Constructor for record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an instance of a
PreToolUseHookOutputrecord class. - preTruncationMessagesLength() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
preTruncationMessagesLengthrecord component. - preTruncationTokensInMessages() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
preTruncationTokensInMessagesrecord component. - previousModel() - Method in record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Returns the value of the
previousModelrecord component. - producer() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
producerrecord component. - progressMessage() - Method in record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Returns the value of the
progressMessagerecord component. - prompt() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Returns the value of the
promptrecord component. - PROPAGATE_AND_LOG_ERRORS - Enum constant in enum class com.github.copilot.sdk.EventErrorPolicy
-
Propagate errors: log the error and stop dispatch on first listener error (default).
- protocolVersion() - Method in record class com.github.copilot.sdk.json.PingResponse
-
Returns the value of the
protocolVersionrecord component. - providerCallId() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns the value of the
providerCallIdrecord component. - providerCallId() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns the value of the
providerCallIdrecord component. - ProviderConfig - Class in com.github.copilot.sdk.json
-
Configuration for a custom API provider (BYOK - Bring Your Own Key).
- ProviderConfig() - Constructor for class com.github.copilot.sdk.json.ProviderConfig
Q
- quotaSnapshots() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns a defensive copy of the quota snapshots map.
R
- reason() - Method in record class com.github.copilot.sdk.events.AbortEvent.AbortData
-
Returns the value of the
reasonrecord component. - reason() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns the value of the
reasonrecord component. - reasoningId() - Method in record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Returns the value of the
reasoningIdrecord component. - reasoningId() - Method in record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Returns the value of the
reasoningIdrecord component. - reasoningOpaque() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
reasoningOpaquerecord component. - reasoningText() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns the value of the
reasoningTextrecord component. - remoteSessionId() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
remoteSessionIdrecord component. - REPLACE - Enum constant in enum class com.github.copilot.sdk.SystemMessageMode
-
Replace the default system message entirely with the custom content.
- repository() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
repositoryrecord component. - Repository(String, String, String) - Constructor for record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Creates an instance of a
Repositoryrecord class. - requestId() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
requestIdrecord component. - result() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
resultrecord component. - Result(String, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Creates an instance of a
Resultrecord class. - resultType() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
resultTyperecord component. - resumeSession(String) - Method in class com.github.copilot.sdk.CopilotClient
-
Resumes an existing session with default configuration.
- resumeSession(String, ResumeSessionConfig) - Method in class com.github.copilot.sdk.CopilotClient
-
Resumes an existing Copilot session.
- ResumeSessionConfig - Class in com.github.copilot.sdk.json
-
Configuration for resuming an existing Copilot session.
- ResumeSessionConfig() - Constructor for class com.github.copilot.sdk.json.ResumeSessionConfig
- ResumeSessionRequest - Class in com.github.copilot.sdk.json
-
Internal request object for resuming an existing session.
- ResumeSessionRequest() - Constructor for class com.github.copilot.sdk.json.ResumeSessionRequest
- ResumeSessionResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from resuming a session.
- ResumeSessionResponse(String, String) - Constructor for record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Creates an instance of a
ResumeSessionResponserecord class. - resumeTime() - Method in record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Returns the value of the
resumeTimerecord component. - ROUTINE - Enum constant in enum class com.github.copilot.sdk.events.SessionShutdownEvent.ShutdownType
S
- SdkProtocolVersion - Enum Class in com.github.copilot.sdk
-
Provides the SDK protocol version.
- selectedModel() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
selectedModelrecord component. - selection() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
selectionrecord component. - Selection(UserMessageEvent.UserMessageData.Attachment.Selection.Position, UserMessageEvent.UserMessageData.Attachment.Selection.Position) - Constructor for record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Creates an instance of a
Selectionrecord class. - send(MessageOptions) - Method in class com.github.copilot.sdk.CopilotSession
-
Sends a message to the Copilot session.
- send(String) - Method in class com.github.copilot.sdk.CopilotSession
-
Sends a simple text message to the Copilot session.
- sendAndWait(MessageOptions) - Method in class com.github.copilot.sdk.CopilotSession
-
Sends a message and waits until the session becomes idle with default 60 second timeout.
- sendAndWait(MessageOptions, long) - Method in class com.github.copilot.sdk.CopilotSession
-
Sends a message and waits until the session becomes idle.
- sendAndWait(String) - Method in class com.github.copilot.sdk.CopilotSession
-
Sends a simple text message and waits until the session becomes idle.
- SendMessageRequest - Class in com.github.copilot.sdk.json
-
Internal request object for sending a message to a session.
- SendMessageRequest() - Constructor for class com.github.copilot.sdk.json.SendMessageRequest
- SendMessageResponse - Record Class in com.github.copilot.sdk.json
-
Internal response object from sending a message.
- SendMessageResponse(String) - Constructor for record class com.github.copilot.sdk.json.SendMessageResponse
-
Creates an instance of a
SendMessageResponserecord class. - SessionCompactionCompleteData(boolean, String, Double, Double, Double, Double, Double, String, Double, String, SessionCompactionCompleteEvent.CompactionTokensUsed, String) - Constructor for record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Creates an instance of a
SessionCompactionCompleteDatarecord class. - SessionCompactionCompleteEvent - Class in com.github.copilot.sdk.events
-
Event: session.compaction_complete
- SessionCompactionCompleteEvent() - Constructor for class com.github.copilot.sdk.events.SessionCompactionCompleteEvent
- SessionCompactionCompleteEvent.CompactionTokensUsed - Record Class in com.github.copilot.sdk.events
-
Token usage information for the compaction operation.
- SessionCompactionCompleteEvent.SessionCompactionCompleteData - Record Class in com.github.copilot.sdk.events
- SessionCompactionStartData() - Constructor for record class com.github.copilot.sdk.events.SessionCompactionStartEvent.SessionCompactionStartData
-
Creates an instance of a
SessionCompactionStartDatarecord class. - SessionCompactionStartEvent - Class in com.github.copilot.sdk.events
-
Event: session.compaction_start
- SessionCompactionStartEvent() - Constructor for class com.github.copilot.sdk.events.SessionCompactionStartEvent
- SessionCompactionStartEvent.SessionCompactionStartData - Record Class in com.github.copilot.sdk.events
- SessionConfig - Class in com.github.copilot.sdk.json
-
Configuration for creating a new Copilot session.
- SessionConfig() - Constructor for class com.github.copilot.sdk.json.SessionConfig
- SessionContext - Class in com.github.copilot.sdk.json
-
Working directory context for a session.
- SessionContext() - Constructor for class com.github.copilot.sdk.json.SessionContext
- SessionContextChangedEvent - Class in com.github.copilot.sdk.events
-
Event: session.context_changed
- SessionContextChangedEvent() - Constructor for class com.github.copilot.sdk.events.SessionContextChangedEvent
- SessionEndHandler - Interface in com.github.copilot.sdk.json
-
Handler for session-end hooks.
- SessionEndHookInput - Record Class in com.github.copilot.sdk.json
-
Input for a session-end hook.
- SessionEndHookInput(long, String, String, String, String) - Constructor for record class com.github.copilot.sdk.json.SessionEndHookInput
-
Creates an instance of a
SessionEndHookInputrecord class. - SessionEndHookOutput - Record Class in com.github.copilot.sdk.json
-
Output for a session-end hook.
- SessionEndHookOutput(Boolean, List<String>, String) - Constructor for record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Creates an instance of a
SessionEndHookOutputrecord class. - SessionErrorData(String, String, String, Double, String) - Constructor for record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Creates an instance of a
SessionErrorDatarecord class. - SessionErrorEvent - Class in com.github.copilot.sdk.events
-
Event: session.error
- SessionErrorEvent() - Constructor for class com.github.copilot.sdk.events.SessionErrorEvent
- SessionErrorEvent.SessionErrorData - Record Class in com.github.copilot.sdk.events
- SessionEventParser - Class in com.github.copilot.sdk.events
-
Parser for session events that handles polymorphic deserialization.
- SessionEventParser() - Constructor for class com.github.copilot.sdk.events.SessionEventParser
- SessionHandoffData(OffsetDateTime, String, SessionHandoffEvent.SessionHandoffData.Repository, String, String, String) - Constructor for record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Creates an instance of a
SessionHandoffDatarecord class. - SessionHandoffEvent - Class in com.github.copilot.sdk.events
-
Event: session.handoff
- SessionHandoffEvent() - Constructor for class com.github.copilot.sdk.events.SessionHandoffEvent
- SessionHandoffEvent.SessionHandoffData - Record Class in com.github.copilot.sdk.events
- SessionHandoffEvent.SessionHandoffData.Repository - Record Class in com.github.copilot.sdk.events
- SessionHooks - Class in com.github.copilot.sdk.json
-
Hook handlers configuration for a session.
- SessionHooks() - Constructor for class com.github.copilot.sdk.json.SessionHooks
- sessionId() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
sessionIdrecord component. - sessionId() - Method in record class com.github.copilot.sdk.json.CreateSessionResponse
-
Returns the value of the
sessionIdrecord component. - sessionId() - Method in record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Returns the value of the
sessionIdrecord component. - sessionId() - Method in record class com.github.copilot.sdk.json.GetLastSessionIdResponse
-
Returns the value of the
sessionIdrecord component. - sessionId() - Method in record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Returns the value of the
sessionIdrecord component. - SessionIdleData() - Constructor for record class com.github.copilot.sdk.events.SessionIdleEvent.SessionIdleData
-
Creates an instance of a
SessionIdleDatarecord class. - SessionIdleEvent - Class in com.github.copilot.sdk.events
-
Event: session.idle
- SessionIdleEvent() - Constructor for class com.github.copilot.sdk.events.SessionIdleEvent
- SessionIdleEvent.SessionIdleData - Record Class in com.github.copilot.sdk.events
- SessionInfoData(String, String) - Constructor for record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Creates an instance of a
SessionInfoDatarecord class. - SessionInfoEvent - Class in com.github.copilot.sdk.events
-
Event: session.info
- SessionInfoEvent() - Constructor for class com.github.copilot.sdk.events.SessionInfoEvent
- SessionInfoEvent.SessionInfoData - Record Class in com.github.copilot.sdk.events
- SessionLifecycleEvent - Class in com.github.copilot.sdk.json
-
Session lifecycle event notification.
- SessionLifecycleEvent() - Constructor for class com.github.copilot.sdk.json.SessionLifecycleEvent
- SessionLifecycleEventMetadata - Record Class in com.github.copilot.sdk.json
-
Metadata for session lifecycle events.
- SessionLifecycleEventMetadata(String, String, String) - Constructor for record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Creates an instance of a
SessionLifecycleEventMetadatarecord class. - SessionLifecycleEventTypes - Class in com.github.copilot.sdk.json
-
Types of session lifecycle events.
- SessionLifecycleHandler - Interface in com.github.copilot.sdk.json
-
Handler for session lifecycle events.
- SessionListFilter - Class in com.github.copilot.sdk.json
-
Filter options for listing sessions.
- SessionListFilter() - Constructor for class com.github.copilot.sdk.json.SessionListFilter
- sessionLog() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
sessionLogrecord component. - SessionMetadata - Class in com.github.copilot.sdk.json
-
Metadata about an existing Copilot session.
- SessionMetadata() - Constructor for class com.github.copilot.sdk.json.SessionMetadata
- SessionModelChangeData(String, String) - Constructor for record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Creates an instance of a
SessionModelChangeDatarecord class. - SessionModelChangeEvent - Class in com.github.copilot.sdk.events
-
Event: session.model_change
- SessionModelChangeEvent() - Constructor for class com.github.copilot.sdk.events.SessionModelChangeEvent
- SessionModelChangeEvent.SessionModelChangeData - Record Class in com.github.copilot.sdk.events
- SessionResumeData(OffsetDateTime, double) - Constructor for record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Creates an instance of a
SessionResumeDatarecord class. - SessionResumeEvent - Class in com.github.copilot.sdk.events
-
Event: session.resume
- SessionResumeEvent() - Constructor for class com.github.copilot.sdk.events.SessionResumeEvent
- SessionResumeEvent.SessionResumeData - Record Class in com.github.copilot.sdk.events
- sessions() - Method in record class com.github.copilot.sdk.json.ListSessionsResponse
-
Returns the value of the
sessionsrecord component. - SessionShutdownData(SessionShutdownEvent.ShutdownType, String, double, double, double, SessionShutdownEvent.CodeChanges, Map<String, Object>, String) - Constructor for record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Creates an instance of a
SessionShutdownDatarecord class. - SessionShutdownEvent - Class in com.github.copilot.sdk.events
-
Event: session.shutdown
- SessionShutdownEvent() - Constructor for class com.github.copilot.sdk.events.SessionShutdownEvent
- SessionShutdownEvent.CodeChanges - Record Class in com.github.copilot.sdk.events
-
Code changes made during the session.
- SessionShutdownEvent.SessionShutdownData - Record Class in com.github.copilot.sdk.events
-
Data for the session shutdown event.
- SessionShutdownEvent.ShutdownType - Enum Class in com.github.copilot.sdk.events
-
Type of session shutdown.
- SessionSnapshotRewindData(String, int) - Constructor for record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Creates an instance of a
SessionSnapshotRewindDatarecord class. - SessionSnapshotRewindEvent - Class in com.github.copilot.sdk.events
-
Event: session.snapshot_rewind
- SessionSnapshotRewindEvent() - Constructor for class com.github.copilot.sdk.events.SessionSnapshotRewindEvent
- SessionSnapshotRewindEvent.SessionSnapshotRewindData - Record Class in com.github.copilot.sdk.events
- SessionStartData(String, double, String, String, OffsetDateTime, String) - Constructor for record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Creates an instance of a
SessionStartDatarecord class. - SessionStartEvent - Class in com.github.copilot.sdk.events
-
Event: session.start
- SessionStartEvent() - Constructor for class com.github.copilot.sdk.events.SessionStartEvent
- SessionStartEvent.SessionStartData - Record Class in com.github.copilot.sdk.events
- SessionStartHandler - Interface in com.github.copilot.sdk.json
-
Handler for session-start hooks.
- SessionStartHookInput - Record Class in com.github.copilot.sdk.json
-
Input for a session-start hook.
- SessionStartHookInput(long, String, String, String) - Constructor for record class com.github.copilot.sdk.json.SessionStartHookInput
-
Creates an instance of a
SessionStartHookInputrecord class. - SessionStartHookOutput - Record Class in com.github.copilot.sdk.json
-
Output for a session-start hook.
- SessionStartHookOutput(String, Map<String, Object>) - Constructor for record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Creates an instance of a
SessionStartHookOutputrecord class. - sessionStartTime() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
sessionStartTimerecord component. - sessionSummary() - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Returns the value of the
sessionSummaryrecord component. - SessionTruncationData(double, double, double, double, double, double, double, String) - Constructor for record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Creates an instance of a
SessionTruncationDatarecord class. - SessionTruncationEvent - Class in com.github.copilot.sdk.events
-
Event: session.truncation
- SessionTruncationEvent() - Constructor for class com.github.copilot.sdk.events.SessionTruncationEvent
- SessionTruncationEvent.SessionTruncationData - Record Class in com.github.copilot.sdk.events
- SessionUsageInfoData(double, double, double) - Constructor for record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Creates an instance of a
SessionUsageInfoDatarecord class. - SessionUsageInfoEvent - Class in com.github.copilot.sdk.events
-
Event: session.usage_info
- SessionUsageInfoEvent() - Constructor for class com.github.copilot.sdk.events.SessionUsageInfoEvent
- SessionUsageInfoEvent.SessionUsageInfoData - Record Class in com.github.copilot.sdk.events
- setAllowFreeform(Boolean) - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Sets whether freeform text input is allowed.
- setAnswer(String) - Method in class com.github.copilot.sdk.json.UserInputResponse
-
Sets the user's answer.
- setApiKey(String) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets the API key for authentication.
- setApiVersion(String) - Method in class com.github.copilot.sdk.json.AzureOptions
-
Sets the Azure OpenAI API version to use.
- setArguments(JsonNode) - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Sets the tool arguments.
- setAttachments(List<Attachment>) - Method in class com.github.copilot.sdk.json.MessageOptions
-
Sets file attachments to include with the message.
- setAttachments(List<Attachment>) - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Sets the attachments.
- setAuthenticated(boolean) - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- setAuthType(String) - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- setAutoRestart(boolean) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets whether the client should automatically restart the CLI server if it crashes unexpectedly.
- setAutoStart(boolean) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets whether the client should automatically start the CLI server when the first request is made.
- setAvailableTools(List<String>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets available tools.
- setAvailableTools(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the list of tool names that are allowed in this session.
- setAvailableTools(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets available tools.
- setAvailableTools(List<String>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the list of tool names that are allowed in this session.
- setAzure(AzureOptions) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets Azure-specific options for Azure OpenAI Service.
- setBackgroundCompactionThreshold(Double) - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Sets the context utilization threshold at which background compaction starts.
- setBaseUrl(String) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets the base URL for the API.
- setBearerToken(String) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets a bearer token for authentication.
- setBilling(ModelBilling) - Method in class com.github.copilot.sdk.json.ModelInfo
- setBranch(String) - Method in class com.github.copilot.sdk.json.SessionContext
-
Sets the git branch.
- setBranch(String) - Method in class com.github.copilot.sdk.json.SessionListFilter
-
Sets the filter for git branch.
- setBufferExhaustionThreshold(Double) - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Sets the context utilization threshold at which the session blocks until compaction completes.
- setCapabilities(ModelCapabilities) - Method in class com.github.copilot.sdk.json.ModelInfo
- setChoices(List<String>) - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Sets the choices for multiple choice questions.
- setCliArgs(String[]) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets extra arguments to pass to the CLI process.
- setCliPath(String) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the path to the Copilot CLI executable.
- setCliUrl(String) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the URL of an existing CLI server to connect to.
- setCode(int) - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Sets the error code.
- setConfigDir(String) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets config directory.
- setConfigDir(String) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the configuration directory path.
- setConfigDir(String) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets config directory.
- setConfigDir(String) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets a custom configuration directory for the session.
- setContent(String) - Method in class com.github.copilot.sdk.json.SystemMessageConfig
-
Sets the system message content.
- setContext(SessionContext) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets the working directory context.
- setCustomAgents(List<CustomAgentConfig>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets custom agents.
- setCustomAgents(List<CustomAgentConfig>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets custom agent configurations.
- setCustomAgents(List<CustomAgentConfig>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets custom agents.
- setCustomAgents(List<CustomAgentConfig>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets custom agent configurations.
- setCwd(String) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the working directory for the CLI process.
- setCwd(String) - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Sets the current working directory.
- setCwd(String) - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Sets the current working directory.
- setCwd(String) - Method in class com.github.copilot.sdk.json.SessionContext
-
Sets the working directory.
- setCwd(String) - Method in class com.github.copilot.sdk.json.SessionListFilter
-
Sets the filter for exact cwd match.
- setData(AbortEvent.AbortData) - Method in class com.github.copilot.sdk.events.AbortEvent
- setData(AssistantIntentEvent.AssistantIntentData) - Method in class com.github.copilot.sdk.events.AssistantIntentEvent
- setData(AssistantMessageDeltaEvent.AssistantMessageDeltaData) - Method in class com.github.copilot.sdk.events.AssistantMessageDeltaEvent
- setData(AssistantMessageEvent.AssistantMessageData) - Method in class com.github.copilot.sdk.events.AssistantMessageEvent
-
Sets the message data.
- setData(AssistantReasoningDeltaEvent.AssistantReasoningDeltaData) - Method in class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent
- setData(AssistantReasoningEvent.AssistantReasoningData) - Method in class com.github.copilot.sdk.events.AssistantReasoningEvent
- setData(AssistantTurnEndEvent.AssistantTurnEndData) - Method in class com.github.copilot.sdk.events.AssistantTurnEndEvent
- setData(AssistantTurnStartEvent.AssistantTurnStartData) - Method in class com.github.copilot.sdk.events.AssistantTurnStartEvent
- setData(AssistantUsageEvent.AssistantUsageData) - Method in class com.github.copilot.sdk.events.AssistantUsageEvent
- setData(HookEndEvent.HookEndData) - Method in class com.github.copilot.sdk.events.HookEndEvent
- setData(HookStartEvent.HookStartData) - Method in class com.github.copilot.sdk.events.HookStartEvent
- setData(PendingMessagesModifiedEvent.PendingMessagesModifiedData) - Method in class com.github.copilot.sdk.events.PendingMessagesModifiedEvent
- setData(SessionCompactionCompleteEvent.SessionCompactionCompleteData) - Method in class com.github.copilot.sdk.events.SessionCompactionCompleteEvent
- setData(SessionCompactionStartEvent.SessionCompactionStartData) - Method in class com.github.copilot.sdk.events.SessionCompactionStartEvent
- setData(SessionErrorEvent.SessionErrorData) - Method in class com.github.copilot.sdk.events.SessionErrorEvent
- setData(SessionHandoffEvent.SessionHandoffData) - Method in class com.github.copilot.sdk.events.SessionHandoffEvent
- setData(SessionIdleEvent.SessionIdleData) - Method in class com.github.copilot.sdk.events.SessionIdleEvent
- setData(SessionInfoEvent.SessionInfoData) - Method in class com.github.copilot.sdk.events.SessionInfoEvent
- setData(SessionModelChangeEvent.SessionModelChangeData) - Method in class com.github.copilot.sdk.events.SessionModelChangeEvent
- setData(SessionResumeEvent.SessionResumeData) - Method in class com.github.copilot.sdk.events.SessionResumeEvent
- setData(SessionShutdownEvent.SessionShutdownData) - Method in class com.github.copilot.sdk.events.SessionShutdownEvent
- setData(SessionSnapshotRewindEvent.SessionSnapshotRewindData) - Method in class com.github.copilot.sdk.events.SessionSnapshotRewindEvent
- setData(SessionStartEvent.SessionStartData) - Method in class com.github.copilot.sdk.events.SessionStartEvent
- setData(SessionTruncationEvent.SessionTruncationData) - Method in class com.github.copilot.sdk.events.SessionTruncationEvent
- setData(SessionUsageInfoEvent.SessionUsageInfoData) - Method in class com.github.copilot.sdk.events.SessionUsageInfoEvent
- setData(SkillInvokedEvent.SkillInvokedData) - Method in class com.github.copilot.sdk.events.SkillInvokedEvent
- setData(SubagentCompletedEvent.SubagentCompletedData) - Method in class com.github.copilot.sdk.events.SubagentCompletedEvent
- setData(SubagentFailedEvent.SubagentFailedData) - Method in class com.github.copilot.sdk.events.SubagentFailedEvent
- setData(SubagentSelectedEvent.SubagentSelectedData) - Method in class com.github.copilot.sdk.events.SubagentSelectedEvent
- setData(SubagentStartedEvent.SubagentStartedData) - Method in class com.github.copilot.sdk.events.SubagentStartedEvent
- setData(SystemMessageEvent.SystemMessageData) - Method in class com.github.copilot.sdk.events.SystemMessageEvent
- setData(ToolExecutionCompleteEvent.ToolExecutionCompleteData) - Method in class com.github.copilot.sdk.events.ToolExecutionCompleteEvent
- setData(ToolExecutionPartialResultEvent.ToolExecutionPartialResultData) - Method in class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent
- setData(ToolExecutionProgressEvent.ToolExecutionProgressData) - Method in class com.github.copilot.sdk.events.ToolExecutionProgressEvent
- setData(ToolExecutionStartEvent.ToolExecutionStartData) - Method in class com.github.copilot.sdk.events.ToolExecutionStartEvent
- setData(ToolUserRequestedEvent.ToolUserRequestedData) - Method in class com.github.copilot.sdk.events.ToolUserRequestedEvent
- setData(UserMessageEvent.UserMessageData) - Method in class com.github.copilot.sdk.events.UserMessageEvent
- setData(SessionContext) - Method in class com.github.copilot.sdk.events.SessionContextChangedEvent
- setData(Object) - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Sets the additional error data.
- setDefaultReasoningEffort(String) - Method in class com.github.copilot.sdk.json.ModelInfo
-
Sets the default reasoning effort level.
- setDescription(String) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets a description of the agent's capabilities.
- setDisabledSkills(List<String>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets disabled skills.
- setDisabledSkills(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets skills that should be disabled for this session.
- setDisabledSkills(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets disabled skills.
- setDisabledSkills(List<String>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the list of skill names to disable.
- setDisableResume(boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets whether to disable the session.resume event.
- setDisableResume(Boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets disable resume flag.
- setDisplayName(String) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets the human-readable display name.
- setEnabled(Boolean) - Method in class com.github.copilot.sdk.json.InfiniteSessionConfig
-
Sets whether infinite sessions are enabled.
- setEnvironment(Map<String, String>) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets environment variables to pass to the CLI process.
- setEphemeral(Boolean) - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Sets whether this is an ephemeral event.
- setError(JsonRpcError) - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Sets the error for a failed RPC call.
- setEventErrorHandler(EventErrorHandler) - Method in class com.github.copilot.sdk.CopilotSession
-
Sets a custom error handler for exceptions thrown by event handlers.
- setEventErrorPolicy(EventErrorPolicy) - Method in class com.github.copilot.sdk.CopilotSession
-
Sets the error propagation policy for event dispatch.
- setExcludedTools(List<String>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets excluded tools.
- setExcludedTools(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the list of tool names to exclude from this session.
- setExcludedTools(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets excluded tools.
- setExcludedTools(List<String>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the list of tool names to exclude from this session.
- setExtensionData(Map<String, Object>) - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Sets additional extension data for the request.
- setForegroundSessionId(String) - Method in class com.github.copilot.sdk.CopilotClient
-
Requests the TUI to switch to displaying the specified session.
- SetForegroundSessionResponse - Record Class in com.github.copilot.sdk.json
-
Response from session.setForeground RPC call.
- SetForegroundSessionResponse(boolean, String) - Constructor for record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Creates an instance of a
SetForegroundSessionResponserecord class. - setGithubToken(String) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the GitHub token to use for authentication.
- setGitRoot(String) - Method in class com.github.copilot.sdk.json.SessionContext
-
Sets the git repository root directory.
- setGitRoot(String) - Method in class com.github.copilot.sdk.json.SessionListFilter
-
Sets the filter for git root directory.
- setHooks(SessionHooks) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets hook handlers for session lifecycle events.
- setHooks(SessionHooks) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets hook handlers for session lifecycle events.
- setHooks(Boolean) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets hooks flag.
- setHooks(Boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets hooks flag.
- setHost(String) - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- setId(Long) - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Sets the request ID.
- setId(Object) - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Sets the response ID.
- setId(String) - Method in class com.github.copilot.sdk.json.ModelInfo
- setId(UUID) - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Sets the event identifier.
- setInfer(Boolean) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets whether to enable inference mode for this agent.
- setInfiniteSessions(InfiniteSessionConfig) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets infinite sessions config.
- setInfiniteSessions(InfiniteSessionConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the infinite session configuration for persistent workspaces and automatic compaction.
- setInfiniteSessions(InfiniteSessionConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets infinite sessions config.
- setInfiniteSessions(InfiniteSessionConfig) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the infinite session configuration for persistent workspaces and automatic compaction.
- setJsonrpc(String) - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Sets the JSON-RPC version.
- setJsonrpc(String) - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Sets the JSON-RPC version.
- setKind(String) - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Sets the permission kind.
- setKind(String) - Method in class com.github.copilot.sdk.json.PermissionRequestResult
-
Sets the result kind.
- setLimits(ModelLimits) - Method in class com.github.copilot.sdk.json.ModelCapabilities
- setLogin(String) - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- setLogLevel(String) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the log level for the CLI process.
- setMaxContextWindowTokens(int) - Method in class com.github.copilot.sdk.json.ModelLimits
- setMaxPromptImages(int) - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- setMaxPromptImageSize(int) - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- setMaxPromptTokens(Integer) - Method in class com.github.copilot.sdk.json.ModelLimits
- setMcpServers(Map<String, Object>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets MCP servers.
- setMcpServers(Map<String, Object>) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets MCP (Model Context Protocol) servers available to this agent.
- setMcpServers(Map<String, Object>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets MCP (Model Context Protocol) server configurations.
- setMcpServers(Map<String, Object>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets MCP servers.
- setMcpServers(Map<String, Object>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets MCP (Model Context Protocol) server configurations.
- setMessage(String) - Method in class com.github.copilot.sdk.json.JsonRpcError
-
Sets the error message.
- setMetadata(SessionLifecycleEventMetadata) - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- setMethod(String) - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Sets the method name.
- setMode(SystemMessageMode) - Method in class com.github.copilot.sdk.json.SystemMessageConfig
-
Sets the system message mode.
- setMode(String) - Method in class com.github.copilot.sdk.json.MessageOptions
-
Sets the message delivery mode.
- setMode(String) - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Sets the mode.
- setModel(String) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the model name.
- setModel(String) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the AI model to use for the resumed session.
- setModel(String) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the model name.
- setModel(String) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the AI model to use for this session.
- setModels(List<ModelInfo>) - Method in class com.github.copilot.sdk.json.GetModelsResponse
- setModifiedTime(String) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets the session modified time.
- setMultiplier(double) - Method in class com.github.copilot.sdk.json.ModelBilling
- setName(String) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets the unique identifier name for this agent.
- setName(String) - Method in class com.github.copilot.sdk.json.ModelInfo
- setOnPermissionRequest(PermissionHandler) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets a handler for permission requests from the assistant.
- setOnPermissionRequest(PermissionHandler) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets a handler for permission requests from the assistant.
- setOnPostToolUse(PostToolUseHandler) - Method in class com.github.copilot.sdk.json.SessionHooks
-
Sets the handler called after a tool has been executed.
- setOnPreToolUse(PreToolUseHandler) - Method in class com.github.copilot.sdk.json.SessionHooks
-
Sets the handler called before a tool is executed.
- setOnSessionEnd(SessionEndHandler) - Method in class com.github.copilot.sdk.json.SessionHooks
-
Sets the handler called when a session ends.
- setOnSessionStart(SessionStartHandler) - Method in class com.github.copilot.sdk.json.SessionHooks
-
Sets the handler called when a session starts.
- setOnUserInputRequest(UserInputHandler) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets a handler for user input requests from the agent.
- setOnUserInputRequest(UserInputHandler) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets a handler for user input requests from the agent.
- setOnUserPromptSubmitted(UserPromptSubmittedHandler) - Method in class com.github.copilot.sdk.json.SessionHooks
-
Sets the handler called when the user submits a prompt.
- setParams(Object) - Method in class com.github.copilot.sdk.json.JsonRpcRequest
-
Sets the method parameters.
- setParentId(UUID) - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Sets the parent event ID.
- setPolicy(ModelPolicy) - Method in class com.github.copilot.sdk.json.ModelInfo
- setPort(int) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets the TCP port for the CLI server to listen on.
- setPrompt(String) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets the system prompt that defines this agent's behavior.
- setPrompt(String) - Method in class com.github.copilot.sdk.json.MessageOptions
-
Sets the message prompt to send to the assistant.
- setPrompt(String) - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Sets the message prompt.
- setProtocolVersion(int) - Method in class com.github.copilot.sdk.json.GetStatusResponse
- setProvider(ProviderConfig) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the provider config.
- setProvider(ProviderConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets a custom API provider for BYOK scenarios.
- setProvider(ProviderConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the provider config.
- setProvider(ProviderConfig) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets a custom API provider for BYOK (Bring Your Own Key) scenarios.
- setQuestion(String) - Method in class com.github.copilot.sdk.json.UserInputRequest
-
Sets the question to ask the user.
- setReasoningEffort(boolean) - Method in class com.github.copilot.sdk.json.ModelSupports
-
Sets whether this model supports reasoning effort configuration.
- setReasoningEffort(String) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the reasoning effort.
- setReasoningEffort(String) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the reasoning effort level for models that support it.
- setReasoningEffort(String) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the reasoning effort.
- setReasoningEffort(String) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the reasoning effort level for models that support it.
- setRemote(boolean) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets whether this session is stored remotely.
- setRepository(String) - Method in class com.github.copilot.sdk.json.SessionContext
-
Sets the GitHub repository.
- setRepository(String) - Method in class com.github.copilot.sdk.json.SessionListFilter
-
Sets the filter for repository (in "owner/repo" format).
- setRequestPermission(Boolean) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets request permission flag.
- setRequestPermission(Boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets request permission flag.
- setRequestUserInput(Boolean) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets request user input flag.
- setRequestUserInput(Boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets request user input flag.
- setResult(Object) - Method in class com.github.copilot.sdk.json.JsonRpcResponse
-
Sets the result of the RPC call.
- setRules(List<Object>) - Method in class com.github.copilot.sdk.json.PermissionRequestResult
-
Sets approval rules for future similar requests.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.HookInvocation
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.PermissionInvocation
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.SendMessageRequest
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets a custom session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- setSessionId(String) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets the session identifier.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Sets the session ID.
- setSessionId(String) - Method in class com.github.copilot.sdk.json.UserInputInvocation
-
Sets the session ID.
- setSkillDirectories(List<String>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets skill directories.
- setSkillDirectories(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets directories containing skill definitions.
- setSkillDirectories(List<String>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets skill directories.
- setSkillDirectories(List<String>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the skill directories for loading custom skills.
- setStartTime(String) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets the session start time.
- setState(String) - Method in class com.github.copilot.sdk.json.ModelPolicy
- setStatusMessage(String) - Method in class com.github.copilot.sdk.json.GetAuthStatusResponse
- setStreaming(boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets whether to enable streaming of response chunks.
- setStreaming(boolean) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets whether to enable streaming of response chunks.
- setStreaming(Boolean) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets streaming flag.
- setStreaming(Boolean) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets streaming flag.
- setSummary(String) - Method in class com.github.copilot.sdk.json.SessionMetadata
-
Sets the session summary.
- setSupportedMediaTypes(List<String>) - Method in class com.github.copilot.sdk.json.ModelVisionLimits
- setSupportedReasoningEfforts(List<String>) - Method in class com.github.copilot.sdk.json.ModelInfo
-
Sets the supported reasoning effort levels.
- setSupports(ModelSupports) - Method in class com.github.copilot.sdk.json.ModelCapabilities
- setSystemMessage(SystemMessageConfig) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the system message config.
- setSystemMessage(SystemMessageConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the system message configuration.
- setSystemMessage(SystemMessageConfig) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the system message config.
- setSystemMessage(SystemMessageConfig) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the system message configuration.
- setTerms(String) - Method in class com.github.copilot.sdk.json.ModelPolicy
- setTimestamp(long) - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Sets the timestamp of the hook invocation.
- setTimestamp(long) - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Sets the timestamp of the hook invocation.
- setTimestamp(OffsetDateTime) - Method in class com.github.copilot.sdk.events.AbstractSessionEvent
-
Sets the event timestamp.
- setToolArgs(JsonNode) - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Sets the arguments passed to the tool.
- setToolArgs(JsonNode) - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Sets the arguments passed to the tool.
- setToolCallId(String) - Method in class com.github.copilot.sdk.json.PermissionRequest
-
Sets the tool call ID.
- setToolCallId(String) - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Sets the tool call ID.
- setToolName(String) - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Sets the name of the tool that was invoked.
- setToolName(String) - Method in class com.github.copilot.sdk.json.PreToolUseHookInput
-
Sets the name of the tool being invoked.
- setToolName(String) - Method in class com.github.copilot.sdk.json.ToolInvocation
-
Sets the tool name.
- setToolResult(JsonNode) - Method in class com.github.copilot.sdk.json.PostToolUseHookInput
-
Sets the result returned by the tool.
- setTools(List<ToolDefinition>) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets the tools.
- setTools(List<ToolDefinition>) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets custom tools that the assistant can invoke during the session.
- setTools(List<ToolDefinition>) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets the tools.
- setTools(List<ToolDefinition>) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets custom tools that the assistant can invoke during the session.
- setTools(List<String>) - Method in class com.github.copilot.sdk.json.CustomAgentConfig
-
Sets the tools available to this agent.
- setType(String) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets the provider type.
- setType(String) - Method in class com.github.copilot.sdk.json.SessionLifecycleEvent
- setUseLoggedInUser(Boolean) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets whether to use the logged-in user for authentication.
- setUseStdio(boolean) - Method in class com.github.copilot.sdk.json.CopilotClientOptions
-
Sets whether to use stdio transport instead of TCP.
- setVersion(String) - Method in class com.github.copilot.sdk.json.GetStatusResponse
- setVision(boolean) - Method in class com.github.copilot.sdk.json.ModelSupports
- setVision(ModelVisionLimits) - Method in class com.github.copilot.sdk.json.ModelLimits
- setWasFreeform(boolean) - Method in class com.github.copilot.sdk.json.UserInputResponse
-
Sets whether the answer was freeform.
- setWireApi(String) - Method in class com.github.copilot.sdk.json.ProviderConfig
-
Sets the wire API format for custom providers.
- setWorkingDirectory(String) - Method in class com.github.copilot.sdk.json.CreateSessionRequest
-
Sets working directory.
- setWorkingDirectory(String) - Method in class com.github.copilot.sdk.json.ResumeSessionConfig
-
Sets the working directory for the session.
- setWorkingDirectory(String) - Method in class com.github.copilot.sdk.json.ResumeSessionRequest
-
Sets working directory.
- setWorkingDirectory(String) - Method in class com.github.copilot.sdk.json.SessionConfig
-
Sets the working directory for the session.
- shutdownType() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
shutdownTyperecord component. - SkillInvokedData(String, String, String, List<String>) - Constructor for record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Creates an instance of a
SkillInvokedDatarecord class. - SkillInvokedEvent - Class in com.github.copilot.sdk.events
-
Event: skill.invoked
- SkillInvokedEvent() - Constructor for class com.github.copilot.sdk.events.SkillInvokedEvent
- SkillInvokedEvent.SkillInvokedData - Record Class in com.github.copilot.sdk.events
-
Data for the skill invoked event.
- source() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns the value of the
sourcerecord component. - source() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns the value of the
sourcerecord component. - sourceType() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
sourceTyperecord component. - stack() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Returns the value of the
stackrecord component. - stack() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns the value of the
stackrecord component. - start() - Method in class com.github.copilot.sdk.CopilotClient
-
Starts the Copilot client and connects to the server.
- start() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Returns the value of the
startrecord component. - startTime() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
startTimerecord component. - startTime() - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Returns the value of the
startTimerecord component. - statusCode() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns the value of the
statusCoderecord component. - stop() - Method in class com.github.copilot.sdk.CopilotClient
-
Stops the client and closes all sessions.
- SubagentCompletedData(String, String) - Constructor for record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Creates an instance of a
SubagentCompletedDatarecord class. - SubagentCompletedEvent - Class in com.github.copilot.sdk.events
-
Event: subagent.completed
- SubagentCompletedEvent() - Constructor for class com.github.copilot.sdk.events.SubagentCompletedEvent
- SubagentCompletedEvent.SubagentCompletedData - Record Class in com.github.copilot.sdk.events
- SubagentFailedData(String, String, String) - Constructor for record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Creates an instance of a
SubagentFailedDatarecord class. - SubagentFailedEvent - Class in com.github.copilot.sdk.events
-
Event: subagent.failed
- SubagentFailedEvent() - Constructor for class com.github.copilot.sdk.events.SubagentFailedEvent
- SubagentFailedEvent.SubagentFailedData - Record Class in com.github.copilot.sdk.events
- SubagentSelectedData(String, String, String[]) - Constructor for record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Creates an instance of a
SubagentSelectedDatarecord class. - SubagentSelectedEvent - Class in com.github.copilot.sdk.events
-
Event: subagent.selected
- SubagentSelectedEvent() - Constructor for class com.github.copilot.sdk.events.SubagentSelectedEvent
- SubagentSelectedEvent.SubagentSelectedData - Record Class in com.github.copilot.sdk.events
- SubagentStartedData(String, String, String, String) - Constructor for record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Creates an instance of a
SubagentStartedDatarecord class. - SubagentStartedEvent - Class in com.github.copilot.sdk.events
-
Event: subagent.started
- SubagentStartedEvent() - Constructor for class com.github.copilot.sdk.events.SubagentStartedEvent
- SubagentStartedEvent.SubagentStartedData - Record Class in com.github.copilot.sdk.events
- success() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns the value of the
successrecord component. - success() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
successrecord component. - success() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
successrecord component. - success() - Method in record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Returns the value of the
successrecord component. - success() - Method in record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Returns the value of the
successrecord component. - success(String) - Static method in record class com.github.copilot.sdk.json.ToolResultObject
-
Creates a success result with the given text.
- summary() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns the value of the
summaryrecord component. - summary() - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Returns the value of the
summaryrecord component. - summaryContent() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
summaryContentrecord component. - SUPPRESS_AND_LOG_ERRORS - Enum constant in enum class com.github.copilot.sdk.EventErrorPolicy
-
Suppress errors: log the error and continue dispatching to remaining listeners.
- suppressOutput() - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Returns the value of the
suppressOutputrecord component. - suppressOutput() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns the value of the
suppressOutputrecord component. - suppressOutput() - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Returns the value of the
suppressOutputrecord component. - suppressOutput() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Returns the value of the
suppressOutputrecord component. - SystemMessageConfig - Class in com.github.copilot.sdk.json
-
Configuration for customizing the system message.
- SystemMessageConfig() - Constructor for class com.github.copilot.sdk.json.SystemMessageConfig
- SystemMessageData(String, String, Map<String, Object>) - Constructor for record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Creates an instance of a
SystemMessageDatarecord class. - SystemMessageEvent - Class in com.github.copilot.sdk.events
-
Event: system.message
- SystemMessageEvent() - Constructor for class com.github.copilot.sdk.events.SystemMessageEvent
- SystemMessageEvent.SystemMessageData - Record Class in com.github.copilot.sdk.events
- SystemMessageMode - Enum Class in com.github.copilot.sdk
-
Specifies how the system message should be applied to a session.
T
- text() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
textrecord component. - textResultForLlm() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
textResultForLlmrecord component. - timestamp() - Method in record class com.github.copilot.sdk.json.PingResponse
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Returns the value of the
timestamprecord component. - tokenLimit() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
tokenLimitrecord component. - tokenLimit() - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Returns the value of the
tokenLimitrecord component. - tokensRemoved() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns the value of the
tokensRemovedrecord component. - tokensRemovedDuringTruncation() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns the value of the
tokensRemovedDuringTruncationrecord component. - ToolBinaryResult - Record Class in com.github.copilot.sdk.json
-
Binary result from a tool execution.
- ToolBinaryResult(String, String, String, String) - Constructor for record class com.github.copilot.sdk.json.ToolBinaryResult
-
Creates an instance of a
ToolBinaryResultrecord class. - toolCallId() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
toolCallIdrecord component. - toolCallId() - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Returns the value of the
toolCallIdrecord component. - ToolDefinition - Record Class in com.github.copilot.sdk.json
-
Defines a tool that can be invoked by the AI assistant.
- ToolDefinition(String, String, Object, ToolHandler) - Constructor for record class com.github.copilot.sdk.json.ToolDefinition
-
Creates an instance of a
ToolDefinitionrecord class. - ToolExecutionCompleteData(String, boolean, Boolean, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result, ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error, Map<String, Object>, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Creates an instance of a
ToolExecutionCompleteDatarecord class. - ToolExecutionCompleteEvent - Class in com.github.copilot.sdk.events
-
Event: tool.execution_complete
- ToolExecutionCompleteEvent() - Constructor for class com.github.copilot.sdk.events.ToolExecutionCompleteEvent
- ToolExecutionCompleteEvent.ToolExecutionCompleteData - Record Class in com.github.copilot.sdk.events
- ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error - Record Class in com.github.copilot.sdk.events
- ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result - Record Class in com.github.copilot.sdk.events
- ToolExecutionPartialResultData(String, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Creates an instance of a
ToolExecutionPartialResultDatarecord class. - ToolExecutionPartialResultEvent - Class in com.github.copilot.sdk.events
-
Event: tool.execution_partial_result
- ToolExecutionPartialResultEvent() - Constructor for class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent
- ToolExecutionPartialResultEvent.ToolExecutionPartialResultData - Record Class in com.github.copilot.sdk.events
- ToolExecutionProgressData(String, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Creates an instance of a
ToolExecutionProgressDatarecord class. - ToolExecutionProgressEvent - Class in com.github.copilot.sdk.events
-
Event fired when a tool execution reports progress.
- ToolExecutionProgressEvent() - Constructor for class com.github.copilot.sdk.events.ToolExecutionProgressEvent
- ToolExecutionProgressEvent.ToolExecutionProgressData - Record Class in com.github.copilot.sdk.events
- ToolExecutionStartData(String, String, Object, String, String, String) - Constructor for record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Creates an instance of a
ToolExecutionStartDatarecord class. - ToolExecutionStartEvent - Class in com.github.copilot.sdk.events
-
Event: tool.execution_start
- ToolExecutionStartEvent() - Constructor for class com.github.copilot.sdk.events.ToolExecutionStartEvent
- ToolExecutionStartEvent.ToolExecutionStartData - Record Class in com.github.copilot.sdk.events
- ToolHandler - Interface in com.github.copilot.sdk.json
-
Functional interface for handling tool invocations from the AI assistant.
- ToolInvocation - Class in com.github.copilot.sdk.json
-
Represents a tool invocation request from the AI assistant.
- ToolInvocation() - Constructor for class com.github.copilot.sdk.json.ToolInvocation
- toolName() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns the value of the
toolNamerecord component. - toolName() - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Returns the value of the
toolNamerecord component. - ToolRequest(String, String, Object) - Constructor for record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Creates an instance of a
ToolRequestrecord class. - toolRequests() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns a defensive copy of the tool requests list.
- ToolResultObject - Record Class in com.github.copilot.sdk.json
-
Result object returned from a tool execution.
- ToolResultObject(String, String, List<ToolBinaryResult>, String, String, Map<String, Object>) - Constructor for record class com.github.copilot.sdk.json.ToolResultObject
-
Creates an instance of a
ToolResultObjectrecord class. - tools() - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Returns a defensive copy of the tools array.
- toolTelemetry() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns a defensive copy of the tool telemetry map.
- toolTelemetry() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns the value of the
toolTelemetryrecord component. - ToolUserRequestedData(String, String, Object) - Constructor for record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Creates an instance of a
ToolUserRequestedDatarecord class. - ToolUserRequestedEvent - Class in com.github.copilot.sdk.events
-
Event: tool.user_requested
- ToolUserRequestedEvent() - Constructor for class com.github.copilot.sdk.events.ToolUserRequestedEvent
- ToolUserRequestedEvent.ToolUserRequestedData - Record Class in com.github.copilot.sdk.events
- toString() - Method in record class com.github.copilot.sdk.events.AbortEvent.AbortData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantIntentEvent.AssistantIntentData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData.ToolRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantMessageEvent.AssistantMessageData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantReasoningDeltaEvent.AssistantReasoningDeltaData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantReasoningEvent.AssistantReasoningData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantTurnEndEvent.AssistantTurnEndData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantTurnStartEvent.AssistantTurnStartData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.AssistantUsageEvent.AssistantUsageData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData.HookError
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.HookEndEvent.HookEndData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.HookStartEvent.HookStartData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.PendingMessagesModifiedEvent.PendingMessagesModifiedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.CompactionTokensUsed
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionCompactionCompleteEvent.SessionCompactionCompleteData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionCompactionStartEvent.SessionCompactionStartData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionErrorEvent.SessionErrorData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData.Repository
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionHandoffEvent.SessionHandoffData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionIdleEvent.SessionIdleData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionInfoEvent.SessionInfoData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionModelChangeEvent.SessionModelChangeData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionResumeEvent.SessionResumeData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.CodeChanges
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionTruncationEvent.SessionTruncationData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SessionUsageInfoEvent.SessionUsageInfoData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SkillInvokedEvent.SkillInvokedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SubagentCompletedEvent.SubagentCompletedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SubagentFailedEvent.SubagentFailedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SubagentSelectedEvent.SubagentSelectedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SubagentStartedEvent.SubagentStartedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Error
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData.Result
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionCompleteEvent.ToolExecutionCompleteData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionPartialResultEvent.ToolExecutionPartialResultData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionProgressEvent.ToolExecutionProgressData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolExecutionStartEvent.ToolExecutionStartData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.ToolUserRequestedEvent.ToolUserRequestedData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection.Position
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment.Selection
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.Attachment
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.CreateSessionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.DeleteSessionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.GetLastSessionIdResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.GetMessagesResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.ListSessionsResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.PingResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.PostToolUseHookOutput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SendMessageResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SessionEndHookInput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SessionEndHookOutput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SessionLifecycleEventMetadata
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SessionStartHookInput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SessionStartHookOutput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.SetForegroundSessionResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.ToolDefinition
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.ToolResultObject
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Returns a string representation of this record class.
- toString() - Method in record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Returns a string representation of this record class.
- totalApiDurationMs() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
totalApiDurationMsrecord component. - totalPremiumRequests() - Method in record class com.github.copilot.sdk.events.SessionShutdownEvent.SessionShutdownData
-
Returns the value of the
totalPremiumRequestsrecord component. - totalResponseSizeBytes() - Method in record class com.github.copilot.sdk.events.AssistantMessageDeltaEvent.AssistantMessageDeltaData
-
Returns the value of the
totalResponseSizeBytesrecord component. - transformedContent() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Returns the value of the
transformedContentrecord component. - turnId() - Method in record class com.github.copilot.sdk.events.AssistantTurnEndEvent.AssistantTurnEndData
-
Returns the value of the
turnIdrecord component. - turnId() - Method in record class com.github.copilot.sdk.events.AssistantTurnStartEvent.AssistantTurnStartData
-
Returns the value of the
turnIdrecord component. - type() - Method in record class com.github.copilot.sdk.events.SystemMessageEvent.SystemMessageData
-
Returns the value of the
typerecord component. - type() - Method in record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData.Attachment
-
Returns the value of the
typerecord component. - type() - Method in record class com.github.copilot.sdk.json.Attachment
-
Returns the value of the
typerecord component. - type() - Method in record class com.github.copilot.sdk.json.ToolBinaryResult
-
Returns the value of the
typerecord component. - TYPE - Static variable in class com.github.copilot.sdk.events.ToolExecutionProgressEvent
U
- UPDATED - Static variable in class com.github.copilot.sdk.json.SessionLifecycleEventTypes
-
Event fired when a session is updated.
- upToEventId() - Method in record class com.github.copilot.sdk.events.SessionSnapshotRewindEvent.SessionSnapshotRewindData
-
Returns the value of the
upToEventIdrecord component. - UserInputHandler - Interface in com.github.copilot.sdk.json
-
Handler for user input requests from the agent.
- UserInputInvocation - Class in com.github.copilot.sdk.json
-
Context for a user input request invocation.
- UserInputInvocation() - Constructor for class com.github.copilot.sdk.json.UserInputInvocation
- UserInputRequest - Class in com.github.copilot.sdk.json
-
Request for user input from the agent.
- UserInputRequest() - Constructor for class com.github.copilot.sdk.json.UserInputRequest
- UserInputResponse - Class in com.github.copilot.sdk.json
-
Response to a user input request.
- UserInputResponse() - Constructor for class com.github.copilot.sdk.json.UserInputResponse
- UserMessageData(String, String, List<UserMessageEvent.UserMessageData.Attachment>, String) - Constructor for record class com.github.copilot.sdk.events.UserMessageEvent.UserMessageData
-
Creates an instance of a
UserMessageDatarecord class. - UserMessageEvent - Class in com.github.copilot.sdk.events
-
Event: user.message
- UserMessageEvent() - Constructor for class com.github.copilot.sdk.events.UserMessageEvent
- UserMessageEvent.UserMessageData - Record Class in com.github.copilot.sdk.events
- UserMessageEvent.UserMessageData.Attachment - Record Class in com.github.copilot.sdk.events
- UserMessageEvent.UserMessageData.Attachment.Selection - Record Class in com.github.copilot.sdk.events
- UserMessageEvent.UserMessageData.Attachment.Selection.Position - Record Class in com.github.copilot.sdk.events
- UserPromptSubmittedHandler - Interface in com.github.copilot.sdk.json
-
Handler for user-prompt-submitted hooks.
- UserPromptSubmittedHookInput - Record Class in com.github.copilot.sdk.json
-
Input for a user-prompt-submitted hook.
- UserPromptSubmittedHookInput(long, String, String) - Constructor for record class com.github.copilot.sdk.json.UserPromptSubmittedHookInput
-
Creates an instance of a
UserPromptSubmittedHookInputrecord class. - UserPromptSubmittedHookOutput - Record Class in com.github.copilot.sdk.json
-
Output for a user-prompt-submitted hook.
- UserPromptSubmittedHookOutput(String, String, Boolean) - Constructor for record class com.github.copilot.sdk.json.UserPromptSubmittedHookOutput
-
Creates an instance of a
UserPromptSubmittedHookOutputrecord class.
V
- valueOf(String) - Static method in enum class com.github.copilot.sdk.ConnectionState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.copilot.sdk.EventErrorPolicy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.copilot.sdk.events.SessionShutdownEvent.ShutdownType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.copilot.sdk.SdkProtocolVersion
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.copilot.sdk.SystemMessageMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.copilot.sdk.ConnectionState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.copilot.sdk.EventErrorPolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.copilot.sdk.events.SessionShutdownEvent.ShutdownType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.copilot.sdk.SdkProtocolVersion
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.copilot.sdk.SystemMessageMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in record class com.github.copilot.sdk.events.SessionStartEvent.SessionStartData
-
Returns the value of the
versionrecord component.
W
- withModifiedArgs(String, JsonNode) - Static method in record class com.github.copilot.sdk.json.PreToolUseHookOutput
-
Creates an output with modified tool arguments.
- workspacePath() - Method in record class com.github.copilot.sdk.json.CreateSessionResponse
-
Returns the value of the
workspacePathrecord component. - workspacePath() - Method in record class com.github.copilot.sdk.json.GetForegroundSessionResponse
-
Returns the value of the
workspacePathrecord component. - workspacePath() - Method in record class com.github.copilot.sdk.json.ResumeSessionResponse
-
Returns the value of the
workspacePathrecord component.
All Classes and Interfaces|All Packages|Constant Field Values