类 Part

java.lang.Object
io.github.a2ap.core.model.Part
直接已知子类:
DataPart, FilePart, TextPart

public abstract class Part extends Object
Abstract base class for different types of content parts in the A2A protocol. Parts represent discrete pieces of content that can be included in messages or artifacts. This class provides a common structure and polymorphic behavior for handling various content types in a type-safe manner. Supported part types: - TextPart: Plain text content - FilePart: File-based content with metadata - DataPart: Structured data content The class uses Jackson's polymorphic serialization to maintain type information during JSON serialization/deserialization, enabling proper reconstruction of specific part types from generic Part references. Each part can optionally include metadata for additional context or processing hints.