MCPcopy Create free account
hub / github.com/AI45Lab/Code / set_trace_sink

Method set_trace_sink

core/src/tools/registry.rs:164–166  ·  view source on GitHub ↗

Replace the trace sink used for compact tool/program execution events.

(&self, sink: Arc<dyn TraceSink>)

Source from the content-addressed store, hash-verified

162
163 /// Replace the trace sink used for compact tool/program execution events.
164 pub fn set_trace_sink(&self, sink: Arc<dyn TraceSink>) {
165 *self.trace_sink.write().unwrap() = sink;
166 }
167
168 /// Return the current trace sink.
169 pub fn trace_sink(&self) -> Arc<dyn TraceSink> {

Calls 1

writeMethod · 0.80