Class: OpenAI::Models::Chat::ChatCompletionStoreMessage

Inherits:
ChatCompletionMessage show all
Defined in:
lib/openai/models/chat/chat_completion_store_message.rb

Defined Under Namespace

Modules: ContentPart

Instance Attribute Summary collapse

Attributes inherited from ChatCompletionMessage

#annotations, #audio, #content, #function_call, #parsed, #refusal, #role, #tool_calls

Instance Method Summary collapse

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, 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(id: , content_parts: nil) ⇒ void

Some parameter documentations has been truncated, see OpenAI::Models::Chat::ChatCompletionStoreMessage for more details.

A chat completion message generated by the model.

Parameters:



# File 'lib/openai/models/chat/chat_completion_store_message.rb', line 24


Instance Attribute Details

#content_partsArray<OpenAI::Models::Chat::ChatCompletionContentPartText, OpenAI::Models::Chat::ChatCompletionContentPartImage>?

If a content parts array was provided, this is an array of text and image_url parts. Otherwise, null.



18
19
20
21
22
# File 'lib/openai/models/chat/chat_completion_store_message.rb', line 18

optional :content_parts,
-> {
  OpenAI::Internal::Type::ArrayOf[union: OpenAI::Chat::ChatCompletionStoreMessage::ContentPart]
},
nil?: true

#idString

The identifier of the chat message.

Returns:

  • (String)


11
# File 'lib/openai/models/chat/chat_completion_store_message.rb', line 11

required :id, String