Package org.springframework.ai.client
Class AiResponse
java.lang.Object
org.springframework.ai.client.AiResponse
-
Constructor Summary
ConstructorDescriptionAiResponse
(List<Generation> generations) AiResponse
(List<Generation> generations, Map<String, Object> providerOutput) AiResponse
(List<Generation> generations, Map<String, Object> providerOutput, Map<String, Object> runInfo) -
Method Summary
Modifier and TypeMethodDescriptionThe list of generated outputs.Arbitrary model provider specific outputThe run metadata information
-
Constructor Details
-
AiResponse
-
AiResponse
-
AiResponse
-
-
Method Details
-
getGenerations
The list of generated outputs. It is a list of lists because the Prompt could request multiple output generations.- Returns:
-
getGeneration
-
getProviderOutput
Arbitrary model provider specific output -
getRunInfo
The run metadata information
-