Class ChatCompletionAssistantMessageParam
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionAssistantMessageParamMessages sent by the model in response to user messages. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classChatCompletionAssistantMessageParam.BuilderA builder for ChatCompletionAssistantMessageParam. public final classChatCompletionAssistantMessageParam.AudioData about a previous audio response from the model. Learn more. public final classChatCompletionAssistantMessageParam.ContentThe contents of the assistant message. Required unless tool_callsorfunction_callis specified.public final classChatCompletionAssistantMessageParam.FunctionCallDeprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
 - 
                                
                            
                                Method Summary- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        _rolefinal JsonValue _role() The role of the messages author, in this case assistant.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). 
 - 
                                        audiofinal Optional<ChatCompletionAssistantMessageParam.Audio> audio() Data about a previous audio response from the model. Learn more. 
 - 
                                        contentfinal Optional<ChatCompletionAssistantMessageParam.Content> content() The contents of the assistant message. Required unless tool_callsorfunction_callis specified.
 - 
                                        functionCall@Deprecated(message = "deprecated") final Optional<ChatCompletionAssistantMessageParam.FunctionCall> functionCall() Deprecated and replaced by tool_calls. The name and arguments of a function that should be called, as generated by the model.
 - 
                                        namefinal Optional<String> name() An optional name for the participant. Provides the model information to differentiate between participants of the same role. 
 - 
                                        toolCallsfinal Optional<List<ChatCompletionMessageToolCall>> toolCalls() The tool calls generated by the model, such as function calls. 
 - 
                                        _audiofinal JsonField<ChatCompletionAssistantMessageParam.Audio> _audio() Returns the raw JSON value of audio. Unlike audio, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _contentfinal JsonField<ChatCompletionAssistantMessageParam.Content> _content() Returns the raw JSON value of content. Unlike content, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _functionCall@Deprecated(message = "deprecated") final JsonField<ChatCompletionAssistantMessageParam.FunctionCall> _functionCall() Returns the raw JSON value of functionCall. Unlike functionCall, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _namefinal JsonField<String> _name() Returns the raw JSON value of name. Unlike name, 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. 
 - 
                                        _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. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal ChatCompletionAssistantMessageParam.Builder toBuilder() 
 - 
                                        validatefinal ChatCompletionAssistantMessageParam validate() 
 - 
                                        builderfinal static ChatCompletionAssistantMessageParam.Builder builder() Returns a mutable builder for constructing an instance of ChatCompletionAssistantMessageParam. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-