文档
CodeRabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
Netlify
Neon
WorkOS
Clerk
Convex
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
类引用
函数引用
接口引用
类型别名引用
变量引用
类型别名引用

ConstrainedContent

类型别名:ConstrainedContent<TInputModalitiesTypes>

ts
type ConstrainedContent<TInputModalitiesTypes> = 
  | string
  | null
  | ContentPartForInputModalitiesTypes<TInputModalitiesTypes>[];

定义于: types.ts:253

用于受支持的模态约束的消息内容。当模态为 ['text', 'image'] 时,数组中只允许 TextPart 和 ImagePart。

类型参数

TInputModalitiesTypes

TInputModalitiesTypes 扩展自 InputModalitiesTypes