diff --git a/tools/index_widget.py b/tools/index_widget.py index 999985e..505827f 100644 --- a/tools/index_widget.py +++ b/tools/index_widget.py @@ -396,10 +396,9 @@ def fn(token_handler): def generate_code(query: str) -> Callable: def fn(token_handler): tool = dict( + name="IndexGenerateCodeTool", type="tools.index_generate_code.IndexGenerateCodeTool", _streaming=True, - name="IndexGenerateCodeTool", - content_description="", # not used ) tool = streaming.get_streaming_tools([tool], token_handler)[0] tool._run(query)