Interface ChatGenerationMetadata.Builder
- All Known Implementing Classes:
DefaultChatGenerationMetadataBuilder
- Enclosing interface:
- ChatGenerationMetadata
public static interface ChatGenerationMetadata.Builder
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the Generation metadata.contentFilter
(String contentFilter) Add content filter to the Generation result.contentFilters
(Set<String> contentFilters) Add content filters to the Generation result.finishReason
(String id) Set the reason this choice completed for the generation.Add metadata to the Generation result.Add metadata to the Generation result.
-
Method Details
-
finishReason
Set the reason this choice completed for the generation. -
metadata
Add metadata to the Generation result. -
metadata
Add metadata to the Generation result. -
contentFilter
Add content filter to the Generation result. -
contentFilters
Add content filters to the Generation result. -
build
ChatGenerationMetadata build()Build the Generation metadata.
-