1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Core functionality for the Gateway
//!
//! This module contains the core business logic and data structures.
// Opt-in A2A gateway configuration and domain types.
// Audio API (transcription, translation, speech)
// Audit logging system
// Metadata-only terminal request ledger
// pub mod base_provider; // Removed: unused dead code
// Budget management system
// Canonical deterministic cache subsystem (DualCache / LLMCache)
// Core completion API
// Unified cost calculation system
// Core embedding API (Python LiteLLM compatible)
// Fine-tuning API
// Function calling support for AI providers
// Gateway request/output guardrails.
// Health monitoring system
// Shared outbound HTTP client utilities
// Configured callback integrations.
// Gateway IP access middleware.
// API Key Management System
// MCP configuration/schema types and optional Streamable HTTP gateway.
// Network validation and safety utilities
// Canonical callback dispatcher and shared redaction helpers.
// Shared pricing data types
// Runtime pricing service
// Rate limiting system
// Rerank API for RAG systems
// Secret management system
// Runtime wiring decisions for exported core modules.
// Team management module
// User/team domain records used by auth and storage.
// Canonical KeyManager runtime facade.