Class: OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_tool_search_output_item_param.rb,
sig/openai/models/responses/response_tool_search_output_item_param.rbs

Overview

See Also:

  • OpenAI::Models::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration#svg

Defined Under Namespace

Classes: Reasoning

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(model: nil, reasoning: nil) ⇒ Svg

Returns a new instance of Svg.

Parameters:

  • reasoning (defaults to: nil) —

    Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

  • model: (String) (defaults to: nil)
  • reasoning: (OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning, nil) (defaults to: nil)


# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 1347

Instance Attribute Details

#model ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


1332
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 1332

optional :model, String

#reasoning ⇒ OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning?

Reasoning effort for SVG authoring. When omitted, uses the author model's default in both Images and Responses.

Returns:

  • (OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning, nil)


1339
1340
1341
1342
1343
1344
1345
# File 'lib/openai/models/responses/response_tool_search_output_item_param.rb', line 1339

optional(
  :reasoning,
  -> {
    OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning
  },
  nil?: true
)

Instance Method Details

#to_hash ⇒ { ?model: String, ?reasoning: OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning? }

Returns:

  • ({ ?model: String, ?reasoning: OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning? })


1177
1178
1179
1180
# File 'sig/openai/models/responses/response_tool_search_output_item_param.rbs', line 1177

def to_hash: -> {
  ?model: String,
  ?reasoning: OpenAI::Responses::ResponseToolSearchOutputItemParam::Tool::ImageGeneration::Svg::Reasoning?
}