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

ConstrainedModelMessage.md

27 lines553 Bytes

type ConstrainedModelMessage<TInputModalitiesTypes> = Omit<ModelMessage, "content"> & object;

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

A ModelMessage with content constrained to only allow content parts matching the specified input modalities.

Type Declaration

content

content: ConstrainedContent<TInputModalitiesTypes>;

Type Parameters

TInputModalitiesTypes

TInputModalitiesTypes extends InputModalitiesTypes