Class LLMResult

java.lang.Object
org.springframework.ai.core.llm.LLMResult

public class LLMResult extends Object
  • Constructor Details

  • Method Details

    • getGenerations

      public List<List<Generation>> getGenerations()
      The list of generated outputs. It iss a list of lists because a single input could have multiple outputs, and multiple inputs could be passed in.
      Returns:
    • getProviderOutput

      public Map<String,Object> getProviderOutput()
      Arbitrary LLM-provider specific output
    • getRunInfo

      public Map<String,Object> getRunInfo()
      The run metadata information