Class AiResponse

java.lang.Object
org.springframework.ai.client.AiResponse

public class AiResponse extends Object
  • Constructor Details

  • Method Details

    • getGenerations

      public List<Generation> getGenerations()
      The list of generated outputs. It is a list of lists because the Prompt could request multiple output generations.
      Returns:
    • getGeneration

      public Generation getGeneration()
    • getProviderOutput

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

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