Uses of Class
com.microsoft.semantickernel.services.chatcompletion.AuthorRole
-
Packages that use AuthorRole Package Description com.microsoft.semantickernel.services.chatcompletion com.microsoft.semantickernel.services.chatcompletion.message -
-
Uses of AuthorRole in com.microsoft.semantickernel.services.chatcompletion
Methods in com.microsoft.semantickernel.services.chatcompletion that return AuthorRole Modifier and Type Method Description AuthorRoleChatMessageContent. getAuthorRole()Gets the author role that generated the contentstatic AuthorRoleAuthorRole. valueOf(String name)Returns the enum constant of this type with the specified name.static AuthorRole[]AuthorRole. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.microsoft.semantickernel.services.chatcompletion with parameters of type AuthorRole Modifier and Type Method Description ChatHistoryChatHistory. addMessage(AuthorRole authorRole, String content)Add a message to the chat historyChatHistoryChatHistory. addMessage(AuthorRole authorRole, String content, Charset encoding, FunctionResultMetadata<?> metadata)Add a message to the chat historyConstructors in com.microsoft.semantickernel.services.chatcompletion with parameters of type AuthorRole Constructor Description ChatMessageContent(AuthorRole authorRole, String content)Creates a new instance of theChatMessageContentclass.ChatMessageContent(AuthorRole authorRole, String content, String modelId, T innerContent, Charset encoding, FunctionResultMetadata metadata)Creates a new instance of theChatMessageContentclass.ChatMessageContent(AuthorRole authorRole, String content, String modelId, T innerContent, Charset encoding, FunctionResultMetadata metadata, ChatMessageContentType contentType)Creates a new instance of theChatMessageContentclass.ChatMessageContent(AuthorRole authorRole, List<KernelContent<T>> items, String modelId, T innerContent, Charset encoding, FunctionResultMetadata metadata, ChatMessageContentType contentType)Creates a new instance of theChatMessageContentclass. -
Uses of AuthorRole in com.microsoft.semantickernel.services.chatcompletion.message
Methods in com.microsoft.semantickernel.services.chatcompletion.message with parameters of type AuthorRole Modifier and Type Method Description ChatMessageTextContent.BuilderChatMessageTextContent.Builder. withAuthorRole(AuthorRole authorRole)Set the author role of the messageConstructors in com.microsoft.semantickernel.services.chatcompletion.message with parameters of type AuthorRole Constructor Description ChatMessageTextContent(AuthorRole authorRole, String content, String modelId, Charset encoding, FunctionResultMetadata metadata)Creates a new instance of theChatMessageTextContentclass.
-