Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public abstract class MessagePart
- Object
- MessagePart
Known subtypesImagePart, TextPart, ToolResultPart
A single content fragment within a
ChatMessage. Concrete subclasses
are TextPart, ImagePart, and ToolResultPart. Each provider
client translates parts to its own wire schema (OpenAI/Anthropic use
content arrays; Gemini uses parts with inline_data / text).