Module: Anthropic::Helpers::InputSchema

Defined in:
lib/anthropic/helpers/input_schema.rb,
lib/anthropic/helpers/input_schema/boolean.rb,
lib/anthropic/helpers/input_schema/enum_of.rb,
lib/anthropic/helpers/input_schema/array_of.rb,
lib/anthropic/helpers/input_schema/union_of.rb,
lib/anthropic/helpers/input_schema/base_model.rb,
lib/anthropic/helpers/input_schema/parsed_json.rb,
lib/anthropic/helpers/input_schema/supported_schemas.rb,
lib/anthropic/helpers/input_schema/json_schema_converter.rb

Overview

Helpers for the structured output API.

see https://platform.Anthropic.com/docs/guides/structured-outputs see https://json-schema.org

Based on the DSL in Internal::Type, but currently only support the limited subset of JSON schema types used in structured output APIs.

Supported types: NilClass String Symbol Integer Float Boolean, EnumOf, UnionOf, ArrayOf, BaseModel

Defined Under Namespace

Modules: JsonSchemaConverter, SupportedSchemas Classes: ArrayOf, BaseModel, Boolean, EnumOf, ParsedJson, UnionOf