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

# Interface: IExternalWorkflowStore

External workflow store interface.
Provides a minimal API for adding manual nodes/edges into the store.

## Implemented by

- [`DefaultExternalWorkflowStore`](../classes/DefaultExternalWorkflowStore)

## Table of contents

### Methods

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

## Methods

### addNode

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

#### Parameters

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

#### Returns

`void`

#### Defined in

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

---

### getNodes

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

#### Returns

`IUniversalWorkflowNode`[]

#### Defined in

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

---

### addEdge

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

#### Parameters

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

#### Returns

`void`

#### Defined in

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

---

### getEdges

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

#### Returns

`IUniversalWorkflowEdge`[]

#### Defined in

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

---

### addAgentNode

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

#### Parameters

| Name                  | Type     |
| :-------------------- | :------- |
| `agentData`           | `Object` |
| `agentData.id`        | `string` |
| `agentData.name`      | `string` |
| `agentData.level?`    | `number` |
| `agentData.taskName?` | `string` |

#### Returns

`void`

#### Defined in

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

---

### addUserInputNode

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

#### Parameters

| Name                | Type     |
| :------------------ | :------- |
| `inputData`         | `Object` |
| `inputData.id`      | `string` |
| `inputData.content` | `string` |

#### Returns

`void`

#### Defined in

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

---

### clear

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

#### Returns

`void`

#### Defined in

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

---

### setUpdateCallback

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

#### Parameters

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

#### Returns

`void`

#### Defined in

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