Class: OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput
- Defined in:
- lib/openai/models/responses/response_item.rb,
sig/openai/models/responses/response_item.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#id ⇒ String
The unique ID of the local shell tool call generated by the model.
-
#output ⇒ String
A JSON string of the output of the local shell tool call.
-
#status ⇒ OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::status?
The status of the item.
-
#type ⇒ :local_shell_call_output
The type of the local shell tool call output.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, output:, status: nil, type: :local_shell_call_output) ⇒ LocalShellCallOutput
constructor
A new instance of LocalShellCallOutput.
- #to_hash ⇒ { id: String, output: String, ?type: :local_shell_call_output, ?status: OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::status? }
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(id:, output:, status: nil, type: :local_shell_call_output) ⇒ LocalShellCallOutput
Returns a new instance of LocalShellCallOutput.
|
|
# File 'lib/openai/models/responses/response_item.rb', line 796
|
Instance Attribute Details
#id ⇒ String
The unique ID of the local shell tool call generated by the model.
770 |
# File 'lib/openai/models/responses/response_item.rb', line 770 required :id, String |
#output ⇒ String
A JSON string of the output of the local shell tool call.
776 |
# File 'lib/openai/models/responses/response_item.rb', line 776 required :output, String |
#status ⇒ OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::status?
The status of the item. One of in_progress, completed, or incomplete.
788 789 790 791 792 793 794 |
# File 'lib/openai/models/responses/response_item.rb', line 788 optional( :status, enum: -> { OpenAI::Responses::ResponseItem::LocalShellCallOutput::Status }, nil?: true ) |
#type ⇒ :local_shell_call_output
The type of the local shell tool call output. Always local_shell_call_output.
782 |
# File 'lib/openai/models/responses/response_item.rb', line 782 required :type, const: :local_shell_call_output |
Instance Method Details
#to_hash ⇒ { id: String, output: String, ?type: :local_shell_call_output, ?status: OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::status? }
711 712 713 714 715 716 |
# File 'sig/openai/models/responses/response_item.rbs', line 711
def to_hash: -> {
id: String,
output: String,
?type: :local_shell_call_output,
?status: OpenAI::Models::Responses::ResponseItem::LocalShellCallOutput::status?
}
|