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

Function scope_register_llm_execution_intercept

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

Calls 2

parse_uuidFunction · 0.85