<!--
 ⚠️  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) / AbstractEventService

# Class: AbstractEventService

Abstract base for event services.
Concrete implementations decide how events are delivered.

## Hierarchy

- **`AbstractEventService`**

  ↳ [`DefaultEventService`](DefaultEventService)

  ↳ [`StructuredEventService`](StructuredEventService)

## Implements

- [`IEventService`](../interfaces/IEventService)

## Table of contents

### Constructors

- [constructor](AbstractEventService#constructor)

### Methods

- [emit](AbstractEventService#emit)

## Constructors

### constructor

• **new AbstractEventService**(): [`AbstractEventService`](AbstractEventService)

#### Returns

[`AbstractEventService`](AbstractEventService)

## Methods

### emit

▸ **emit**(`eventType`, `data`, `context?`): `void`

#### Parameters

| Name        | Type                                             |
| :---------- | :----------------------------------------------- |
| `eventType` | `string`                                         |
| `data`      | [`IBaseEventData`](../interfaces/IBaseEventData) |
| `context?`  | [`IEventContext`](../interfaces/IEventContext)   |

#### Returns

`void`

#### Implementation of

[IEventService](../interfaces/IEventService).[emit](../interfaces/IEventService#emit)

#### Defined in

[packages/agents/src/services/event-service.ts:28](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/services/event-service.ts#L28)
