Skip to content
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

Function calling with multiple parametrs dosen't seem to work #7

Open
paperclip369 opened this issue Aug 7, 2024 · 0 comments
Open

Comments

@paperclip369
Copy link

Function calling

@FunctionDef(name = "fetch_places_by_brand", description = "Fetch Place by Brand")
public static String fetch_places_by_brand(
@FunctionParam(name = "brand", description = "brand it is mandatory ") String brand,
@FunctionParam(name = "conversationId", description = "conversationId from question ") String conversationId){
...}

throws exception

receive payload:{
"error": {
"message": "Invalid schema for function 'fetch_places_by_brand': {'$ref': '$.tools[0].function.parameters.properties.conversationId.enum'} is not of type 'array'.",
"type": "invalid_request_error",
"param": "tools[0].function.parameters",
"code": "invalid_function_parameters"
}
}

Fixing this would be helpful to use agents flex
Model: gpt3.5 or gpt4o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant