[gpt-oss] Validate gpt-oss python tool during initialization (#23856)

Signed-off-by: Chen Zhang <zhangch99@outlook.com>
This commit is contained in:
Chen Zhang
2025-09-09 01:37:48 -07:00
committed by GitHub
parent ccb97338af
commit 1116590b16
3 changed files with 30 additions and 1 deletions

View File

@@ -1717,6 +1717,8 @@ async def init_app_state(
if args.tool_server == "demo":
tool_server: Optional[ToolServer] = DemoToolServer()
assert isinstance(tool_server, DemoToolServer)
await tool_server.init_and_validate()
elif args.tool_server:
tool_server = MCPToolServer()
await tool_server.add_tool_server(args.tool_server)