Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

TextCompactOptions.md

67 lines857 Bytes

Defined in: packages/ai/src/types.ts:1530

What TextAdapter.compact receives.

Properties

messages

messages: ModelMessage<
  | string
  | ContentPart<unknown, unknown, unknown, unknown, unknown>[]
  | null>[];

Defined in: packages/ai/src/types.ts:1532

The history to compact.


model

model: string;

Defined in: packages/ai/src/types.ts:1533


signal?

optional signal?: AbortSignal;

Defined in: packages/ai/src/types.ts:1534


systemPrompts?

optional systemPrompts?: SystemPrompt[];

Defined in: packages/ai/src/types.ts:1538

The system prompts of the chat call.


wrapFetch?

optional wrapFetch?: FetchWrapper;

Defined in: packages/ai/src/types.ts:1536

Wraps the fetch of the compaction request.