ClaudeCode.Content.TextBlock (ClaudeCode v0.16.0)
View SourceRepresents a text content block within a Claude message.
Text blocks contain plain text content that represents Claude's response or user input.
Summary
Functions
Creates a new Text content block from JSON data.
Type guard to check if a value is a Text content block.
Types
@type t() :: %ClaudeCode.Content.TextBlock{text: String.t(), type: :text}