Class: OpenAI::Models::Responses::NamespaceTool::Tool::Function
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(name:, description: nil, parameters: nil, strict: nil, type: :function) ⇒ Object
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 79
|
Instance Attribute Details
#description ⇒ String?
67
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 67
optional :description, String, nil?: true
|
#name ⇒ String
57
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 57
required :name, String
|
#parameters ⇒ Object?
72
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 72
optional :parameters, OpenAI::Internal::Type::Unknown, nil?: true
|
77
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 77
optional :strict, OpenAI::Internal::Type::Boolean, nil?: true
|
#type ⇒ Symbol, :function
62
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 62
required :type, const: :function
|