Module: OpenAI::Models::Conversations::ConversationItem
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/openai/models/conversations/conversation_item.rb,
sig/openai/models/conversations/conversation_item.rbs
Overview
A single item within a conversation. The set of possible types are the same as
the output type of a
Response object.
Defined Under Namespace
Classes: AdditionalTools, ImageGenerationCall, LocalShellCall, LocalShellCallOutput, McpApprovalRequest, McpApprovalResponse, McpCall, McpListTools, Program, ProgramOutput
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, approval_request_id:, approve:, reason: nil, type: :mcp_approval_response) ⇒ Object
A response to an MCP approval request.
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump
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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/conversations/conversation_item.rb', line 537
|
.variants ⇒ ::Array[OpenAI::Models::Conversations::conversation_item]
1043 |
# File 'sig/openai/models/conversations/conversation_item.rbs', line 1043
def self?.variants: -> ::Array[OpenAI::Models::Conversations::conversation_item]
|
Instance Method Details
#initialize(id:, approval_request_id:, approve:, reason: nil, type: :mcp_approval_response) ⇒ Object
A response to an MCP approval request.
|
|
# File 'lib/openai/models/conversations/conversation_item.rb', line 475
|