Skip to main content
Version: 0.10.0

Type Alias: LLMChatSessionOptions

LLMChatSessionOptions = object

Defined in: extensions/llm/tasks/llmChatSession.ts:63

Options for configuring an LLM chat session.

Properties​

generationConfig?​

readonly optional generationConfig: LLMGenerationConfig

Defined in: extensions/llm/tasks/llmChatSession.ts:65

Default generation configuration options.


initialMessages?​

readonly optional initialMessages: readonly ChatMessage[]

Defined in: extensions/llm/tasks/llmChatSession.ts:67

Initial conversation history to prefill into the model KV cache.


resetOnTurn?​

readonly optional resetOnTurn: boolean

Defined in: extensions/llm/tasks/llmChatSession.ts:76

When true, disables append-only KV cache diffing and resets/prefills the runner on every turn. Defaults to false.


stopRegex?​

readonly optional stopRegex: RegExp

Defined in: extensions/llm/tasks/llmChatSession.ts:69

Optional regex pattern used to stop generation early when matched.


toolOpts?​

readonly optional toolOpts: LLMToolOpts

Defined in: extensions/llm/tasks/llmChatSession.ts:71

Tool calling configuration options.