Verified Owner
Top Description Fields Constructors Methods
org.jabref.model.ai.chatting

public Class ErrorMessage

extends Object
implements dev.langchain4j.data.message.ChatMessage
Class Inheritance
Imports
dev.langchain4j.data.message.ChatMessage, dev.langchain4j.data.message.ChatMessageType

Class representing an error from AI side. This is a dummy class, that extends from langchain4j's ChatMessage, but it should not be used in any of langchain4j's classes or algorithms as langchain4j does not support adding new message types. The primary use of this class is to be stored in a chat history and displayed in the UI.

Field Summary

Modifier and TypeField and Description
pack-priv String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public dev.langchain4j.data.message.ChatMessageType
type()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

textback to summary
pack-priv String text

Constructor Detail

ErrorMessageback to summary
public ErrorMessage(String text)

Method Detail

getTextback to summary
public String getText()
typeback to summary
public dev.langchain4j.data.message.ChatMessageType type()