Class ConversationStore
java.lang.Object
com.codename1.ai.ConversationStore
JSON-backed persistent conversation history.
Stores ChatMessage lists in Storage under a caller-chosen key
so apps can rehydrate a ChatView after process restart.
Multimodal parts (ImagePart, ToolResultPart) are serialized
to a lossy text fallback -- image data is not round-tripped (apps
that need full multimodal persistence should encode the bytes
themselves and keep them in FileSystemStorage).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ConversationStore
-
-
Method Details
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
clear
public void clear() -
getStorageKey
-