Package dev.langchain4j.data.message
Interface Content
- All Known Implementing Classes:
ImageContent
,TextContent
public interface Content
Abstract base interface for message content.
-
Method Summary
-
Method Details
-
type
ContentType type()Returns the type of content.Can be used to cast the content to the correct type.
- Returns:
- The type of content.
-