struct

Anthropic::OutputFormat

Inherits JSON::Serializable < Struct < Value < Object

Output format for structured outputs (beta)

The API only accepts type and schema fields. The schema itself should be a JSON Schema object.

Constructors

from_output_schema(output_schema : BaseOutputSchema) : self

Create from a BaseOutputSchema

Source
new(schema : JSON::Any)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

schema
Source
type
Source