litellm/litellm-rust/crates/callbacks-legacy-python/python_contract.json
Yujong Lee 336021ecdf refactor(callbacks-legacy-python): name borrowed hooks as Python names them
The shim functions, the contract keys and the Rust variants now carry the
litellm.utils names for the three deployment hook fan-outs, and the
Messages handler's pre-request fan-out gets its own group instead of
sharing the deployment one. Pending states and the facade follow suit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-26 08:16:47 +00:00

116 lines
1.7 KiB
JSON

{
"setup": [
"call_type",
"args",
"kwargs",
"start_time",
"asynchronous"
],
"finalize": [
"response",
"logger",
"kwargs",
"start_time",
"end_time"
],
"update_logging": [
"logger",
"kwargs",
"model",
"optional_params",
"litellm_params",
"custom_llm_provider"
],
"pre_call": [
"logger",
"input",
"api_key",
"additional_args"
],
"post_call": [
"logger",
"original_response",
"api_key",
"additional_args"
],
"defers_async_logging": [
"logger"
],
"defer_success": [
"logger",
"pending"
],
"sync_success_for_async_call": [
"logger",
"response",
"start",
"end"
],
"failure_handler": [
"logger",
"error",
"start",
"end",
"asynchronous"
],
"submit_success": [
"logger",
"response",
"start",
"end"
],
"async_success_handler": [
"logger",
"response",
"start",
"end"
],
"enqueue_logging": [
"coroutine"
],
"restore_context": [
"logger"
],
"custom_pricing_fields": [],
"is_internal_call": [],
"execute_pre_request_hooks": [
"model",
"messages",
"kwargs"
],
"async_pre_call_deployment_hook": [
"logger",
"kwargs",
"call_type"
],
"async_post_call_success_deployment_hook": [
"kwargs",
"response",
"call_type"
],
"async_post_call_failure_deployment_hook": [
"kwargs",
"error",
"call_type"
],
"stream_opened": [
"logger"
],
"stream_success": [
"logger",
"url_route",
"endpoint_type",
"request_body",
"chunks",
"start",
"end",
"first_chunk"
],
"stream_failure": [
"logger",
"endpoint_type",
"request_body",
"chunks",
"error"
]
}