Class ChatCompletionStoreMessage.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionStoreMessage.BuilderA builder for ChatCompletionStoreMessage. 
- 
                
                    
                    - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        contentfinal ChatCompletionStoreMessage.Builder content(String content) The contents of the message. 
 - 
                                        contentfinal ChatCompletionStoreMessage.Builder content(Optional<String> content) Alias for calling Builder.content with content.orElse(null).
 - 
                                        contentfinal ChatCompletionStoreMessage.Builder content(JsonField<String> content) Sets Builder.content to an arbitrary JSON value. You should usually call Builder.content with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        refusalfinal ChatCompletionStoreMessage.Builder refusal(String refusal) The refusal message generated by the model. 
 - 
                                        refusalfinal ChatCompletionStoreMessage.Builder refusal(Optional<String> refusal) Alias for calling Builder.refusal with refusal.orElse(null).
 - 
                                        refusalfinal ChatCompletionStoreMessage.Builder refusal(JsonField<String> refusal) Sets Builder.refusal to an arbitrary JSON value. You should usually call Builder.refusal with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        rolefinal ChatCompletionStoreMessage.Builder role(JsonValue role) Sets the field to an arbitrary JSON value. It is usually unnecessary to call this method because the field defaults to the following: JsonValue.from("assistant")This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        annotationsfinal ChatCompletionStoreMessage.Builder annotations(List<ChatCompletionMessage.Annotation> annotations) Annotations for the message, when applicable, as when using the web search tool. 
 - 
                                        annotationsfinal ChatCompletionStoreMessage.Builder annotations(JsonField<List<ChatCompletionMessage.Annotation>> annotations) Sets Builder.annotations to an arbitrary JSON value. You should usually call Builder.annotations with a well-typed List<ChatCompletionMessage.Annotation>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addAnnotationfinal ChatCompletionStoreMessage.Builder addAnnotation(ChatCompletionMessage.Annotation annotation) Adds a single ChatCompletionMessage.Annotation to annotations. 
 - 
                                        audiofinal ChatCompletionStoreMessage.Builder audio(ChatCompletionAudio audio) If the audio output modality is requested, this object contains data about the audio response from the model. Learn more. 
 - 
                                        audiofinal ChatCompletionStoreMessage.Builder audio(Optional<ChatCompletionAudio> audio) Alias for calling Builder.audio with audio.orElse(null).
 - 
                                        audiofinal ChatCompletionStoreMessage.Builder audio(JsonField<ChatCompletionAudio> audio) Sets Builder.audio to an arbitrary JSON value. You should usually call Builder.audio with a well-typed ChatCompletionAudio value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        functionCall@Deprecated(message = "deprecated") final ChatCompletionStoreMessage.Builder functionCall(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.
 - 
                                        functionCall@Deprecated(message = "deprecated") final ChatCompletionStoreMessage.Builder functionCall(JsonField<ChatCompletionMessage.FunctionCall> functionCall) Sets Builder.functionCall to an arbitrary JSON value. You should usually call Builder.functionCall with a well-typed ChatCompletionMessage.FunctionCall value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        toolCallsfinal ChatCompletionStoreMessage.Builder toolCalls(List<ChatCompletionMessageToolCall> toolCalls) The tool calls generated by the model, such as function calls. 
 - 
                                        toolCallsfinal ChatCompletionStoreMessage.Builder toolCalls(JsonField<List<ChatCompletionMessageToolCall>> toolCalls) Sets Builder.toolCalls to an arbitrary JSON value. You should usually call Builder.toolCalls with a well-typed List<ChatCompletionMessageToolCall>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addToolCallfinal ChatCompletionStoreMessage.Builder addToolCall(ChatCompletionMessageToolCall toolCall) Adds a single ChatCompletionMessageToolCall to toolCalls. 
 - 
                                        addToolCallfinal ChatCompletionStoreMessage.Builder addToolCall(ChatCompletionMessageFunctionToolCall function) Alias for calling addToolCall with ChatCompletionMessageToolCall.ofFunction(function).
 - 
                                        addToolCallfinal ChatCompletionStoreMessage.Builder addToolCall(ChatCompletionMessageCustomToolCall custom) Alias for calling addToolCall with ChatCompletionMessageToolCall.ofCustom(custom).
 - 
                                        idfinal ChatCompletionStoreMessage.Builder id(String id) The identifier of the chat message. 
 - 
                                        idfinal ChatCompletionStoreMessage.Builder id(JsonField<String> id) Sets Builder.id to an arbitrary JSON value. You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
 - 
                                        contentPartsfinal ChatCompletionStoreMessage.Builder contentParts(List<ChatCompletionStoreMessage.ContentPart> contentParts) If a content parts array was provided, this is an array of textandimage_urlparts. Otherwise, null.
 - 
                                        contentPartsfinal ChatCompletionStoreMessage.Builder contentParts(Optional<List<ChatCompletionStoreMessage.ContentPart>> contentParts) Alias for calling Builder.contentParts with contentParts.orElse(null).
 - 
                                        contentPartsfinal ChatCompletionStoreMessage.Builder contentParts(JsonField<List<ChatCompletionStoreMessage.ContentPart>> contentParts) Sets Builder.contentParts to an arbitrary JSON value. You should usually call Builder.contentParts with a well-typed List<ContentPart>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 - 
                                        addContentPartfinal ChatCompletionStoreMessage.Builder addContentPart(ChatCompletionStoreMessage.ContentPart contentPart) Adds a single ContentPart to contentParts. 
 - 
                                        addContentPartfinal ChatCompletionStoreMessage.Builder addContentPart(ChatCompletionContentPartText chatCompletionContentPartText) Alias for calling addContentPart with ContentPart.ofChatCompletionContentPartText(chatCompletionContentPartText).
 - 
                                        addContentPartfinal ChatCompletionStoreMessage.Builder addContentPart(ChatCompletionContentPartImage chatCompletionContentPartImage) Alias for calling addContentPart with ContentPart.ofChatCompletionContentPartImage(chatCompletionContentPartImage).
 - 
                                        additionalPropertiesfinal ChatCompletionStoreMessage.Builder additionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        putAdditionalPropertyfinal ChatCompletionStoreMessage.Builder putAdditionalProperty(String key, JsonValue value) 
 - 
                                        putAllAdditionalPropertiesfinal ChatCompletionStoreMessage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties) 
 - 
                                        removeAdditionalPropertyfinal ChatCompletionStoreMessage.Builder removeAdditionalProperty(String key) 
 - 
                                        removeAllAdditionalPropertiesfinal ChatCompletionStoreMessage.Builder removeAllAdditionalProperties(Set<String> keys) 
 - 
                                        buildfinal ChatCompletionStoreMessage build() Returns an immutable instance of ChatCompletionStoreMessage. Further updates to this Builder will not mutate the returned instance. The following fields are required: .content() .refusal() .id()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-