Enabling Caching
You can enable caching for individual tools by setting pure or cacheControl on the tool’s config. See below for examples.Cache Keys
Cache keys for tool calls are generated by normalizing the tool call’s input, regardless of whether the tool call was made viaHTTP POST, HTTP GET, or MCP.
Tool call args are hashed using a stable, deterministic JSON serialization algorithm, so tool calls with “identical” JSON inputs will have identical cache keys.
Disabling Caching
Individual tool calls can disable caching by setting the standardCache-Control header to no-store or no-cache.
Note that by default, caching is disabled for all tools. You must explicitly
enable caching for each tool in your Agentic project config.
Examples
- Pure Tool
- Custom Cache-Control
- Disabling Caching
agentic.config.ts