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
457 458 459 |
# File 'lib/liter_llm/native.rb', line 457 def json_schema @json_schema end |
Class Method Details
.from_hash(hash) ⇒ Object
477 478 479 |
# File 'lib/liter_llm/native.rb', line 477 def self.from_hash(hash) new(json_schema: hash[:json_schema] || hash['json_schema']) end |
Instance Method Details
#json_object? ⇒ Boolean
469 |
# File 'lib/liter_llm/native.rb', line 469 def json_object? = false |
#json_schema? ⇒ Boolean
472 |
# File 'lib/liter_llm/native.rb', line 472 def json_schema? = true |
#text? ⇒ Boolean
466 |
# File 'lib/liter_llm/native.rb', line 466 def text? = false |