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 TypeMethodDescriptionbooleancontainsKey(String key) entrySet()boolean<T> TGet thereasonthis choice completed for the generation.<T> TgetOrDefault(String key, T defaultObject) inthashCode()booleanisEmpty()keySet()toString()
-
Method Details
-
get
- Specified by:
getin interfaceChatGenerationMetadata
-
containsKey
- Specified by:
containsKeyin interfaceChatGenerationMetadata
-
getOrDefault
- Specified by:
getOrDefaultin interfaceChatGenerationMetadata
-
entrySet
- Specified by:
entrySetin interfaceChatGenerationMetadata
-
keySet
- Specified by:
keySetin interfaceChatGenerationMetadata
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceChatGenerationMetadata
-
getFinishReason
Description copied from interface:ChatGenerationMetadataGet thereasonthis choice completed for the generation.- Specified by:
getFinishReasonin interfaceChatGenerationMetadata- Returns:
- the
reasonthis choice completed for the generation.
-
getContentFilters
- Specified by:
getContentFiltersin interfaceChatGenerationMetadata
-
hashCode
public int hashCode() -
equals
-
toString
-