Uses of Enum Class
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionMessage.Role
Packages that use OpenAiApi.ChatCompletionMessage.Role
-
Uses of OpenAiApi.ChatCompletionMessage.Role in org.springframework.ai.openai.api
Methods in org.springframework.ai.openai.api that return OpenAiApi.ChatCompletionMessage.RoleModifier and TypeMethodDescriptionOpenAiApi.ChatCompletionMessage.role()Returns the value of therolerecord component.Returns the enum constant of this class with the specified name.static OpenAiApi.ChatCompletionMessage.Role[]OpenAiApi.ChatCompletionMessage.Role.values()Returns an array containing the constants of this enum class, in the order they are declared.Constructors in org.springframework.ai.openai.api with parameters of type OpenAiApi.ChatCompletionMessage.RoleModifierConstructorDescriptionChatCompletionMessage(Object content, OpenAiApi.ChatCompletionMessage.Role role) Create a chat completion message with the given content and role.ChatCompletionMessage(Object rawContent, OpenAiApi.ChatCompletionMessage.Role role, String name, String toolCallId, List<OpenAiApi.ChatCompletionMessage.ToolCall> toolCalls, String refusal, OpenAiApi.ChatCompletionMessage.AudioOutput audioOutput, List<OpenAiApi.ChatCompletionMessage.Annotation> annotations) Creates an instance of aChatCompletionMessagerecord class.