Function
scope_register_llm_execution_intercept
(
scope_uuid: &str,
name: &str,
priority: i32,
callable: Py<PyAny>,
)
Source from the content-addressed store, hash-verified
| 1522 | /// Register a scope-local LLM execution intercept. |
| 1523 | #[pyfunction] |
| 1524 | fn scope_register_llm_execution_intercept( |
| 1525 | scope_uuid: &str, |
| 1526 | name: &str, |
| 1527 | priority: i32, |
| 1528 | callable: Py<PyAny>, |
| 1529 | ) -> PyResult<()> { |
| 1530 | let uuid = parse_uuid(scope_uuid)?; |
| 1531 | core_registry_api::scope_register_llm_execution_intercept( |
| 1532 | &uuid, |
| 1533 | name, |
| 1534 | priority, |
| 1535 | py_callable::wrap_py_llm_exec_intercept_fn(callable), |
| 1536 | ) |
| 1537 | .map_err(to_py_err) |
| 1538 | } |
| 1539 | |
| 1540 | /// Remove a previously registered scope-local LLM execution intercept. |
| 1541 | #[pyfunction] |