MCPcopy
hub / github.com/openai/gpt-oss / run_tool

Function run_tool

gpt_oss/chat.py:170–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 assert args.browser, "Browser tool is not enabled"
169 tool_name = "Search"
170 async def run_tool():
171 results = []
172 async for msg in browser_tool.process(last_message):
173 results.append(msg)
174 return results
175
176 result = asyncio.run(run_tool())
177 messages += result

Callers 2

mainFunction · 0.85
runMethod · 0.85

Calls 1

processMethod · 0.80

Tested by

no test coverage detected