
com.microsoft.azure.functions.openai.annotation.assistant.ChatMessage Maven / Gradle / Ivy
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.functions.openai.annotation.assistant;
/**
*
* Chat Message Entity which contains the content of the message, the role of the chat agent, and the name of the calling function if applicable.
*
*/
public class ChatMessage {
private String content;
private String role;
private String name;
/**
* Initializes a new instance of the ChatMessage class.
*
* @param content The content of the message.
* @param role The role of the chat agent.
*/
public ChatMessage(String content, String role) {
this.content = content;
this.role = role;
}
/**
* Initializes a new instance of the ChatMessage class.
*
* @param content The content of the message.
* @param role The role of the chat agent.
* @param name The name of the calling function if applicable.
*/
public ChatMessage(String content, String role, String name) {
this.content = content;
this.role = role;
this.name = name;
}
/**
* Gets the content of the message.
*
* @return The content of the message.
*/
public String getContent() {
return content;
}
/**
* Sets the content of the message.
*
* @param content The content of the message.
*/
public void setContent(String content) {
this.content = content;
}
/**
* Gets the role of the chat agent.
*
* @return The role of the chat agent.
*/
public String getRole() {
return role;
}
/**
* Sets the role of the chat agent.
*
* @param role The role of the chat agent.
*/
public void setRole(String role) {
this.role = role;
}
/**
* Gets the name of the calling function if applicable.
*
* @return The name of the calling function if applicable.
*/
public String getName() {
return name;
}
/**
* Sets the name of the calling function if applicable.
*
* @param name The name of the calling function if applicable.
*/
public void setName(String name) {
this.name = name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy