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

IPluginOptions.enabled

Defined in

packages/agents/src/abstracts/abstract-plugin.ts:126


category

Optional category: PluginCategory

Plugin category for classification

Inherited from

IPluginOptions.category

Defined in

packages/agents/src/abstracts/abstract-plugin.ts:128


priority

Optional priority: number

Plugin priority for execution order

Inherited from

IPluginOptions.priority

Defined in

packages/agents/src/abstracts/abstract-plugin.ts:130


moduleEvents

Optional moduleEvents: EventType[]

Events to subscribe to from modules

Inherited from

IPluginOptions.moduleEvents

Defined in

packages/agents/src/abstracts/abstract-plugin.ts:132


subscribeToAllModuleEvents

Optional subscribeToAllModuleEvents: boolean

Whether to subscribe to all module events

Inherited from

IPluginOptions.subscribeToAllModuleEvents

Defined in

packages/agents/src/abstracts/abstract-plugin.ts:134


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.