Class: LittleGhost::StructuredOutput::Strategy
- Inherits:
-
Object
- Object
- LittleGhost::StructuredOutput::Strategy
show all
- Defined in:
- lib/little_ghost/structured_output.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(configuration) ⇒ Strategy
Returns a new instance of Strategy.
10
11
12
|
# File 'lib/little_ghost/structured_output.rb', line 10
def initialize(configuration)
@configuration = configuration
end
|
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
8
9
10
|
# File 'lib/little_ghost/structured_output.rb', line 8
def configuration
@configuration
end
|
Instance Method Details
#output_schema ⇒ Object
18
|
# File 'lib/little_ghost/structured_output.rb', line 18
def output_schema = nil
|
#provider? ⇒ Boolean
15
|
# File 'lib/little_ghost/structured_output.rb', line 15
def provider? = false
|
#required_capabilities ⇒ Object
20
|
# File 'lib/little_ghost/structured_output.rb', line 20
def required_capabilities = [].freeze
|
#schema_name ⇒ Object
14
|
# File 'lib/little_ghost/structured_output.rb', line 14
def schema_name = configuration.fetch(:name)
|
16
|
# File 'lib/little_ghost/structured_output.rb', line 16
def tool? = false
|
19
|
# File 'lib/little_ghost/structured_output.rb', line 19
def tool_choice(repair:) = nil
|
17
|
# File 'lib/little_ghost/structured_output.rb', line 17
def tools(ordinary_tools) = ordinary_tools
|