Skip to content

agents / Exports / ErrorHandlingPluginOptions

Interface: ErrorHandlingPluginOptions

Configuration options for error handling plugin

Hierarchy

Table of contents

Properties

Properties

enabled

Optional enabled: boolean

Whether the plugin is enabled

Inherited from

BasePluginOptions.enabled

Defined in

packages/agents/src/abstracts/base-plugin.ts:125


category

Optional category: PluginCategory

Plugin category for classification

Inherited from

BasePluginOptions.category

Defined in

packages/agents/src/abstracts/base-plugin.ts:127


priority

Optional priority: number

Plugin priority for execution order

Inherited from

BasePluginOptions.priority

Defined in

packages/agents/src/abstracts/base-plugin.ts:129


moduleEvents

Optional moduleEvents: EventType[]

Events to subscribe to from modules

Inherited from

BasePluginOptions.moduleEvents

Defined in

packages/agents/src/abstracts/base-plugin.ts:131


subscribeToAllModuleEvents

Optional subscribeToAllModuleEvents: boolean

Whether to subscribe to all module events

Inherited from

BasePluginOptions.subscribeToAllModuleEvents

Defined in

packages/agents/src/abstracts/base-plugin.ts:133


strategy

strategy: ErrorHandlingStrategy

Error handling strategy to use

Defined in

packages/agents/src/plugins/error-handling/types.ts:42


maxRetries

Optional maxRetries: number

Maximum number of retry attempts

Defined in

packages/agents/src/plugins/error-handling/types.ts:44


retryDelay

Optional retryDelay: number

Initial delay between retries in milliseconds

Defined in

packages/agents/src/plugins/error-handling/types.ts:46


logErrors

Optional logErrors: boolean

Whether to log errors

Defined in

packages/agents/src/plugins/error-handling/types.ts:48


failureThreshold

Optional failureThreshold: number

Circuit breaker failure threshold

Defined in

packages/agents/src/plugins/error-handling/types.ts:50


circuitBreakerTimeout

Optional circuitBreakerTimeout: number

Circuit breaker timeout in milliseconds

Defined in

packages/agents/src/plugins/error-handling/types.ts:52


customErrorHandler

Optional customErrorHandler: (error: Error, context: ErrorHandlingContextData) => Promise<void>

Custom error handler function

Type declaration

▸ (error, context): Promise<void>

Parameters
NameType
errorError
contextErrorHandlingContextData
Returns

Promise<void>

Defined in

packages/agents/src/plugins/error-handling/types.ts:54

Released under the MIT License.