Uses of Interface
org.springframework.ai.chat.metadata.PromptMetadata
Packages that use PromptMetadata
-
Uses of PromptMetadata in org.springframework.ai.azure.openai
Methods in org.springframework.ai.azure.openai with parameters of type PromptMetadataModifier and TypeMethodDescriptionstatic ChatResponseMetadata
AzureOpenAiChatModel.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata) static ChatResponseMetadata
AzureOpenAiChatModel.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata, com.azure.ai.openai.models.CompletionsUsage usage) static ChatResponseMetadata
AzureOpenAiChatModel.from
(com.azure.ai.openai.models.ChatCompletions chatCompletions, PromptMetadata promptFilterMetadata, Usage usage) -
Uses of PromptMetadata in org.springframework.ai.chat.metadata
Methods in org.springframework.ai.chat.metadata that return PromptMetadataModifier 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
.Methods in org.springframework.ai.chat.metadata with parameters of type PromptMetadataModifier and TypeMethodDescriptionChatResponseMetadata.Builder.promptMetadata
(PromptMetadata promptMetadata)