-
Notifications
You must be signed in to change notification settings - Fork 1.4k
function call can not get call_id #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, from the point of view of this SDK, multiple functions with the same name is an error. LLMs will generally have trouble with functions named the same; what's the use case? |
The function query_price was called twice, with the following parameters: macbook pro m1 , Another parameter is: macbook pro m2, |
Ah got it. You want the call ID for some logging. Unfortunately we don't expose this right now. We could add it as an optional param to the |
This issue is stale because it has been open for 7 days with no activity. |
This issue was closed because it has been inactive for 3 days since being marked as stale. |
return FunctionTool(
name=tool_name,
description=tool_desc,
params_json_schema=params_schema,
on_invoke_tool=create_run_function(service_key, service_name),
strict_json_schema=is_service_tool,
)
def create_run_function(service_key: str, service_name: str):
async def run_function(context, params_str: str) -> str:
return run_function
Question
当执行多个相同方法名,但是参数不同时,这里无法定位到是哪次调用, 因为该方法无法获取call_id
When multiple methods with the same name but different parameters are executed, it is impossible to determine which call it is here because the method cannot obtain the call_id
The text was updated successfully, but these errors were encountered: