Skip to main content

Module types

Module types 

Source
Expand description

Core types for the Copilot SDK.

Modules§

session_lifecycle_event_types
Session lifecycle event type constants.

Structs§

AzureOptions
Azure-specific provider options.
ClientOptions
Options for creating a CopilotClient.
CustomAgentConfig
Configuration for a custom agent.
ErrorOccurredHookInput
Input for the error-occurred hook.
ErrorOccurredHookOutput
Output for the error-occurred hook.
GetAuthStatusResponse
Response from auth.getStatus request.
GetForegroundSessionResponse
Response from session.getForeground.
GetStatusResponse
Response from status.get request.
InfiniteSessionConfig
Configuration for infinite sessions (automatic context compaction).
McpLocalServerConfig
Configuration for a local/stdio MCP server.
McpRemoteServerConfig
Configuration for a remote MCP server (HTTP or SSE).
MessageOptions
Options for sending a message.
ModelBilling
Model billing information.
ModelCapabilities
Model capabilities - what the model supports.
ModelInfo
Information about an available model.
ModelLimits
Model limits.
ModelPolicy
Model policy state.
ModelSupports
What features a model supports.
ModelVisionLimits
Vision limits for a model.
PermissionRequest
Permission request from the server.
PermissionRequestResult
Result of a permission request (response to CLI).
PingResponse
Response from a ping request.
PostToolUseHookInput
Input for the post-tool-use hook.
PostToolUseHookOutput
Output for the post-tool-use hook.
PreToolUseHookInput
Input for the pre-tool-use hook.
PreToolUseHookOutput
Output for the pre-tool-use hook.
ProviderConfig
Provider configuration for BYOK (Bring Your Own Key).
ResumeSessionConfig
Configuration for resuming an existing session.
SelectionAttachment
Attachment representing a text selection in a file.
SelectionPosition
Position in a text document (line + character).
SelectionRange
Range within a text document.
SessionConfig
Configuration for creating a new session.
SessionEndHookInput
Input for the session-end hook.
SessionEndHookOutput
Output for the session-end hook.
SessionHooks
Configuration for session hooks.
SessionLifecycleEvent
Session lifecycle event notification.
SessionLifecycleEventMetadata
Metadata for session lifecycle events.
SessionMetadata
Metadata about a session.
SessionStartHookInput
Input for the session-start hook.
SessionStartHookOutput
Output for the session-start hook.
SetForegroundSessionResponse
Response from session.setForeground.
StopError
Error collected during client stop.
SystemMessageConfig
System message configuration.
Tool
Tool definition for registration with a session.
ToolBinaryResult
Binary result from a tool execution.
ToolInvocation
Information about a tool invocation from the server.
ToolResultObject
Result object returned from tool execution.
UserInputInvocation
Context for a user input invocation.
UserInputRequest
Request for user input from the server.
UserInputResponse
Response to a user input request.
UserMessageAttachment
Attachment item for user messages.
UserPromptSubmittedHookInput
Input for the user-prompt-submitted hook.
UserPromptSubmittedHookOutput
Output for the user-prompt-submitted hook.

Enums§

AttachmentType
Attachment type for user messages.
ConnectionState
Connection state of the client.
LogLevel
Log level for the CLI.
McpServerConfig
MCP server configuration (either local or remote).
SystemMessageMode
System message mode for session configuration.

Constants§

SDK_PROTOCOL_VERSION
SDK protocol version - must match copilot-agent-runtime server.

Type Aliases§

ErrorOccurredHandler
PostToolUseHandler
PreToolUseHandler
Handler types for session hooks.
SessionEndHandler
SessionStartHandler
ToolResult
Convenient alias for tool results.
UserPromptSubmittedHandler