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
ConstructorDescriptionGeneration
(AssistantMessage assistantMessage) Generation
(AssistantMessage assistantMessage, ChatGenerationMetadata chatGenerationMetadata) -
Method Summary
-
Constructor Details
-
Generation
-
Generation
-
-
Method Details
-
getOutput
Description copied from interface:ModelResult
Retrieves the output generated by the AI model.- Specified by:
getOutput
in interfaceModelResult<AssistantMessage>
- Returns:
- the output generated by the AI model
-
getMetadata
Description copied from interface:ModelResult
Retrieves the metadata associated with the result of an AI model.- Specified by:
getMetadata
in interfaceModelResult<AssistantMessage>
- Returns:
- the metadata associated with the result
-
equals
-
hashCode
public int hashCode() -
toString
-