> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# create Event Bus • TypeScript AI Agent SDK

> createEventBus: API reference for createEventBus

# createEventBus

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**events**](../modules/events) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def createEventBus(agentId: string) -> AgentEventBus
```

### Returns

<ResponseField name="Returns" type="AgentEventBus">
  The result of the operation.
</ResponseField>

## Uses

* `AgentEventBus`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/events/index.ts#L178">
  `src/events/index.ts` at line 178
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Events" icon="bolt" href="/docs/js/events" />
</CardGroup>
