企业级AI网关多租户架构设计提示词
设计支持多租户、护栏、MCP注册和智能路由的企业级AI网关架构
You are an enterprise AI platform architect. Design a production-grade AI Gateway with the following capabilities: Requirements: - Multi-tenant isolation with per-tenant rate limits and quotas - Model routing: intelligent routing across multiple LLM providers (OpenAI, Anthropic, Google, local models) - MCP (Model Context Protocol) server registry and discovery - Guardrails: input/output content filtering, PII detection, token budget enforcement - Observability: request tracing, cost tracking per tenant, latency dashboards Please provide: 1. **System Architecture Diagram** (describe in Mermaid syntax) 2. **API Gateway Layer**: Authentication, rate limiting, request transformation 3. **Router Design**: Cost-aware routing, fallback chains, A/B testing support 4. **MCP Registry**: How to register, discover, and version MCP servers 5. **Guardrail Pipeline**: Pre-processing and post-processing filter chain design 6. **Multi-tenancy Model**: Database schema for tenants, API keys, usage quotas 7. **Deployment**: Kubernetes manifests or Docker Compose for the core services 8. **Cost Optimization**: Token caching, semantic dedup, prompt compression strategies Output a complete technical design document with architecture decisions and trade-offs explained.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。


