Skip to content

Interface: TextBlock

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / TextBlock

Defined in: src/types/content.ts:188

Text content block.

The most common content block type, containing plain text content.

const textBlock: TextBlock = {
type: 'text',
text: 'Hello, world!'
};

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