Documentation
Framework
Version
Class References
Function References
Interface References
Type Alias References
Variable References

ConstrainedContent

Type Alias: ConstrainedContent<TInputModalitiesTypes>

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

Defined in: types.ts:225

Type for message content constrained by supported modalities. When modalities is ['text', 'image'], only TextPart and ImagePart are allowed in the array.

Type Parameters

TInputModalitiesTypes

TInputModalitiesTypes extends InputModalitiesTypes