Foundry.Chat.ContextCache (foundry v0.2.0)

Copy Markdown

ETS-backed cache for expensive chat context assembly.

The Studio copilot uses this to avoid rebuilding the full Foundry prompt and project graph on every turn when the relevant project inputs are unchanged.

Summary

Functions

fingerprint(project_root)

@spec fingerprint(String.t()) :: String.t()

get_or_build(project_root)

@spec get_or_build(String.t()) :: {:ok, map()} | {:error, term()}