# Class MessagePart

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

Direct Known Subclasses:
  `ImagePart, TextPart, ToolResultPart`

public abstract class MessagePart extends java.lang.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 java.lang.Object

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