litellm/litellm-rust/crates/gateway-inference/AGENTS.md
devin-ai-integration[bot] affb547525
feat(rust): add config router and gateway crates (#43289)
Co-authored-by: Yujong Lee <yujong@berri.ai>
2026-09-25 23:12:48 -07:00

723 B

  • Expose a mountable Axum router; listener binding, server lifecycle, and shared inbound middleware belong to gateway
  • Own the public inference HTTP boundary: endpoint paths, request parsing, model alias resolution, response envelopes, and SSE delivery
  • Delegate inference execution to core and provider transformations and authentication to llms and the auth crates; do not duplicate them in handlers
  • Use injected deployments, HTTP pools, settings, and secret sources; do not load process configuration or construct independent clients in handlers
  • Test HTTP contracts here, including status codes, forwarded headers, error envelopes, and streaming behavior; keep core and provider tests in their owning crates