Factory

Factory implementation for creating FilePromptCache instances based on the provided configuration.

This class inherits from PromptCache.Factory.Named and is used to build a file-based cache for storing prompt execution results. The cache location and optional configurations are derived from the input configuration string.

Parameters

default

The default Path for the file cache if none is specified in the configuration.

Constructors

Link copied to clipboard
constructor(default: Path)

Initializes the factory with a default Path to be used when specific configurations are not provided.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun create(config: String): PromptCache
Link copied to clipboard
open fun elements(config: String): List<String>
Link copied to clipboard
fun supports(config: String): Boolean