litellm/litellm-rust/crates/callbacks-legacy-python/src
Yujong Lee 93263da648 feat(callbacks-legacy-python): run Responses body hooks on native calls
Python's Responses handlers run the agentic-loop hooks over the complete
response on both the sync and the async route, and the Responses surface
is the one that fires async_agentic_loop_cleanup_hook. The native route
ran none of them

Widen HandlerBody to Responses with no request stage, since that handler
has no pre-request fan-out. The shim gains a responses arm that runs the
handler's agentic orchestration with the Responses provider config, the
normalized input and api_surface="responses", and a run_sync runner so
a sync native call runs the fan-out to completion the way Python's sync
handler does. The agentic family binds to Messages and Responses, the
cleanup hook to Responses, and the published table follows

Wheel tests cover the gate, loop, plan, follow-up, post-loop and cleanup
hooks through litellm.aresponses and litellm.responses against the
recording server
2026-10-11 19:14:48 -07:00
..
adapter.rs refactor(rust): run Python hooks and host calls as async fns on the caller's task 2026-10-12 01:02:47 +00:00
body.rs feat(callbacks-legacy-python): run Responses body hooks on native calls 2026-10-11 19:14:48 -07:00
call.rs feat(callbacks-legacy-python): run Messages body hooks on native calls 2026-10-11 19:14:46 -07:00
callbacks.rs refactor(rust): centralize host execution and compose callbacks (#43515) 2026-09-28 19:20:27 +00:00
deferred.rs refactor(rust): move tests.rs files inline or under tests/ and drop autotests = false (#43028) 2026-09-24 20:19:00 +00:00
lib.rs feat(callbacks-legacy-python): run Messages body hooks on native calls 2026-10-11 19:14:46 -07:00
logger.rs refactor(rust): rename legacy callback adapter crate 2026-09-19 23:06:26 +00:00
mapping.rs feat(callbacks-legacy-python): run Responses body hooks on native calls 2026-10-11 19:14:48 -07:00
python.rs feat(callbacks-legacy-python): run Responses body hooks on native calls 2026-10-11 19:14:48 -07:00
test_support.rs feat(callbacks-legacy-python): run Responses body hooks on native calls 2026-10-11 19:14:48 -07:00