enh: tool __id__ param support for cache dir

This commit is contained in:
Timothy J. Baek 2024-06-18 18:14:18 -07:00
parent 6f9a31eba5
commit dcac1a3cb7

View File

@ -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)