litellm/litellm/router_rust/invoke
Nate Armstrong 6188e8c7e2
refactor(router): shape attempt kwargs in router-core (#51644)
router-core now decides the fallback-hop parts of an attempt's kwargs and sends them on the attempt step as shape: the metadata model_group a hop routes, whether the walk stamps a metadata copy and strips undecryptable reasoning, and whether the request mock_timeout is dropped. The Python driver applies those decisions instead of re-deriving them from the step and deployment.
2026-11-14 15:11:33 -08:00
..
__init__.py feat(router): add the Rust router core with the host as its only boundary (#49513) 2026-11-04 21:47:58 -08:00
endpoints.py refactor(router): shape attempt kwargs in router-core (#51644) 2026-11-14 15:11:33 -08:00
prompt_management.py refactor(router): count the whole router_usage family on the native store (#50862) 2026-11-13 03:22:28 +00:00
README.md feat(router): add the Rust router core with the host as its only boundary (#49513) 2026-11-04 21:47:58 -08:00
shaping.py feat(github_copilot): support GitHub App authentication with PEM upload (#51427) 2026-11-14 10:33:20 -05:00
slots.py feat(router): add the Rust router core with the host as its only boundary (#49513) 2026-11-04 21:47:58 -08:00
streaming.py fix(router): prevent Responses fallback from replaying delivered tool calls (#51683) 2026-11-13 11:43:03 -08:00
walk.py refactor(router): shape attempt kwargs in router-core (#51644) 2026-11-14 15:11:33 -08:00
websocket.py refactor(router): count the whole router_usage family on the native store (#50862) 2026-11-13 03:22:28 +00:00

invoke

The host side of Host::invoke: running one attempt against the one deployment router-core picked. Nothing here selects, retries, falls back or records cooldowns.

  • shaping: the kwargs an attempt sends to its deployment
  • endpoints: what each public router method does before, around and after the routed call
  • streaming: stream wrappers, so a stream that fails before its first token fails the attempt
  • slots: a deployment's max_parallel_requests
  • walk: the retry and fallback metadata stamped on each attempt
  • prompt_management: prompt-management groups
  • websocket: admission for each turn of a Responses websocket

A Rust host replaces this with native endpoint calls.