litellm/litellm-rust/crates/gateway/AGENTS.md
devin-ai-integration[bot] de74f81c69
chore(rust): prune inference deps and rewrite layering docs (#44836)
* chore(rust): prune unused inference crate dependencies

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* docs(rust): rewrite inference layering docs for the split format crates

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* docs(rust): note transcription and RouteError alias exceptions in inference AGENTS.md

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Yujong Lee <yujong@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-06 07:17:27 -07:00

655 B

  • Keep this crate a thin composition layer: mount endpoint routers and serve the supplied listener
  • Server lifecycle and shared inbound middleware belong here, including client authentication, rate limiting, and request logging
  • Endpoint paths, request handling, model resolution, and response encoding belong to the mounted crates; provider execution belongs to the inference-<fmt> crates and llms
  • Inject shared state and infrastructure; avoid global runtimes, duplicate client pools, and abstractions for hypothetical endpoint groups
  • Test mounting and server lifecycle through public HTTP behavior; test endpoint semantics in the owning crate