Function
register_llm_execution_intercept
(
name: &str,
priority: i32,
callable: Py<PyAny>,
)
Source from the content-addressed store, hash-verified
| 1115 | /// implementation; skip calling ``next`` to short-circuit. |
| 1116 | #[pyfunction] |
| 1117 | fn register_llm_execution_intercept( |
| 1118 | name: &str, |
| 1119 | priority: i32, |
| 1120 | callable: Py<PyAny>, |
| 1121 | ) -> PyResult<()> { |
| 1122 | core_registry_api::register_llm_execution_intercept( |
| 1123 | name, |
| 1124 | priority, |
| 1125 | py_callable::wrap_py_llm_exec_intercept_fn(callable), |
| 1126 | ) |
| 1127 | .map_err(to_py_err) |
| 1128 | } |
| 1129 | |
| 1130 | /// Remove a previously registered LLM execution intercept. |
| 1131 | #[pyfunction] |