# Type Alias ChatOptions

type ChatOptions = {
baseUrl?: string;
id?: string;
maxContextSize?: number;
maxOutputTokens?: number;
model?: string | TLLMModel;
persist?: boolean | ILLMContextStore;
}

- Defined in src/types/SDKTypes.ts:21

##### Index

### Properties

baseUrl?
id?
maxContextSize?
maxOutputTokens?
model?
persist?

## Properties

### `Optional` baseUrl

baseUrl?: string

The base URL to use for tool calls this is useful if you are trying to call tools from a remote agent

- Defined in src/types/SDKTypes.ts:60

### `Optional` id

id?: string

The ID of the chat. If not provided, a random ID will be generated.

If provided, it will be used to identify the chat in the storage provider and try to load the previous messages from the storage provider if the chat is not found, a new chat will be created

- Defined in src/types/SDKTypes.ts:28

### `Optional` maxContextSize

maxContextSize?: number

The maximum number of tokens to use for the context window

- Defined in src/types/SDKTypes.ts:44

### `Optional` maxOutputTokens

maxOutputTokens?: number

The maximum number of tokens to use for the output

- Defined in src/types/SDKTypes.ts:49

### `Optional` model

model?: string | TLLMModel

The model to use for the chat

- Defined in src/types/SDKTypes.ts:54

### `Optional` persist

persist?: boolean | ILLMContextStore

If true, the chat will be persisted in the default SRE storage provider : next time you create a chat with the same chat ID and same agent ID, it will load the previous messages from the storage provider

If false, the chat will not be persisted

If a ILLMContextStore is provided, the chat will be persisted in the provided store

- Defined in src/types/SDKTypes.ts:39