Commit dcac1a3c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

enh: tool __id__ param support for cache dir

parent 6f9a31eb
......@@ -280,6 +280,13 @@ async def get_function_call_response(
"__files__": files,
}
if "__id__" in sig.parameters:
# Call the function with the '__id__' parameter included
params = {
**params,
"__id__": tool_id,
}
function_result = function(**params)
except Exception as e:
print(e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment