Cache File Content

This action creates a context cache based on a binary file with the specified MimeType to use in subsequent requests.

Action Settings

Setting Description
Model Enum, required. The Model's resource name. This serves as an ID for the Model to use.
Expire Time DateTime, required. The cache expiration time.
Instructions String, optional. Instructions for using the cached content.
Display Name String, optional. A display name for the cached content.

Action Parameters

Parameter Description
BinaryContent Binary, required. The binary content of the file to cache.
MimeType Enum, required. The MIME type of the file to cache.

Result

The result contains the following fields: CacheContent_Id, CacheContent_Model, CacheContent_DisplayName, CacheContent_TotalTokenCount, CacheContent_CreateTime, CacheContent_UpdateTime, CacheContent_ExpireTime.