# Class MessagePart

java.lang.Object
com.codename1.ai.MessagePart

Direct Known Subclasses:
  `ImagePart, TextPart, ToolResultPart`

public abstract class MessagePart extends Object
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`).

- ## Method Summary

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`