getOrPut

suspend fun ApplicationCall.getOrPut(prompt: String, scope: String = SemanticCache.DEFAULT_SCOPE, metadata: Map<String, String> = emptyMap(), compute: suspend (String) -> String): String

Returns the cached answer to prompt, or runs compute and caches it — the installed cache's SemanticCache.getOrPut, reachable straight off the call.