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:, defer_loading: nil, description: nil, parameters: nil, strict: nil, type: :function) ⇒ Object
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 85
|
Instance Attribute Details
#defer_loading ⇒ Boolean?
Whether this function should be deferred and discovered via tool search.
#description ⇒ String?
73
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 73
optional :description, String, nil?: true
|
#name ⇒ String
57
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 57
required :name, String
|
#parameters ⇒ Object?
78
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 78
optional :parameters, OpenAI::Internal::Type::Unknown, nil?: true
|
83
|
# File 'lib/openai/models/responses/namespace_tool.rb', line 83
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
|