Package com.azure.ai.openai.models
Class ChatRequestAssistantMessage
java.lang.Object
com.azure.ai.openai.models.ChatRequestMessage
com.azure.ai.openai.models.ChatRequestAssistantMessage
A request chat message representing response or action from the assistant.
-
Constructor Summary
ConstructorsConstructorDescriptionChatRequestAssistantMessage(String content) Creates an instance of ChatRequestAssistantMessage class. -
Method Summary
Modifier and TypeMethodDescriptionGet the content property: The content of the message.Get the functionCall property: The function call that must be resolved and have its output appended to subsequent input messages for the chat completions request to resolve as configured.getName()Get the name property: An optional name for the participant.Get the toolCalls property: The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.setFunctionCall(FunctionCall functionCall) Set the functionCall property: The function call that must be resolved and have its output appended to subsequent input messages for the chat completions request to resolve as configured.Set the name property: An optional name for the participant.setToolCalls(List<ChatCompletionsToolCall> toolCalls) Set the toolCalls property: The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.
-
Constructor Details
-
ChatRequestAssistantMessage
Creates an instance of ChatRequestAssistantMessage class.- Parameters:
content- the content value to set.
-
-
Method Details
-
getContent
Get the content property: The content of the message.- Returns:
- the content value.
-
getName
Get the name property: An optional name for the participant.- Returns:
- the name value.
-
setName
Set the name property: An optional name for the participant.- Parameters:
name- the name value to set.- Returns:
- the ChatRequestAssistantMessage object itself.
-
getToolCalls
Get the toolCalls property: The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.- Returns:
- the toolCalls value.
-
setToolCalls
Set the toolCalls property: The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.- Parameters:
toolCalls- the toolCalls value to set.- Returns:
- the ChatRequestAssistantMessage object itself.
-
getFunctionCall
Get the functionCall property: The function call that must be resolved and have its output appended to subsequent input messages for the chat completions request to resolve as configured.- Returns:
- the functionCall value.
-
setFunctionCall
Set the functionCall property: The function call that must be resolved and have its output appended to subsequent input messages for the chat completions request to resolve as configured.- Parameters:
functionCall- the functionCall value to set.- Returns:
- the ChatRequestAssistantMessage object itself.
-