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

[Roadmap] Code Execution and User-Defined Functions #1421

Closed
8 of 11 tasks
gagb opened this issue Jan 26, 2024 · 9 comments
Closed
8 of 11 tasks

[Roadmap] Code Execution and User-Defined Functions #1421

gagb opened this issue Jan 26, 2024 · 9 comments
Assignees
Labels
0.2 Issues which are related to the pre 0.4 codebase code-execution execute generated code roadmap Issues related to roadmap of AutoGen tool-usage suggestion and execution of function/tool call

Comments

@gagb
Copy link
Collaborator

gagb commented Jan 26, 2024

Code Execution

We want users to choose different code execution backends: command lines, iPython kernel, etc., and plug-in their own customized code executor. We also want to provide built-in containerized code executors.

Tasks

Preview Give feedback
  1. code-execution feature good first issue
    WaelKarkoub
  2. 0.2 code-execution needs-triage

User-Defined Functions

We currently only supports function calling via OpenAI function call and tools. We plan to overcome this limitation by supporting user-defined functions in the new code executors. So these functions can be used in code blocks generated by code producer agents and executed by code executors.

Use Cases

  • Will allow function calling with non-OpenAI models that do not support function calling
  • Will allow agents to compose functions (by utilizing composability of language/free-form code)
  • Will allow functions to manage dependencies and secrets

Tasks

Preview Give feedback
  1. help wanted research teach
  2. code-execution tool-usage
@gagb gagb changed the title Roadmap for extending function call support Roadmap for New Styles of Function calling Jan 26, 2024
@gagb gagb changed the title Roadmap for New Styles of Function calling Roadmap for New Styles of Function Calling Jan 26, 2024
@gagb gagb added the tool-usage suggestion and execution of function/tool call label Jan 26, 2024
@gagb gagb assigned ekzhu and gagb Jan 26, 2024
@gagb
Copy link
Collaborator Author

gagb commented Jan 28, 2024

Test comment for AutoAnny.

@AaronWard
Copy link
Contributor

hey @gagb - let me know how i can help with this in any way. Been waiting for function calling on local models for a while so excited to see this is being implemented.

@gagb
Copy link
Collaborator Author

gagb commented Feb 2, 2024

hey @gagb - let me know how i can help with this in any way. Been waiting for function calling on local models for a while so excited to see this is being implemented.

@AaronWard your help is much appreciated! Can you give @ekzhu feedback on #1405. It's a big change but we believe will make it much cleaner and easier to add this new style of function calling. Once #1405 is done we will port proposed changes in #1409 to use it.

We would like 1405 analyzed and merged soon. I added you as a reviewer.

@AaronWard
Copy link
Contributor

@gagb Sounds good, i will take a look at it today after work.

@ekzhu ekzhu mentioned this issue Feb 4, 2024
3 tasks
@jackgerrits jackgerrits added the roadmap Issues related to roadmap of AutoGen label Feb 7, 2024
@ekzhu
Copy link
Collaborator

ekzhu commented Feb 7, 2024

Just add @BeibinLi 's comment in #1405

handle different types of system_message (not only str)
handle DeprecationWarning throughout AutoGen
adding more detailed tutorials for Capabilities
adding a higher level within AssistantAgent and UserProxyAgent to wrap complex (but common) executors.

@ekzhu ekzhu changed the title Roadmap for New Styles of Function Calling Roadmap for Code Execution and User-Defined Functions & Modules Feb 11, 2024
@ekzhu ekzhu changed the title Roadmap for Code Execution and User-Defined Functions & Modules Roadmap for Code Execution and User-Defined Functions Feb 11, 2024
@ekzhu
Copy link
Collaborator

ekzhu commented Feb 11, 2024

Add @IANTHEREAL's comments for additional work on code executors:

  1. Fix the usage of _ private methods in group chat managers
  2. End-to-End tests with conversable agents and code executors for scenarios like plotting a stock chart.
  3. Documentation and Notebooks
  4. Design high-level binding methods to make sure compatibility between code producer and code executor agents.

@jackgerrits
Copy link
Member

@ekzhu we should consider making it possible for a user to cancel an in progress execution (see here: #1626)

@jackgerrits jackgerrits changed the title Roadmap for Code Execution and User-Defined Functions [Roadmap] Code Execution and User-Defined Functions Mar 12, 2024
@jackgerrits jackgerrits added in-progress code-execution execute generated code labels Mar 12, 2024
@rizickus
Copy link

In one of the linked issues, I addressed my concerns and confusion.

Are there any plans to unify skills and tools? In some sense, I prefer tools because you pass only very limited API information. With skills looks like in general you have to use more tokens to enable your agent to achieve the same thing (you provide the full code).

To sum up, the studio uses skills, but tools look "leaner" approach, so I am having paralysis on which way to move forward at this moment.

@rysweet rysweet added 0.2 Issues which are related to the pre 0.4 codebase needs-triage labels Oct 2, 2024
@rysweet
Copy link
Collaborator

rysweet commented Oct 18, 2024

consider migrating the roadmap issues to use milestones

@jackgerrits jackgerrits removed their assignment Nov 26, 2024
@gagb gagb closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.2 Issues which are related to the pre 0.4 codebase code-execution execute generated code roadmap Issues related to roadmap of AutoGen tool-usage suggestion and execution of function/tool call
Projects
None yet
Development

No branches or pull requests

7 participants