TextPart interface

Content part interface if the part represents a text string.

Signature:

export interface TextPart 

Properties

Property Type Description
speechMetadata SpeechMetadata (Public Preview) Structured speech metadata used to guide speech generation for this text.
text string
thought boolean
type 'text'

TextPart.speechMetadata

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Structured speech metadata used to guide speech generation for this text.

Signature:

speechMetadata?: SpeechMetadata;

TextPart.text

Signature:

text: string;

TextPart.thought

Signature:

thought?: boolean;

TextPart.type

Signature:

type: 'text';