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

Multiple tool calls not working #71

Open
hemantvsn opened this issue Sep 3, 2024 · 3 comments
Open

Multiple tool calls not working #71

hemantvsn opened this issue Sep 3, 2024 · 3 comments
Assignees

Comments

@hemantvsn
Copy link

In my application, which was working on OPEN AI ASSISTANT,
for a given user question, it makes multiple function/tool calls
Eg - get_databases -> get_tables_for_database -> execute_query

But when I replaced with ASTRA ASSISTANT API, its unable to make more than 1 tool call.
After response from first tool call, the run status is completed and it returns the answer

@phact
Copy link
Collaborator

phact commented Sep 3, 2024

Hi @hemantvsn, welcome and thanks for filing this issue!

Are you referring to parallel tool calls like here? https://platform.openai.com/docs/guides/function-calling/configuring-parallel-function-calling

@hemantvsn
Copy link
Author

NO

In my case, to get to answer 1 tool call is made after another. (based on response of first)
Eg - first - get_tables
then it identifies which table is more suited to answer a question.

Then in next tool call - get_table_structure(table_id)

Then once it identifies the table structure, it makes next tool call - execute_query(query)

@phact
Copy link
Collaborator

phact commented Sep 3, 2024

Interesting, I'm having trouble finding information about multiple sequential tool calls in the same run in the official assistants API documentation so we may have to try things empirically.

Do you happen to have an example you can share that reproduces this behavior?

@phact phact self-assigned this Sep 3, 2024
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

2 participants