litellm/litellm-rust
Yujong Lee 302ab0b1c2 refactor(rust): add gateway and router hook seams
The Rust gateway now calls hooks at all three request layers, each from its
own layer code:

- gateway: GatewayHooks::pre_call in the shared request::route step every
  handler already goes through, post_call as a layer on the inference router
- router: RouterHooks::filter_deployments inside Router::select
- inference: the existing Interceptors, composed with the cache-key capture
  through a route-neutral Chain

Hooks are stored type-erased (Arc<dyn ...>, DynInterceptors in litellm-host),
so Gateway, Router and the route handlers keep their plain signatures.
Defaults are no-ops; only tests install recorders.
2026-10-06 16:21:44 -07:00
..
.agents/skills refactor(rust): derive string enum serde through strum and serde_with (#44675) 2026-10-05 15:34:34 -07:00
crates refactor(rust): add gateway and router hook seams 2026-10-06 16:21:44 -07:00
.gitignore feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
AGENTS.md refactor(rust): derive string enum serde through strum and serde_with (#44675) 2026-10-05 15:34:34 -07:00
Cargo.lock refactor(rust): add gateway and router hook seams 2026-10-06 16:21:44 -07:00
Cargo.toml refactor(rust): extract inference-testing crate (#44873) 2026-10-06 16:33:06 +00:00
clippy.toml feat(rust): add the MCP gateway (#43470) 2026-09-27 19:37:41 -07:00