Function
scope_register_llm_request_intercept
(
scope_uuid: &str,
name: &str,
priority: i32,
break_chain: bool,
callable: Py<PyAny>,
)
Source from the content-addressed store, hash-verified
| 1495 | /// Register a scope-local LLM request intercept. |
| 1496 | #[pyfunction] |
| 1497 | fn scope_register_llm_request_intercept( |
| 1498 | scope_uuid: &str, |
| 1499 | name: &str, |
| 1500 | priority: i32, |
| 1501 | break_chain: bool, |
| 1502 | callable: Py<PyAny>, |
| 1503 | ) -> PyResult<()> { |
| 1504 | let uuid = parse_uuid(scope_uuid)?; |
| 1505 | core_registry_api::scope_register_llm_request_intercept( |
| 1506 | &uuid, |
| 1507 | name, |
| 1508 | priority, |
| 1509 | break_chain, |
| 1510 | py_callable::wrap_py_llm_request_intercept_fn(callable), |
| 1511 | ) |
| 1512 | .map_err(to_py_err) |
| 1513 | } |
| 1514 | |
| 1515 | /// Remove a previously registered scope-local LLM request intercept. |
| 1516 | #[pyfunction] |