AiPromptsHelperCacheAsync(NullableAiCachedPrompts, DateTimeOffset, IDictionaryString, String, AiJsonSchemaObjectDescription, JsonSchema, CancellationToken) - метод
Закешировать данные.
Пространство имён: Tessa.Ai.PromptsСборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
public static Task<AiCachedPrompts> CacheAsync(
AiCachedPrompts? cached,
DateTimeOffset timestamp,
IDictionary<string, string> templates,
AiJsonSchemaObjectDescription? schemeDescription,
JsonSchema? baseScheme,
CancellationToken cancellationToken
)
Public Shared Function CacheAsync (
cached As AiCachedPrompts?,
timestamp As DateTimeOffset,
templates As IDictionary(Of String, String),
schemeDescription As AiJsonSchemaObjectDescription,
baseScheme As JsonSchema,
cancellationToken As CancellationToken
) As Task(Of AiCachedPrompts)
public:
static Task<AiCachedPrompts>^ CacheAsync(
Nullable<AiCachedPrompts> cached,
DateTimeOffset timestamp,
IDictionary<String^, String^>^ templates,
AiJsonSchemaObjectDescription^ schemeDescription,
JsonSchema^ baseScheme,
CancellationToken cancellationToken
)
static member CacheAsync :
cached : Nullable<AiCachedPrompts> *
timestamp : DateTimeOffset *
templates : IDictionary<string, string> *
schemeDescription : AiJsonSchemaObjectDescription *
baseScheme : JsonSchema *
cancellationToken : CancellationToken -> Task<AiCachedPrompts>
- cached NullableAiCachedPrompts
- Предыдущий кэш.
- timestamp DateTimeOffset
- Метка времени.
- templates IDictionaryString, String
- Исходные шаблоны.
- schemeDescription AiJsonSchemaObjectDescription
- Описание схемы.
- baseScheme JsonSchema
- Базовая схема.
- cancellationToken CancellationToken
Propagates notification that operations should be canceled.
TaskAiCachedPromptsНовое кэшированное состояние.