MCPcopy Create free account
hub / github.com/NVIDIA-NeMo/Switchyard / replace_body

Method replace_body

switchyard_rust/core.py:110–112  ·  view source on GitHub ↗

Replace the body without changing its wire format.

(self, body: object)

Source from the content-addressed store, hash-verified

108 self._body["model"] = model
109
110 def replace_body(self, body: object) -> None:
111 """Replace the body without changing its wire format."""
112 self._body = _json_copy(body)
113
114 def to_body(self) -> JsonValue:
115 """Return an owned copy of the request body."""

Calls 1

_json_copyFunction · 0.85