Skip to main content

Module types

Module types 

Source
Expand description

Extension types: enums, structs, events, and emit results.

This module contains all the data types used across the extension system.

Structs§

AfterProviderResponseEvent
Event fired after a provider response is received.
AgentToolResult
Result of tool execution
BashEvent
Event fired when a bash command is executed.
BeforeProviderRequestEvent
Event fired before a provider request is sent.
Command
A slash-command registered by an extension.
ContextEmitResult
Result of emitting a context event to extensions.
ContextEvent
Event carrying the current context messages for modification.
ExtensionErrorRecord
A recorded extension error for auditing and diagnostics.
ExtensionManifest
Metadata describing an extension’s identity, permissions, and configuration.
InputEvent
Event fired when user input is received.
ModelSelectEvent
Event fired when a model is selected or changed.
ProviderRequestEmitResult
Result of emitting a before-provider-request event to extensions.
SessionBeforeCompactEvent
Event fired before compaction runs.
SessionBeforeEmitResult
Result of emitting a session-before event to extensions.
SessionBeforeForkEvent
Event fired before a session fork.
SessionBeforeSwitchEvent
Event fired before a session switch.
SessionBeforeTreeEvent
Event fired before navigating the session tree.
SessionCompactEvent
Event fired after compaction completes.
SessionShutdownEvent
Event fired when a session is shutting down.
SessionTreeEvent
Event fired after a session tree navigation.
ThinkingLevelSelectEvent
Event fired when a thinking level is selected or changed.
ToolCallEmitResult
Result of emitting a tool-call event to extensions.
ToolResultEmitResult
Result of emitting a tool-result event to extensions.

Enums§

AgentEvent
Events emitted during agent execution.
ExtensionError
Errors that can occur during extension operations.
ExtensionPermission
Permissions that an extension can request.
ExtensionState
Lifecycle state of an extension.
InputEventResult
Result of an input event hook.
InputSource
Source of user input in the extension system.
ModelSelectSource
How a model selection was triggered.
SessionShutdownReason
Reason why a session is shutting down.
SessionSwitchReason
Reason why a session is being switched.

Traits§

AgentTool
Core trait for all agent tools

Type Aliases§

ExtensionErrorListener
Type alias for a closure that listens to extension errors.