from ai_infra.mcp import CachingInterceptorCache tool call results for a configurable TTL. Caches based on tool name, arguments, and server name. Useful for expensive operations with deterministic results.
ttl_seconds: Time-to-live for cache entries (default: 300).
cache = CachingInterceptor(ttl_seconds=60)
mcp = MCPClient([config], interceptors=[cache])