Język

CachingChatClient.GetCacheKey Metoda

Definicja

Oblicza klucz pamięci podręcznej dla określonych wartości.

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

Parametry

messages
IEnumerable<ChatMessage>

Komunikaty informujące o kluczu.

options
ChatOptions

Element ChatOptions do informowania o kluczu.

additionalValues
ReadOnlySpan<Object>

Wszelkie inne wartości informujące o kluczu.

Zwraca

Obliczony klucz.

Dotyczy