MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / register_llm_execution_intercept

Function register_llm_execution_intercept

crates/python/src/py_api/mod.rs:1117–1128  ·  view source on GitHub ↗
(
    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]
1117fn 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]

Calls 1