# Mock Demo Provider

> Build scripted, deterministic mock LLM providers for zero-cost testing and reliable offline agent demos.

Mock Demo Provider is a free AI agent skill on Agensi by Mohamed Mostafa Metawea, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohamed Mostafa Metawea](https://www.agensi.io/creators/mohamed-mostafa-metawea)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/mock-demo-provider
- Tags: llm-ops, testing, mocking, developer-tools

## About this skill

Testing and demoing an agentic app usually brings high API costs, rate-limit errors and unpredictable network latency. This skill provides the framework to build a scripted, deterministic mock LLM provider that mirrors real model interfaces for zero-cost offline development and reliable public presentations.

### What it does
- **Deterministic Scripting** mimics real model responses based on system prompts and message history.
- **Multi-step Tool Calling** simulates complex workflows where agents must invoke specific functions like task creation.
- **Role-Aware Output** ensures responses match the specific persona of the agent being tested.
- **Output Labeling** automatically prefixes all generated text with a `[mock]` tag for transparency.
- **Pacing Control** implements a configurable `MOCK_DELAY` to simulate model latency for watchable demos.

### How it works
1. **Initialize the mock provider** within your application logic to replace standard API calls.
2. **Define response scripts** that map specific user inputs or agent roles to predetermined text and tool-use blocks.
3. **Configure timing** by setting the `MOCK_DELAY` environment variable to match your preferred demo tempo.
4. **Assert behavior** in your test suite by validating that the app handles the mock response shapes correctly.

### Frameworks & tools
This skill is code-verified from working multi-agent applications and focuses on implementing a `complete(system, messages, tools, model)` method compatible with standard LLM provider patterns.

### Why this beats prompting it yourself
Writing basic mocks usually fails to capture the complexity of tool-use cycles and role specificities required for agent orchestration. This skill provides a structured approach to building a "scripted brain" that handles headers, retries, and multi-step tool round trips without hitting a single network endpoint.

### Use cases
- **Public Demos** on free hosting tiers where API latency and costs are prohibitive.
- **Automated Testing** to assert exact application behavior during tool round trips and retries.
- **Live Rehearsals** to preserve API quotas for final presentations.
- **UI/UX Validation** to ensure tickers and avatars animate correctly during model "processing" time.

### Known limitations
The mock provider proves application logic, not actual model intelligence. It is deterministic by design and will not surface edge cases that the script writer did not explicitly anticipate.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Mock Demo Provider skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What is the main purpose of this skill?

This skill provides a framework to build a scripted LLM provider that mimics real model interfaces. It allows you to run agentic applications with zero API costs and no network latency by using deterministic responses instead of live model calls.

### How does the skill handle complex agent behaviors like tool use?

You can define specific response scripts based on user inputs or agent roles. It supports multi step tool calling, role aware personas, and a configurable pacing delay to make your offline presentations look like live model interactions.

### What technical standards does the mock provider follow?

This skill is code verified from working multi agent applications. It focuses on implementing a specific completion method that is compatible with standard LLM provider patterns for headers, retries, and tool round trips.

### How will I know if the output is coming from the mock or a real model?

Every output is automatically prefixed with a [mock] tag. This ensures transparency so that users, stakeholders, and developers do not mistake scripted text for live model intelligence.

### What are the limitations of using a scripted provider?

The provider is deterministic by design and only follows the scripts you create. It proves your application logic and UI flow work correctly, but it cannot simulate unexpected edge cases or actual model intelligence that you have not explicitly scripted.

### How do I tell my agent to start using this skill?

Simply ask your agent to initialize the mock provider within your application logic. You can then instruct the agent to define response scripts for specific roles and set the preferred delay for your demo tempo.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
