Interface: TextBlock
@providerprotocol/ai / @providerprotocol/ai / TextBlock
Interface: TextBlock
Section titled “Interface: TextBlock”Defined in: src/types/content.ts:188
Text content block.
The most common content block type, containing plain text content.
Example
Section titled “Example”const textBlock: TextBlock = { type: 'text', text: 'Hello, world!'};Properties
Section titled “Properties”text:
string
Defined in: src/types/content.ts:193
The text content
type:
"text"
Defined in: src/types/content.ts:190
Discriminator for text blocks