Class: OpenAI::Models::Responses::ResponseItem::Program
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseItem::Program
- Defined in:
- lib/openai/models/responses/response_item.rb,
sig/openai/models/responses/response_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 the program item.
-
#type ⇒ Symbol, :program
The type of the item.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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
#initialize ⇒ Object
115 |
# File 'sig/openai/models/responses/response_item.rbs', line 115
def initialize: (
|
Instance Attribute Details
#call_id ⇒ String
The stable call ID of the program item.
163 |
# File 'lib/openai/models/responses/response_item.rb', line 163 required :call_id, String |
#code ⇒ String
The JavaScript source executed by programmatic tool calling.
169 |
# File 'lib/openai/models/responses/response_item.rb', line 169 required :code, String |
#fingerprint ⇒ String
Opaque program replay fingerprint that must be round-tripped.
175 |
# File 'lib/openai/models/responses/response_item.rb', line 175 required :fingerprint, String |
#id ⇒ String
The unique ID of the program item.
157 |
# File 'lib/openai/models/responses/response_item.rb', line 157 required :id, String |
#type ⇒ Symbol, :program
The type of the item. Always program.
181 |
# File 'lib/openai/models/responses/response_item.rb', line 181 required :type, const: :program |
Instance Method Details
#to_hash ⇒ {
123 |
# File 'sig/openai/models/responses/response_item.rbs', line 123
def to_hash: -> {
|