<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / ErrorHandlingPluginOptions

# Interface: ErrorHandlingPluginOptions

Configuration options for error handling plugin

## Hierarchy

- [`IPluginOptions`](IPluginOptions)

  ↳ **`ErrorHandlingPluginOptions`**

## Table of contents

### Properties

- [enabled](ErrorHandlingPluginOptions#enabled)
- [category](ErrorHandlingPluginOptions#category)
- [priority](ErrorHandlingPluginOptions#priority)
- [moduleEvents](ErrorHandlingPluginOptions#moduleevents)
- [subscribeToAllModuleEvents](ErrorHandlingPluginOptions#subscribetoallmoduleevents)
- [strategy](ErrorHandlingPluginOptions#strategy)
- [maxRetries](ErrorHandlingPluginOptions#maxretries)
- [retryDelay](ErrorHandlingPluginOptions#retrydelay)
- [logErrors](ErrorHandlingPluginOptions#logerrors)
- [failureThreshold](ErrorHandlingPluginOptions#failurethreshold)
- [circuitBreakerTimeout](ErrorHandlingPluginOptions#circuitbreakertimeout)
- [customErrorHandler](ErrorHandlingPluginOptions#customerrorhandler)

## Properties

### enabled

• `Optional` **enabled**: `boolean`

Whether the plugin is enabled

#### Inherited from

[IPluginOptions](IPluginOptions).[enabled](IPluginOptions#enabled)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:126](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L126)

---

### category

• `Optional` **category**: [`PluginCategory`](../enums/PluginCategory)

Plugin category for classification

#### Inherited from

[IPluginOptions](IPluginOptions).[category](IPluginOptions#category)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:128](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L128)

---

### priority

• `Optional` **priority**: `number`

Plugin priority for execution order

#### Inherited from

[IPluginOptions](IPluginOptions).[priority](IPluginOptions#priority)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:130](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L130)

---

### moduleEvents

• `Optional` **moduleEvents**: [`EventType`](../modules#eventtype)[]

Events to subscribe to from modules

#### Inherited from

[IPluginOptions](IPluginOptions).[moduleEvents](IPluginOptions#moduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:132](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L132)

---

### subscribeToAllModuleEvents

• `Optional` **subscribeToAllModuleEvents**: `boolean`

Whether to subscribe to all module events

#### Inherited from

[IPluginOptions](IPluginOptions).[subscribeToAllModuleEvents](IPluginOptions#subscribetoallmoduleevents)

#### Defined in

[packages/agents/src/abstracts/abstract-plugin.ts:134](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/abstracts/abstract-plugin.ts#L134)

---

### strategy

• **strategy**: [`ErrorHandlingStrategy`](../modules#errorhandlingstrategy)

Error handling strategy to use

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:42](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L42)

---

### maxRetries

• `Optional` **maxRetries**: `number`

Maximum number of retry attempts

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:44](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L44)

---

### retryDelay

• `Optional` **retryDelay**: `number`

Initial delay between retries in milliseconds

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:46](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L46)

---

### logErrors

• `Optional` **logErrors**: `boolean`

Whether to log errors

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:48](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L48)

---

### failureThreshold

• `Optional` **failureThreshold**: `number`

Circuit breaker failure threshold

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:50](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L50)

---

### circuitBreakerTimeout

• `Optional` **circuitBreakerTimeout**: `number`

Circuit breaker timeout in milliseconds

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:52](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L52)

---

### customErrorHandler

• `Optional` **customErrorHandler**: (`error`: `Error`, `context`: `ErrorHandlingContextData`) => `Promise`\<`void`\>

Custom error handler function

#### Type declaration

▸ (`error`, `context`): `Promise`\<`void`\>

##### Parameters

| Name      | Type                       |
| :-------- | :------------------------- |
| `error`   | `Error`                    |
| `context` | `ErrorHandlingContextData` |

##### Returns

`Promise`\<`void`\>

#### Defined in

[packages/agents/src/plugins/error-handling/types.ts:54](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/plugins/error-handling/types.ts#L54)
