<!--
 ⚠️  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
-->

[playground](../../) / [Exports](../modules) / DefaultExternalWorkflowStore

# Class: DefaultExternalWorkflowStore

Default external workflow store implementation.
Stores injected nodes/edges using universal workflow shapes.

## Implements

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

## Table of contents

### Constructors

- [constructor](DefaultExternalWorkflowStore#constructor)

### Methods

- [addNode](DefaultExternalWorkflowStore#addnode)
- [getNodes](DefaultExternalWorkflowStore#getnodes)
- [addEdge](DefaultExternalWorkflowStore#addedge)
- [getEdges](DefaultExternalWorkflowStore#getedges)
- [addAgentNode](DefaultExternalWorkflowStore#addagentnode)
- [addUserInputNode](DefaultExternalWorkflowStore#adduserinputnode)
- [clear](DefaultExternalWorkflowStore#clear)
- [setUpdateCallback](DefaultExternalWorkflowStore#setupdatecallback)

## Constructors

### constructor

• **new DefaultExternalWorkflowStore**(`logger?`): [`DefaultExternalWorkflowStore`](DefaultExternalWorkflowStore)

#### Parameters

| Name     | Type             | Default value  |
| :------- | :--------------- | :------------- |
| `logger` | `AbstractLogger` | `SilentLogger` |

#### Returns

[`DefaultExternalWorkflowStore`](DefaultExternalWorkflowStore)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:56](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L56)

## Methods

### addNode

▸ **addNode**(`node`): `void`

Add a node (universal shape).

#### Parameters

| Name   | Type                     |
| :----- | :----------------------- |
| `node` | `IUniversalWorkflowNode` |

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[addNode](../interfaces/IExternalWorkflowStore#addnode)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:64](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L64)

---

### getNodes

▸ **getNodes**(): `IUniversalWorkflowNode`[]

Get all nodes.

#### Returns

`IUniversalWorkflowNode`[]

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[getNodes](../interfaces/IExternalWorkflowStore#getnodes)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:75](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L75)

---

### addEdge

▸ **addEdge**(`edge`): `void`

Add an edge (universal shape).

#### Parameters

| Name   | Type                     |
| :----- | :----------------------- |
| `edge` | `IUniversalWorkflowEdge` |

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[addEdge](../interfaces/IExternalWorkflowStore#addedge)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:82](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L82)

---

### getEdges

▸ **getEdges**(): `IUniversalWorkflowEdge`[]

Get all edges.

#### Returns

`IUniversalWorkflowEdge`[]

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[getEdges](../interfaces/IExternalWorkflowStore#getedges)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:93](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L93)

---

### addAgentNode

▸ **addAgentNode**(`agentData`): `void`

Add an agent node helper.

#### Parameters

| Name        | Type                                                 |
| :---------- | :--------------------------------------------------- |
| `agentData` | [`IManualAgentData`](../interfaces/IManualAgentData) |

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[addAgentNode](../interfaces/IExternalWorkflowStore#addagentnode)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:100](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L100)

---

### addUserInputNode

▸ **addUserInputNode**(`_inputData`): `void`

User message node creation is disabled - the event system will create nodes.

#### Parameters

| Name         | Type                                                         |
| :----------- | :----------------------------------------------------------- |
| `_inputData` | [`IManualUserInputData`](../interfaces/IManualUserInputData) |

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[addUserInputNode](../interfaces/IExternalWorkflowStore#adduserinputnode)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:138](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L138)

---

### clear

▸ **clear**(): `void`

Clear all nodes and edges.

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[clear](../interfaces/IExternalWorkflowStore#clear)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:146](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L146)

---

### setUpdateCallback

▸ **setUpdateCallback**(`callback`): `void`

Set update callback (SDK Store trigger).

#### Parameters

| Name       | Type                      |
| :--------- | :------------------------ |
| `callback` | () => `Promise`\<`void`\> |

#### Returns

`void`

#### Implementation of

[IExternalWorkflowStore](../interfaces/IExternalWorkflowStore).[setUpdateCallback](../interfaces/IExternalWorkflowStore#setupdatecallback)

#### Defined in

[playground/src/lib/playground/external-workflow-store.ts:155](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/playground/src/lib/playground/external-workflow-store.ts#L155)
