Class: LiterLlm::ResponseFormatJsonSchema
- Inherits:
-
Data
- Object
- Data
- LiterLlm::ResponseFormatJsonSchema
- Extended by:
- T::Sig
- Includes:
- ResponseFormat
- Defined in:
- lib/liter_llm/native.rb
Overview
Output must conform to the specified JSON schema.
Instance Attribute Summary collapse
-
#json_schema ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#json_schema ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
459 460 461 |
# File 'lib/liter_llm/native.rb', line 459 def json_schema @json_schema end |
Class Method Details
.from_hash(hash) ⇒ Object
479 480 481 |
# File 'lib/liter_llm/native.rb', line 479 def self.from_hash(hash) new(json_schema: hash[:json_schema] || hash["json_schema"]) end |
Instance Method Details
#json_object? ⇒ Boolean
471 |
# File 'lib/liter_llm/native.rb', line 471 def json_object? = false |
#json_schema? ⇒ Boolean
474 |
# File 'lib/liter_llm/native.rb', line 474 def json_schema? = true |
#text? ⇒ Boolean
468 |
# File 'lib/liter_llm/native.rb', line 468 def text? = false |