Request

Represents a request to be cached, consisting of a prompt and optional tools. This class is used by PromptCache implementations to store and retrieve cached responses.

Types

Link copied to clipboard
object Companion

Companion object for the Request class, providing factory functions and utility methods.

Properties

Link copied to clipboard

A unique identifier for the cache entry derived from the request's prompt and tools. This value is used by caching mechanisms to store and retrieve cached responses.

Link copied to clipboard

The prompt to be cached

Link copied to clipboard

Json representations of the tools