Class: ChatgptRb::DSL::Function

Inherits:
Base
  • Object
show all
Defined in:
lib/chatgpt_rb/dsl/function.rb

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from Base

configure, #initialize, supported_fields

Constructor Details

This class inherits a constructor from ChatgptRb::DSL::Base

Instance Method Details

#parameter(name, &configuration) ⇒ Object



9
10
11
# File 'lib/chatgpt_rb/dsl/function.rb', line 9

def parameter(name, &configuration)
  object.parameters << ChatgptRb::DSL::Parameter.configure(ChatgptRb::Parameter.new(name:), &configuration)
end