Class: OpenAI::Models::Responses::ResponseInputItem::Program
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseInputItem::Program
- Defined in:
- lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs
Instance Attribute Summary collapse
-
#call_id ⇒ String
The stable call ID of the program item.
-
#code ⇒ String
The JavaScript source executed by programmatic tool calling.
-
#fingerprint ⇒ String
Opaque program replay fingerprint that must be round-tripped.
-
#id ⇒ String
The unique ID of this program item.
-
#type ⇒ :program
The item type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ Program
constructor
A new instance of Program.
- #to_hash ⇒ { id: String, call_id: String, code: String, fingerprint: String, ?type: :program }
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 ⇒ Program
Returns a new instance of Program.
2049 2050 2051 2052 2053 2054 2055 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 2049
def initialize: (
id: String,
call_id: String,
code: String,
fingerprint: String,
?type: :program
) -> void
|
Instance Attribute Details
#call_id ⇒ String
The stable call ID of the program item.
2285 |
# File 'lib/openai/models/responses/response_input_item.rb', line 2285 required :call_id, String |
#code ⇒ String
The JavaScript source executed by programmatic tool calling.
2291 |
# File 'lib/openai/models/responses/response_input_item.rb', line 2291 required :code, String |
#fingerprint ⇒ String
Opaque program replay fingerprint that must be round-tripped.
2297 |
# File 'lib/openai/models/responses/response_input_item.rb', line 2297 required :fingerprint, String |
#id ⇒ String
The unique ID of this program item.
2279 |
# File 'lib/openai/models/responses/response_input_item.rb', line 2279 required :id, String |
#type ⇒ :program
The item type. Always program.
2303 |
# File 'lib/openai/models/responses/response_input_item.rb', line 2303 required :type, const: :program |
Instance Method Details
#to_hash ⇒ { id: String, call_id: String, code: String, fingerprint: String, ?type: :program }
2057 2058 2059 2060 2061 2062 2063 |
# File 'sig/openai/models/responses/response_input_item.rbs', line 2057
def to_hash: -> {
id: String,
call_id: String,
code: String,
fingerprint: String,
?type: :program
}
|