Class TextContent

  • All Implemented Interfaces:
    dev.langchain4j.data.message.Content

    
    public class TextContent
     implements Content
                        

    Represents a text content.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TextContent(String text) Creates a new text content.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • TextContent

        TextContent(String text)
        Creates a new text content.
        Parameters:
        text - the text.