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

Function set_request_id

crates/core/src/plugins/nemo_guardrails/python.rs:719–725  ·  view source on GitHub ↗
(payload: &mut Json, id: &str)

Source from the content-addressed store, hash-verified

717}
718
719fn set_request_id(payload: &mut Json, id: &str) -> FlowResult<()> {
720 let object = payload.as_object_mut().ok_or_else(|| {
721 FlowError::Internal("worker command payload must be a JSON object".to_string())
722 })?;
723 object.insert("id".to_string(), Json::String(id.to_string()));
724 Ok(())
725}
726
727fn dispatch_worker_envelope(
728 waiters: &Arc<Mutex<HashMap<String, std_mpsc::Sender<WorkerEnvelope>>>>,

Callers 1

send_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected