Module: OpenAI::Models::Responses::ResponseItem

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/responses/response_item.rb

Overview

Content item used to generate a response.

Defined Under Namespace

Classes: ImageGenerationCall, LocalShellCall, LocalShellCallOutput, McpApprovalRequest, McpApprovalResponse, McpCall, McpListTools

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Class Method Details

.valuesArray<Symbol>



# File 'lib/openai/models/responses/response_item.rb', line 111


Instance Method Details

#initialize(id: , approval_request_id: , approve: , reason: nil, type: :mcp_approval_response) ⇒ void

Some parameter documentations has been truncated, see McpApprovalResponse for more details.

A response to an MCP approval request.



# File 'lib/openai/models/responses/response_item.rb', line 368