struct

Anthropic::Content::Block(T)

Inherits Struct < Value < Object

Generic content block that wraps typed content data. The type parameter T must include Content::Data protocol.

Constructors

new(data : T)
Source

Instance methods

data
Source
to_json(json : JSON::Builder) : Nil
Source
to_json
Source
type
Source