Class OllamaMessage
java.lang.Object
me.zacharias.chat.ollama.OllamaMessage
- Direct Known Subclasses:
OllamaMessageToolCall, OllamaToolError, OllamaToolRespnce, SystemMessage
Represents a message sent by a Tool, Assistant(Ollama), or User.
-
Constructor Summary
ConstructorsConstructorDescriptionOllamaMessage(OllamaMessageRole role, String content) Creates a new instance of OllamaMessage. -
Method Summary
-
Constructor Details
-
OllamaMessage
Creates a new instance of OllamaMessage.- Parameters:
role- The role of the messagecontent- The content of the message
-
-
Method Details
-
getRole
- Returns:
- The role of who sent this "message", represented as
OllamaMessageRole
-
getContent
- Returns:
- The "message" or content sent by a source
-
toString
-