Class: RubyLLM::Models::Schema

Inherits:
Schematist::Schema
  • Object
show all
Defined in:
lib/ruby_llm/models/schema.rb

Overview

Validation schema for entries in the model registry. The registry builder validates refreshed registries against it before publishing, and the spec suite validates the bundled models.json.

Constant Summary collapse

CAPABILITIES =

:nodoc:

%w[
  streaming function_calling tool_choice parallel_tool_calls
  structured_output predicted_outputs
  distillation fine_tuning batch realtime image_generation
  speech_generation transcription translation citations reasoning
  caching moderation json_mode vision video ocr
].freeze

Class Method Summary collapse

Class Method Details

.json_schemaObject

The Draft 2020-12 JSON Schema document for one model entry. Wrap it in an array schema to validate a whole registry.



94
95
96
# File 'lib/ruby_llm/models/schema.rb', line 94

def self.json_schema
  new.to_json_schema
end