***

title: setIsolated
slug: /reference/typescript/agents/context-builder/context/set-isolated
description: Set whether this context is isolated from other contexts' conversation history.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

[ref-context]: /docs/server-sdks/reference/typescript/agents/context-builder/context

Set whether this context is isolated from other contexts' conversation history.
When `true`, conversation history from other contexts is not carried over.

## **Parameters**

<ParamField path="isolated" type="boolean" required={true} toc={true}>
  Whether to isolate this context from other contexts' conversation history.
</ParamField>

## **Returns**

[`Context`][ref-context] -- Self for method chaining.

## **Example**

```typescript {7}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');

const secure = builder.addContext('secure');
secure.setIsolated(true);
secure.setSystemPrompt('You are verifying the caller\'s identity.');
secure.addStep('verify').setText('Ask for the caller\'s account PIN.');
```