Class: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput

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

Defined Under Namespace

Modules: Caller, Status

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(call_id:, status:, id: nil, caller_: nil, output: nil, type: :apply_patch_call_output) ⇒ 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 (defaults to: nil) —

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

  • caller_ (defaults to: nil) —

    The execution context that produced this tool call.

  • output (defaults to: nil) —

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

  • type (defaults to: :apply_patch_call_output) —

    The type of the item. Always apply_patch_call_output.

  • call_id: (String)
  • status: (OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status)
  • id: (String, nil) (defaults to: nil)
  • caller_: (OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_, nil) (defaults to: nil)
  • output: (String, nil) (defaults to: nil)
  • type: (:apply_patch_call_output) (defaults to: :apply_patch_call_output)


# File 'lib/openai/models/responses/response_input_item.rb', line 1828

Instance Attribute Details

#call_id ⇒ String

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

Returns:

  • (String)


1789
# File 'lib/openai/models/responses/response_input_item.rb', line 1789

required :call_id, String

#caller_ ⇒ OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_?

The execution context that produced this tool call.

Returns:

  • (OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_, nil)


1814
1815
1816
1817
1818
1819
# File 'lib/openai/models/responses/response_input_item.rb', line 1814

optional(
  :caller_,
  union: -> { OpenAI::Responses::ResponseInputItem::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)


1808
# File 'lib/openai/models/responses/response_input_item.rb', line 1808

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)


1826
# File 'lib/openai/models/responses/response_input_item.rb', line 1826

optional :output, String, nil?: true

#status ⇒ OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status

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

Returns:

  • (OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status)


1795
# File 'lib/openai/models/responses/response_input_item.rb', line 1795

required :status, enum: -> { OpenAI::Responses::ResponseInputItem::ApplyPatchCallOutput::Status }

#type ⇒ :apply_patch_call_output

The type of the item. Always apply_patch_call_output.

Returns:

  • (:apply_patch_call_output)


1801
# File 'lib/openai/models/responses/response_input_item.rb', line 1801

required :type, const: :apply_patch_call_output

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/responses/response_input_item.rb', line 1860

Instance Method Details

#to_hash ⇒ { call_id: String, status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status, ?type: :apply_patch_call_output, ?id: String?, ?caller_: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_?, ?output: String? }

Returns:

  • ({ call_id: String, status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status, ?type: :apply_patch_call_output, ?id: String?, ?caller_: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_?, ?output: String? })


1585
1586
1587
1588
1589
1590
1591
1592
# File 'sig/openai/models/responses/response_input_item.rbs', line 1585

def to_hash: -> {
  call_id: String,
  status: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::status,
  ?type: :apply_patch_call_output,
  ?id: String?,
  ?caller_: OpenAI::Models::Responses::ResponseInputItem::ApplyPatchCallOutput::caller_?,
  ?output: String?
}