Class Generation
java.lang.Object
org.springframework.ai.chat.model.Generation
- All Implemented Interfaces:
 ModelResult<AssistantMessage>
Represents a response returned by the AI.
- 
Constructor Summary
ConstructorsConstructorDescriptionGeneration(AssistantMessage assistantMessage) Generation(AssistantMessage assistantMessage, ChatGenerationMetadata chatGenerationMetadata)  - 
Method Summary
 
- 
Constructor Details
- 
Generation
 - 
Generation
 
 - 
 - 
Method Details
- 
getOutput
Description copied from interface:ModelResultRetrieves the output generated by the AI model.- Specified by:
 getOutputin interfaceModelResult<AssistantMessage>- Returns:
 - the output generated by the AI model
 
 - 
getMetadata
Description copied from interface:ModelResultRetrieves the metadata associated with the result of an AI model.- Specified by:
 getMetadatain interfaceModelResult<AssistantMessage>- Returns:
 - the metadata associated with the result
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -