put

suspend fun put(prompt: String, response: String, scope: String = DEFAULT_SCOPE, metadata: Map<String, String> = emptyMap()): String

Caches response as the answer to prompt and returns the new entry's id.

Costs one Embedder.embed call. Prefer getOrPut, which embeds once for the lookup and the write together.