Expand description
Extension types: enums, structs, events, and emit results.
This module contains all the data types used across the extension system.
Structs§
- After
Provider Response Event - Event fired after a provider response is received.
- Agent
Tool Result - Result of tool execution
- Bash
Event - Event fired when a bash command is executed.
- Before
Provider Request Event - Event fired before a provider request is sent.
- Command
- A slash-command registered by an extension.
- Context
Emit Result - Result of emitting a context event to extensions.
- Context
Event - Event carrying the current context messages for modification.
- Extension
Error Record - A recorded extension error for auditing and diagnostics.
- Extension
Manifest - Metadata describing an extension’s identity, permissions, and configuration.
- Input
Event - Event fired when user input is received.
- Model
Select Event - Event fired when a model is selected or changed.
- Provider
Request Emit Result - Result of emitting a before-provider-request event to extensions.
- Session
Before Compact Event - Event fired before compaction runs.
- Session
Before Emit Result - Result of emitting a session-before event to extensions.
- Session
Before Fork Event - Event fired before a session fork.
- Session
Before Switch Event - Event fired before a session switch.
- Session
Before Tree Event - Event fired before navigating the session tree.
- Session
Compact Event - Event fired after compaction completes.
- Session
Shutdown Event - Event fired when a session is shutting down.
- Session
Tree Event - Event fired after a session tree navigation.
- Thinking
Level Select Event - Event fired when a thinking level is selected or changed.
- Tool
Call Emit Result - Result of emitting a tool-call event to extensions.
- Tool
Result Emit Result - Result of emitting a tool-result event to extensions.
Enums§
- Agent
Event - Events emitted during agent execution.
- Extension
Error - Errors that can occur during extension operations.
- Extension
Permission - Permissions that an extension can request.
- Extension
State - Lifecycle state of an extension.
- Input
Event Result - Result of an input event hook.
- Input
Source - Source of user input in the extension system.
- Model
Select Source - How a model selection was triggered.
- Session
Shutdown Reason - Reason why a session is shutting down.
- Session
Switch Reason - Reason why a session is being switched.
Traits§
- Agent
Tool - Core trait for all agent tools
Type Aliases§
- Extension
Error Listener - Type alias for a closure that listens to extension errors.