Uses of Interface
org.springframework.ai.chat.metadata.PromptMetadata
Package
Description
-
Uses of PromptMetadata in org.springframework.ai.azure.openai.metadata
Modifier and TypeMethodDescriptionAzureOpenAiChatResponseMetadata.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata) ModifierConstructorDescriptionprotected
AzureOpenAiChatResponseMetadata
(String id, AzureOpenAiUsage usage, PromptMetadata promptMetadata) -
Uses of PromptMetadata in org.springframework.ai.chat.metadata
Modifier and TypeMethodDescriptionstatic PromptMetadata
PromptMetadata.empty()
Factory method used to create emptyPromptMetadata
when the information is not supplied by the AI provider.default PromptMetadata
ChatResponseMetadata.getPromptMetadata()
static PromptMetadata
PromptMetadata.of
(Iterable<PromptMetadata.PromptFilterMetadata> iterable) Factory method used to create a newPromptMetadata
composed of anIterable
ofPromptMetadata.PromptFilterMetadata
.static <T> PromptMetadata
PromptMetadata.of
(PromptMetadata.PromptFilterMetadata... array) Factory method used to create a newPromptMetadata
composed of an array ofPromptMetadata.PromptFilterMetadata
.