Class AiMessage

  • All Implemented Interfaces:
    dev.langchain4j.data.message.ChatMessage

    
    public class AiMessage
     implements ChatMessage
                        

    Represents a response message from an AI (language model). The message can contain either a textual response or a request to execute one/multiple tool(s). In the case of tool execution, the response to this message should be one/multiple ToolExecutionResultMessage.