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

Parallel function calling in autogen #589

Open
skzhang1 opened this issue Nov 7, 2023 · 3 comments
Open

Parallel function calling in autogen #589

skzhang1 opened this issue Nov 7, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request function/tool suggestion and execution of function/tool call

Comments

@skzhang1
Copy link
Collaborator

skzhang1 commented Nov 7, 2023

OpenAI now supports parallel function calls when openai >= 1.1.0.

Parallel function call is helpful for cases where you want to call multiple functions in one turn. For example, you may want to call functions to get the weather in 3 different locations at the same time. In this case, the model will call multiple functions in a single response.

To make autogen support this feature, it needs to update the dependency for OpenAI to the latest version. Currently, autogen can also call multiple function calls but in a sequence pattern.
For autogen users, anyone know what kind of use-cases could benefit from this parallel function call feature and demonstrate it worth an improvement compared with sequence calling?

@skzhang1 skzhang1 added the enhancement New feature or request label Nov 7, 2023
@skzhang1 skzhang1 self-assigned this Nov 7, 2023
@skzhang1 skzhang1 changed the title Parallel function calling Parallel function calling in autogen Nov 7, 2023
@NicholasZolton
Copy link

I believe the primary use case for this feature is saving tokens. By doing parallel functions instead of sequential function calls, you avoid repeatedly sending both the function structure and previous chat history, both of which take up a significant amount of tokens. I don't believe this significantly affects the performance or accuracy of the function calls, but it's entirely possible that there's some benefit to doing it in parallel.

@afourney
Copy link
Member

afourney commented Nov 7, 2023

The dependency was updated in #588, which is now merged.

@sonichi sonichi added the function/tool suggestion and execution of function/tool call label Nov 7, 2023
@JacobJohn17756677
Copy link

hey can you tell me how to do parallel processing in autogen ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request function/tool suggestion and execution of function/tool call
Projects
None yet
Development

No branches or pull requests

5 participants