Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::AdditionalTools

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_output_item.rbs

Defined Under Namespace

Modules: Role Classes: Agent

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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initializeObject



536
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 536

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent? (readonly)

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseOutputItem::AdditionalTools::Agent, nil)


530
531
532
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 530

def agent
  @agent
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


522
523
524
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 522

def id
  @id
end

#roleOpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role

Returns the value of attribute role.

Returns:

  • (OpenAI::Models::Beta::BetaResponseOutputItem::AdditionalTools::role)


524
525
526
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 524

def role
  @role
end

#tools::Array[OpenAI::Models::Beta::beta_tool]

Returns the value of attribute tools.

Returns:

  • (::Array[OpenAI::Models::Beta::beta_tool])


526
527
528
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 526

def tools
  @tools
end

#type:additional_tools

Returns the value of attribute type.

Returns:

  • (:additional_tools)


528
529
530
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 528

def type
  @type
end

Instance Method Details

#agent=Object (readonly)



532
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 532

def agent=: (

#to_hash{

Returns:

  • ({)


544
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 544

def to_hash: -> {