Open History to see the last commit
Defined in: packages/ai/src/types.ts:1540
What TextAdapter.compact receives.
Properties#
messages#
messages: ModelMessage<
| string
| ContentPart<unknown, unknown, unknown, unknown, unknown>[]
| null>[];
Defined in: packages/ai/src/types.ts:1542
The history to compact.
model#
model: string;
Defined in: packages/ai/src/types.ts:1543
signal?#
optional signal?: AbortSignal;
Defined in: packages/ai/src/types.ts:1544
systemPrompts?#
optional systemPrompts?: SystemPrompt[];
Defined in: packages/ai/src/types.ts:1548
The system prompts of the chat call.
wrapFetch?#
optional wrapFetch?: FetchWrapper;
Defined in: packages/ai/src/types.ts:1546
Wraps the fetch of the compaction request.