Class ChatRequestAssistantMessage

java.lang.Object
com.azure.ai.openai.models.ChatRequestMessage
com.azure.ai.openai.models.ChatRequestAssistantMessage

public final class ChatRequestAssistantMessage extends ChatRequestMessage
A request chat message representing response or action from the assistant.
  • Constructor Details

    • ChatRequestAssistantMessage

      public ChatRequestAssistantMessage(String content)
      Creates an instance of ChatRequestAssistantMessage class.
      Parameters:
      content - the content value to set.
  • Method Details

    • getContent

      public String getContent()
      Get the content property: The content of the message.
      Returns:
      the content value.
    • getName

      public String getName()
      Get the name property: An optional name for the participant.
      Returns:
      the name value.
    • setName

      public ChatRequestAssistantMessage setName(String name)
      Set the name property: An optional name for the participant.
      Parameters:
      name - the name value to set.
      Returns:
      the ChatRequestAssistantMessage object itself.
    • getToolCalls

      public List<ChatCompletionsToolCall> 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

      public ChatRequestAssistantMessage 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.
      Parameters:
      toolCalls - the toolCalls value to set.
      Returns:
      the ChatRequestAssistantMessage object itself.
    • getFunctionCall

      public FunctionCall 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

      public ChatRequestAssistantMessage 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.
      Parameters:
      functionCall - the functionCall value to set.
      Returns:
      the ChatRequestAssistantMessage object itself.