MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / return_output

Method return_output

toolbench/inference/utils.py:259–267  ·  view source on GitHub ↗
(self, output_stream)

Source from the content-addressed store, hash-verified

257 return " ".join(output_text)
258
259 def return_output(self, output_stream):
260 pre = 0
261 for outputs in output_stream:
262 output_text = outputs["text"]
263 output_text = output_text.strip().split(" ")
264 now = len(output_text) - 1
265 if now > pre:
266 pre = now
267 return " ".join(output_text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected