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

# GraphOutputStreamResponse

> Represents a response from a graph output stream. This class contains all possible data types that can be returned from graph nodes during execution. Each type serves a specific purpose in the graph processing pipeline.

## Constructors

* [constructor](#constructor)

## Methods

* [isString](#isstring)
* [isCustom](#iscustom)
* [isClassificationResult](#isclassificationresult)
* [isContent](#iscontent)
* [isGoalAdvancement](#isgoaladvancement)
* [isAudio](#isaudio)
* [isKnowledgeRecords](#isknowledgerecords)
* [isListToolsResponse](#islisttoolsresponse)
* [isLLMChatRequest](#isllmchatrequest)
* [isMatchedIntents](#ismatchedintents)
* [isMatchedKeywords](#ismatchedkeywords)
* [isSafetyResult](#issafetyresult)
* [isMemoryState](#ismemorystate)
* [isToolCallResponse](#istoolcallresponse)
* [isTextStream](#istextstream)
* [isContentStream](#iscontentstream)
* [isTTSOutputStream](#isttsoutputstream)
* [isSpeechChunkStream](#isspeechchunkstream)
* [isGraphError](#isgrapherror)
* [processResponse](#processresponse)

***

## Constructors

### constructor

```typescript theme={"system"}
new GraphOutputStreamResponse(data: T, done?: boolean): GraphOutputStreamResponse
```

Creates a new GraphOutputStreamResponse instance.

#### Parameters

<ParamField body="data" type="T" required>
  The graph output stream data, if available
</ParamField>

<ParamField body="done" type="boolean">
  Whether the graph has finished executing. When true, indicates that
  the graph execution has completed and no more data will be streamed.
</ParamField>

#### Returns

`GraphOutputStreamResponse`

## Methods

### isString

```typescript theme={"system"}
isString(): boolean
```

#### Returns

`boolean`

### isCustom

```typescript theme={"system"}
isCustom(): boolean
```

#### Returns

`boolean`

### isClassificationResult

```typescript theme={"system"}
isClassificationResult(): boolean
```

#### Returns

`boolean`

### isContent

```typescript theme={"system"}
isContent(): boolean
```

#### Returns

`boolean`

### isGoalAdvancement

```typescript theme={"system"}
isGoalAdvancement(): boolean
```

#### Returns

`boolean`

### isAudio

```typescript theme={"system"}
isAudio(): boolean
```

#### Returns

`boolean`

### isKnowledgeRecords

```typescript theme={"system"}
isKnowledgeRecords(): boolean
```

#### Returns

`boolean`

### isListToolsResponse

```typescript theme={"system"}
isListToolsResponse(): boolean
```

#### Returns

`boolean`

### isLLMChatRequest

```typescript theme={"system"}
isLLMChatRequest(): boolean
```

#### Returns

`boolean`

### isMatchedIntents

```typescript theme={"system"}
isMatchedIntents(): boolean
```

#### Returns

`boolean`

### isMatchedKeywords

```typescript theme={"system"}
isMatchedKeywords(): boolean
```

#### Returns

`boolean`

### isSafetyResult

```typescript theme={"system"}
isSafetyResult(): boolean
```

#### Returns

`boolean`

### isMemoryState

```typescript theme={"system"}
isMemoryState(): boolean
```

#### Returns

`boolean`

### isToolCallResponse

```typescript theme={"system"}
isToolCallResponse(): boolean
```

#### Returns

`boolean`

### isTextStream

```typescript theme={"system"}
isTextStream(): boolean
```

#### Returns

`boolean`

### isContentStream

```typescript theme={"system"}
isContentStream(): boolean
```

#### Returns

`boolean`

### isTTSOutputStream

```typescript theme={"system"}
isTTSOutputStream(): boolean
```

#### Returns

`boolean`

### isSpeechChunkStream

```typescript theme={"system"}
isSpeechChunkStream(): boolean
```

#### Returns

`boolean`

### isGraphError

```typescript theme={"system"}
isGraphError(): boolean
```

#### Returns

`boolean`

### processResponse

```typescript theme={"system"}
processResponse(handlers: object): Promise<void>
```

Processes the graph output stream response with type safety using a visitor pattern. This function makes it easy to handle different response types in a switch-like pattern.

#### Parameters

<ParamField body="handlers" type="object" required>
  Object containing handler functions for each type
</ParamField>

#### Returns

`Promise<void>`
