Docs
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Code Rabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
Sentry
Prisma
Strapi
Unkey
UI.dev
Class References
Function References
Interface References
Type Alias References
Variable References
Type Alias References

ConstrainedModelMessage

Type Alias: ConstrainedModelMessage<TInputModalitiesTypes>

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

Defined in: types.ts:309

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

Type Declaration

content

ts
content: ConstrainedContent<TInputModalitiesTypes>;
content: ConstrainedContent<TInputModalitiesTypes>;

Type Parameters

TInputModalitiesTypes

TInputModalitiesTypes extends InputModalitiesTypes