litellm/litellm-rust/crates/host-python/tests
Yujong Lee b4d4016701 refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python
Rust's run_call built Python streams itself and imported
litellm.rust_bridge.streams by name, so sync calls were driven in Rust
while async calls came back as a Rust-made coroutine. Every native
inference entrypoint now returns one unstarted Execution and
public_execution.py drives it with lifecycle.run or lifecycle.drive,
wrapping streams and _hidden_params on the Python side. Rust only
imports the lifecycle step classes through StepTypes, and
python-bridge/src/lifecycle.rs, PythonLifecycle and streams.py are gone.

The adapter trusts the _native.pyi contract with a single cast instead
of a per-request runtime_checkable isinstance. Binding tests assert the
adapter starts the execution and returns its completed value rather
than checking callable identity.
2026-10-13 21:35:17 -07:00
..
support refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python 2026-10-13 21:35:17 -07:00
conversion_cache.rs feat: improve trace ingestion and trace details (#43975) 2026-10-01 13:45:33 -07:00
driver.rs refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python 2026-10-13 21:35:17 -07:00
handle.rs refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python 2026-10-13 21:35:17 -07:00
hook_chain.rs refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python 2026-10-13 21:35:17 -07:00
interop.rs refactor(rust): run OCR through a route-neutral callback contract and a legacy Logging adapter 2026-09-17 21:13:16 -07:00
lifecycle.py refactor(rust-bridge): drive executions with generator-style send, throw and close 2026-10-13 21:34:38 -07:00