Class DefaultChatGenerationMetadata
java.lang.Object
org.springframework.ai.chat.metadata.DefaultChatGenerationMetadata
- All Implemented Interfaces:
ChatGenerationMetadata
,ResultMetadata
Default implementation of
ChatGenerationMetadata
.- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
ChatGenerationMetadata.Builder
-
Field Summary
Fields inherited from interface org.springframework.ai.chat.metadata.ChatGenerationMetadata
NULL
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) entrySet()
boolean
<T> T
Get thereason
this choice completed for the generation.<T> T
getOrDefault
(String key, T defaultObject) int
hashCode()
boolean
isEmpty()
keySet()
toString()
-
Method Details
-
get
- Specified by:
get
in interfaceChatGenerationMetadata
-
containsKey
- Specified by:
containsKey
in interfaceChatGenerationMetadata
-
getOrDefault
- Specified by:
getOrDefault
in interfaceChatGenerationMetadata
-
entrySet
- Specified by:
entrySet
in interfaceChatGenerationMetadata
-
keySet
- Specified by:
keySet
in interfaceChatGenerationMetadata
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceChatGenerationMetadata
-
getFinishReason
Description copied from interface:ChatGenerationMetadata
Get thereason
this choice completed for the generation.- Specified by:
getFinishReason
in interfaceChatGenerationMetadata
- Returns:
- the
reason
this choice completed for the generation.
-
getContentFilters
- Specified by:
getContentFilters
in interfaceChatGenerationMetadata
-
hashCode
public int hashCode() -
equals
-
toString
-