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

Method map

switchyard_rust/core.py:140–143  ·  view source on GitHub ↗

Transform each event in registration order.

(self, callback: object)

Source from the content-addressed store, hash-verified

138 return self
139
140 def map(self, callback: object) -> ChatResponseStream:
141 """Transform each event in registration order."""
142 self._native.map(callback)
143 return self
144
145 def on_complete(self, callback: object) -> ChatResponseStream:
146 """Run a callback once after normal stream exhaustion."""

Calls

no outgoing calls