CachingChatClient.GetCacheKey Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes a cache key for the specified values.
protected:
 abstract System::String ^ GetCacheKey(System::Collections::Generic::IEnumerable<Microsoft::Extensions::AI::ChatMessage ^> ^ messages, Microsoft::Extensions::AI::ChatOptions ^ options, ReadOnlySpan<System::Object ^> additionalValues);
	protected abstract string GetCacheKey(System.Collections.Generic.IEnumerable<Microsoft.Extensions.AI.ChatMessage> messages, Microsoft.Extensions.AI.ChatOptions? options, scoped ReadOnlySpan<object?> additionalValues);
	abstract member GetCacheKey : seq<Microsoft.Extensions.AI.ChatMessage> * Microsoft.Extensions.AI.ChatOptions * ReadOnlySpan<obj> -> string
	Protected MustOverride Function GetCacheKey (messages As IEnumerable(Of ChatMessage), options As ChatOptions, additionalValues As ReadOnlySpan(Of Object)) As String
	Parameters
- messages
 - IEnumerable<ChatMessage>
 
The messages to inform the key.
- options
 - ChatOptions
 
The ChatOptions to inform the key.
- additionalValues
 - ReadOnlySpan<Object>
 
Any other values to inform the key.
Returns
The computed key.