PromptisePromptise
Docs
GitHub
Promptise - AI Framework LogoPromptise

The foundation layer for agentic intelligence. Build, secure and operate autonomous AI systems with Promptise Foundry.

pip install promptise

[01] Foundry

  • MCPcast
  • The Promptise Agent
  • Reasoning Engine
  • MCP
  • Agent Runtime
  • Prompt Engineering
  • Execution Engine
  • Agent Identity

[02] Resources

  • Documentation
  • GitHub
  • Guides
  • Learning Paths
  • Questions

[03] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

Open source · Python

← Guides> Library> Topic

LLM caching: prompt, semantic and tool-result caches

Caching saves money and time by not paying twice for the same work, and an LLM application has several kinds. Prompt caching, offered by model providers, reuses the processed prefix of a long prompt such as a system prompt or tool list. A semantic cache stores earlier answers and returns one when a new question means the same thing, matched by embeddings rather than exact text. A tool server can cache the results of slow or expensive calls.

Each has a risk: a semantic cache can answer a question that only looks similar, and cached data can go stale or leak between users. These guides cover semantic caching with model fallback, caching and circuit breakers on MCP servers, and how prompt caching changes the token cost of MCP tool lists.

[n.01/02]> 3 guides
  1. 01MCP vs CLI for AI Agents: Tokens, Security, When to Use EachMCP vs CLI tools for AI agents: where the tokens go, prompt caching, per-user security and when to use each or both, with runnable code and real output.Intermediate · 20 minOct 18, 2026
  2. 02LLM Semantic Cache and Model Fallback in PythonReduce LLM API costs with a semantic cache and survive provider outages with model fallback. Real hits, tokens and a simulated outage, in Python.Intermediate · 23 minOct 11, 2026
  3. 03MCP Server Caching, Timeouts and Circuit Breakers in PythonKeep an MCP server fast when its API is flaky: caching, retries with backoff, timeouts, a circuit breaker and limits, with real before and after numbers.Intermediate · 23 minOct 11, 2026
[n.02/02]> go further

Related topics

  • Cost Control9
  • Model Context Protocol (MCP)37
  • Reliability and Fallbacks6
  • Tool Calling16

Topic hubs

  • Cost control and rate limits→
  • Tools and the Model Context Protocol (MCP)→
  • Models and providers→
  • Memory, context and RAG→

By category and level

  • AI Engineering guides71
  • Intermediate guides80

Search every guide.

The library lists all guides with filters for topic, level, category and reading time.

All guidesLearning paths