Class ChatCompletionStoreMessage
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionStoreMessageA chat completion message generated by the model. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classChatCompletionStoreMessage.BuilderA builder for ChatCompletionStoreMessage. public final classChatCompletionStoreMessage.ContentPartLearn about text inputs. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final ChatCompletionMessagetoChatCompletionMessage()final Optional<String>content()The contents of the message. final Optional<String>refusal()The refusal message generated by the model. final JsonValue_role()The role of the author of this message. final Optional<List<ChatCompletionMessage.Annotation>>annotations()Annotations for the message, when applicable, as when using the web search tool. final Optional<ChatCompletionAudio>audio()If the audio output modality is requested, this object contains data about the audio response from the model. final Optional<ChatCompletionMessage.FunctionCall>functionCall()Deprecated and replaced by tool_calls.final Optional<List<ChatCompletionMessageToolCall>>toolCalls()The tool calls generated by the model, such as function calls. final Stringid()The identifier of the chat message. final Optional<List<ChatCompletionStoreMessage.ContentPart>>contentParts()If a content parts array was provided, this is an array of textandimage_urlparts.final JsonField<String>_content()Returns the raw JSON value of content. final JsonField<String>_refusal()Returns the raw JSON value of refusal. final JsonField<List<ChatCompletionMessage.Annotation>>_annotations()Returns the raw JSON value of annotations. final JsonField<ChatCompletionAudio>_audio()Returns the raw JSON value of audio. final JsonField<ChatCompletionMessage.FunctionCall>_functionCall()Returns the raw JSON value of functionCall. final JsonField<List<ChatCompletionMessageToolCall>>_toolCalls()Returns the raw JSON value of toolCalls. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<List<ChatCompletionStoreMessage.ContentPart>>_contentParts()Returns the raw JSON value of contentParts. final Map<String, JsonValue>_additionalProperties()final ChatCompletionStoreMessage.BuildertoBuilder()final ChatCompletionStoreMessagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionStoreMessage.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionStoreMessage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        toChatCompletionMessagefinal ChatCompletionMessage toChatCompletionMessage() 
 - 
                                        _rolefinal JsonValue _role() The role of the author of this message. Expected to always return the following: JsonValue.from("assistant")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value). 
 - 
                                        annotationsfinal Optional<List<ChatCompletionMessage.Annotation>> annotations() Annotations for the message, when applicable, as when using the web search tool. 
 - 
                                        audiofinal Optional<ChatCompletionAudio> audio() If the audio output modality is requested, this object contains data about the audio response from the model. Learn more. 
 - 
                                        functionCall@Deprecated(message = "deprecated") final Optional<ChatCompletionMessage.FunctionCall> functionCall() Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
 - 
                                        toolCallsfinal Optional<List<ChatCompletionMessageToolCall>> toolCalls() The tool calls generated by the model, such as function calls. 
 - 
                                        contentPartsfinal Optional<List<ChatCompletionStoreMessage.ContentPart>> contentParts() If a content parts array was provided, this is an array of textandimage_urlparts. Otherwise, null.
 - 
                                        _contentfinal JsonField<String> _content() Returns the raw JSON value of content. Unlike content, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _refusalfinal JsonField<String> _refusal() Returns the raw JSON value of refusal. Unlike refusal, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _annotationsfinal JsonField<List<ChatCompletionMessage.Annotation>> _annotations() Returns the raw JSON value of annotations. Unlike annotations, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _audiofinal JsonField<ChatCompletionAudio> _audio() Returns the raw JSON value of audio. Unlike audio, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _functionCall@Deprecated(message = "deprecated") final JsonField<ChatCompletionMessage.FunctionCall> _functionCall() Returns the raw JSON value of functionCall. Unlike functionCall, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _toolCallsfinal JsonField<List<ChatCompletionMessageToolCall>> _toolCalls() Returns the raw JSON value of toolCalls. Unlike toolCalls, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _idfinal JsonField<String> _id() Returns the raw JSON value of id. Unlike id, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _contentPartsfinal JsonField<List<ChatCompletionStoreMessage.ContentPart>> _contentParts() Returns the raw JSON value of contentParts. Unlike contentParts, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal ChatCompletionStoreMessage.Builder toBuilder() 
 - 
                                        validatefinal ChatCompletionStoreMessage validate() 
 - 
                                        builderfinal static ChatCompletionStoreMessage.Builder builder() Returns a mutable builder for constructing an instance of ChatCompletionStoreMessage. The following fields are required: .content() .refusal() .id()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-