Uses of Interface
com.developer.nefarious.zjoule.plugin.chat.IChatMessage
Package
Description
-
Uses of IChatMessage in com.developer.nefarious.zjoule.plugin.chat
Modifier and TypeMethodDescriptionIAIClient.chatCompletion
(List<IChatMessage> messages) Sends a list of chat messages to the AI model and retrieves the AI-generated response.IAIClient.createMessage
(Role role, String userPrompt) Creates a new chat message with the specified role and content.Modifier and TypeMethodDescriptionIAIClient.getMessageHistory()
Retrieves the chat message history.Modifier and TypeMethodDescriptionIAIClient.chatCompletion
(List<IChatMessage> messages) Sends a list of chat messages to the AI model and retrieves the AI-generated response.void
IAIClient.setMessageHistory
(List<IChatMessage> messages) Updates the chat message history with the provided list of messages. -
Uses of IChatMessage in com.developer.nefarious.zjoule.plugin.chat.openai
Modifier and TypeClassDescriptionclass
Represents a chat message exchanged with the OpenAI model.Modifier and TypeMethodDescriptionOpenAIClient.chatCompletion
(List<IChatMessage> messages) Sends a chat completion request to the OpenAI service and retrieves the AI-generated response.IOpenAIClientHelper.convertResponseToObject
(String serializedResponseBody) Converts a serialized JSON response body from the OpenAI service into anIChatMessage
.OpenAIClientHelper.convertResponseToObject
(String serializedResponseBody) Converts a serialized JSON response body from the OpenAI service into anIChatMessage
.Modifier and TypeMethodDescriptionOpenAIClient.getMessageHistory()
Retrieves the chat message history stored in memory.OpenAIRequestBody.getMessages()
Retrieves the list of chat messages in the request.Modifier and TypeMethodDescriptionOpenAIClient.chatCompletion
(List<IChatMessage> messages) Sends a chat completion request to the OpenAI service and retrieves the AI-generated response.IOpenAIClientHelper.createRequestBody
(List<IChatMessage> messages) Creates an HTTP request body for a chat completion request to the OpenAI service.OpenAIClientHelper.createRequestBody
(List<IChatMessage> messages) Creates an HTTP request body for a chat completion request to the OpenAI service.void
OpenAIClient.setMessageHistory
(List<IChatMessage> chatMessages) Stores the chat message history in memory.void
OpenAIRequestBody.setMessages
(List<IChatMessage> messages) Sets the list of chat messages in the request.