AI-Mocks
AI-Mocks provides specialized mock server implementations built on top of Mokksy for testing and development with LLM APIs.
Supported Providers
- OpenAI API (
ai-mocks-openai) - Anthropic API (
ai-mocks-anthropic) - Google VertexAI Gemini (
ai-mocks-gemini) - Ollama (
ai-mocks-ollama) - Agent-to-Agent Protocol (A2A) (
ai-mocks-a2a)
Feature Support Matrix
| Feature | OpenAI | Anthropic | Gemini | Ollama | A2A |
|---|---|---|---|---|---|
| Chat Completions | ✅ | ✅ | ✅ | ✅ | ✅ |
| Streaming | ✅ | ✅ | ✅ | ✅ | ✅ |
| Embeddings | ✅ | ❌ | ❌ | ✅ | ❌ |
| Moderation | ✅ | ❌ | ❌ | ❌ | ❌ |
| Additional APIs | Responses | - | - | Generate | Full A2A Protocol(11 endpoints) |
API Details by Provider
OpenAI
- Chat Completions (
/v1/chat/completions) - with streaming support - Embeddings (
/v1/embeddings) - text embedding generation - Moderation (
/v1/moderations) - content moderation - Responses (
/v1/responses) - response generation from input files
Anthropic
- Messages (
/v1/messages) - Claude's message API with streaming
Gemini
- Generate Content - standard content generation
- Streaming Content - streaming content generation
Ollama
- Chat (
/api/chat) - with streaming support - Generate (
/api/generate) - text generation with streaming - Embeddings (
/api/embed) - text embeddings
A2A (Agent-to-Agent Protocol)
- Agent Discovery - agent card endpoint
- Message Exchange - send/receive messages with streaming
- Task Management - create, get, cancel, and resubscribe to tasks
- Push Notifications - configure task notifications
- Full support for A2A Protocol v0.3.0