Skip to main content
Version: Next

Interface: ChatConfig

Defined in: types/llm.ts:300

Object configuring chat management.

Properties

contextStrategy

contextStrategy: ContextStrategy

Defined in: types/llm.ts:303

Defines a strategy for managing the conversation context window and message history.


initialMessageHistory

initialMessageHistory: Message[]

Defined in: types/llm.ts:301

An array of Message objects that represent the conversation history. This can be used to provide initial context to the model.


systemPrompt

systemPrompt: string

Defined in: types/llm.ts:302

Often used to tell the model what is its purpose, for example - "Be a helpful translator".