Class Generation

java.lang.Object
com.hw.langchain.schema.Generation
Direct Known Subclasses:
ChatGeneration, GenerationChunk

public class Generation extends Object
Output of a single generation.
Author:
HamaWhite
  • Field Details

    • text

      protected String text
      Generated text output.
    • generationInfo

      protected Map<String,Object> generationInfo
      Raw generation info response from the provider. May include things like reason for finishing (e.g. in OpenAI)
  • Constructor Details

    • Generation

      public Generation(String text)