module

Anthropic::ContentBlockConverter

JSON converter for discriminated union parsing of content blocks

Parses content blocks based on their type field into the appropriate struct. Used by Message to provide typed content access.

Class methods

from_json(pull : JSON::PullParser) : ContentBlock
Source
to_json(value : ContentBlock, builder : JSON::Builder)
Source