Class: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput

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

Defined Under Namespace

Modules: Caller, Status Classes: Agent

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

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(agent_name:) ⇒ ApplyPatchCallOutput

Returns a new instance of ApplyPatchCallOutput.

Parameters:

  • call_id —

    The unique ID of the apply patch tool call generated by the model.

  • status —

    The status of the apply patch tool call output. One of completed or failed.

  • id —

    The unique ID of the apply patch tool call output. Populated when this item is returned via API.

  • agent —

    The agent that produced this item.

  • caller_ —

    The execution context that produced this tool call.

  • output —

    Optional human-readable log text from the apply patch tool (e.g., patch results or errors).

  • type —

    The type of the item. Always apply_patch_call_output.

  • call_id: (String)
  • status: (OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status)
  • id: (String, nil)
  • agent: (OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent, nil)
  • caller_: (OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_, nil)
  • output: (String, nil)
  • type: (:apply_patch_call_output)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2619

Instance Attribute Details

#agent ⇒ OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent?

The agent that produced this item.

Returns:

  • (OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent, nil)


2599
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2599

optional :agent, -> { OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent }, nil?: true

#call_id ⇒ String

The unique ID of the apply patch tool call generated by the model.

Returns:

  • (String)


2574
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2574

required :call_id, String

#caller_ ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_?

The execution context that produced this tool call.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_, nil)


2605
2606
2607
2608
2609
2610
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2605

optional(
  :caller_,
  union: -> { OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Caller },
  api_name: :caller,
  nil?: true
)

#id ⇒ String?

The unique ID of the apply patch tool call output. Populated when this item is returned via API.

Returns:

  • (String, nil)


2593
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2593

optional :id, String, nil?: true

#output ⇒ String?

Optional human-readable log text from the apply patch tool (e.g., patch results or errors).

Returns:

  • (String, nil)


2617
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2617

optional :output, String, nil?: true

#status ⇒ OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status

The status of the apply patch tool call output. One of completed or failed.

Returns:

  • (OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status)


2580
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2580

required :status, enum: -> { OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Status }

#type ⇒ :apply_patch_call_output

The type of the item. Always apply_patch_call_output.

Returns:

  • (:apply_patch_call_output)


2586
# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2586

required :type, const: :apply_patch_call_output

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/beta_response_input_item.rb', line 2654

Instance Method Details

#to_hash ⇒ { call_id: String, status: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status, ?type: :apply_patch_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent?, ?caller_: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_?, ?output: String? }

Returns:

  • ({ call_id: String, status: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status, ?type: :apply_patch_call_output, ?id: String?, ?agent: OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent?, ?caller_: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_?, ?output: String? })


2333
2334
2335
2336
2337
2338
2339
2340
2341
# File 'sig/openai/models/beta/beta_response_input_item.rbs', line 2333

def to_hash: -> {
  call_id: String,
  status: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::status,
  ?type: :apply_patch_call_output,
  ?id: String?,
  ?agent: OpenAI::Beta::BetaResponseInputItem::ApplyPatchCallOutput::Agent?,
  ?caller_: OpenAI::Models::Beta::BetaResponseInputItem::ApplyPatchCallOutput::caller_?,
  ?output: String?
}