Uses of Interface
org.springframework.ai.chat.metadata.PromptMetadata
-
Uses of PromptMetadata in org.springframework.ai.azure.openai
Modifier and TypeMethodDescriptionstatic ChatResponseMetadata
AzureOpenAiChatModel.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata) -
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.ChatResponseMetadata.getPromptMetadata()
Returns the prompt metadata gathered by the AI during request processing.static PromptMetadata
PromptMetadata.of
(Iterable<PromptMetadata.PromptFilterMetadata> iterable) Factory method used to create a newPromptMetadata
composed of anIterable
ofPromptMetadata.PromptFilterMetadata
.static PromptMetadata
PromptMetadata.of
(PromptMetadata.PromptFilterMetadata... array) Factory method used to create a newPromptMetadata
composed of an array ofPromptMetadata.PromptFilterMetadata
.Modifier and TypeMethodDescriptionChatResponseMetadata.Builder.withPromptMetadata
(PromptMetadata promptMetadata)