Class: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall

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

Defined Under Namespace

Modules: Status

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(call_id:, input:, name:, id: nil, namespace: nil, status: nil, type: :custom_tool_call) ⇒ CustomToolCall

Returns a new instance of CustomToolCall.

Parameters:

  • call_id (String)
  • input (String)
  • name (String)
  • id (String, nil) (defaults to: nil)
  • namespace (String, nil) (defaults to: nil)
  • status (Symbol, OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::Status, nil) (defaults to: nil)
  • type (Symbol, :custom_tool_call) (defaults to: :custom_tool_call)
  • call_id: (String)
  • input: (String)
  • name: (String)
  • id: (String, nil) (defaults to: nil)
  • namespace: (String, nil) (defaults to: nil)
  • status: (OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::status, nil) (defaults to: nil)
  • type: (:custom_tool_call) (defaults to: :custom_tool_call)


# File 'lib/openai/models/decision_create_params.rb', line 684

Instance Attribute Details

#call_id ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


648
# File 'lib/openai/models/decision_create_params.rb', line 648

required :call_id, String

#id ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


668
# File 'lib/openai/models/decision_create_params.rb', line 668

optional :id, String, nil?: true

#input ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


653
# File 'lib/openai/models/decision_create_params.rb', line 653

required :input, String

#name ⇒ String

Parameters:

  • value (String)

Returns:

  • (String)


658
# File 'lib/openai/models/decision_create_params.rb', line 658

required :name, String

#namespace ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


673
# File 'lib/openai/models/decision_create_params.rb', line 673

optional :namespace, String, nil?: true

#status ⇒ Symbol, ...

Parameters:

  • value (OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::status, nil)

Returns:



678
679
680
681
682
# File 'lib/openai/models/decision_create_params.rb', line 678

optional(
  :status,
  enum: -> { OpenAI::DecisionCreateParams::Input::UnionMember1::CustomToolCall::Status },
  nil?: true
)

#type ⇒ Symbol, :custom_tool_call

Parameters:

  • value (:custom_tool_call)

Returns:

  • (Symbol, :custom_tool_call)


663
# File 'lib/openai/models/decision_create_params.rb', line 663

required :type, const: :custom_tool_call

Instance Method Details

#to_hash ⇒ { call_id: String, input: String, name: String, ?type: :custom_tool_call, ?id: String?, ?namespace: String?, ?status: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::status? }

Returns:

  • ({ call_id: String, input: String, name: String, ?type: :custom_tool_call, ?id: String?, ?namespace: String?, ?status: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::status? })


621
622
623
624
625
626
627
628
629
# File 'sig/openai/models/decision_create_params.rbs', line 621

def to_hash: -> {
  call_id: String,
  input: String,
  name: String,
  ?type: :custom_tool_call,
  ?id: String?,
  ?namespace: String?,
  ?status: OpenAI::Models::DecisionCreateParams::Input::UnionMember1::CustomToolCall::status?
}