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

Use latest APIs for tool use, code execution and cache in topic pages #2071

Merged
merged 13 commits into from
Apr 18, 2024

Conversation

ekzhu
Copy link
Collaborator

@ekzhu ekzhu commented Mar 19, 2024

Why are these changes needed?

Use the latest APIs for the followings in topic pages:

  1. Tool use
  2. Caching
  3. Code executors

Related issue number

Checks

@ekzhu ekzhu requested a review from qingyun-wu March 19, 2024 01:33
@ekzhu ekzhu added the documentation Improvements or additions to documentation label Mar 19, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.63%. Comparing base (ca506ba) to head (7193343).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2071      +/-   ##
==========================================
- Coverage   36.79%   36.63%   -0.16%     
==========================================
  Files          66       66              
  Lines        7060     7058       -2     
  Branches     1541     1541              
==========================================
- Hits         2598     2586      -12     
- Misses       4234     4244      +10     
  Partials      228      228              
Flag Coverage Δ
unittests 36.63% <ø> (-0.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ekzhu
Copy link
Collaborator Author

ekzhu commented Mar 19, 2024

@qingyun-wu could you run the notebooks to make sure the outputs are expected? Much appreciated!

@qingyun-wu
Copy link
Contributor

@qingyun-wu could you run the notebooks to make sure the outputs are expected? Much appreciated!

Will do.

@qingyun-wu
Copy link
Contributor

The reflection notebook's output is expected. "Approach 1. Two-agent chat with function call for task decomposition"of task_decomposition is not: The response of the tool call is null.
Screenshot 2024-03-18 at 10 53 43 PM

Haven't run the rest.

@ekzhu
Copy link
Collaborator Author

ekzhu commented Mar 19, 2024

The reflection notebook's output is expected. "Approach 1. Two-agent chat with function call for task decomposition"of task_decomposition is not: The response of the tool call is null.

Haven't run the rest.

Looks like there is a bug in the notebook. The llm_config for planner and assistant agents should be separate. I have fixed it.

I have also updated all notebooks to use the latest tool use APIs, removing langchain dependency.

@ekzhu ekzhu changed the title Use latest APIs for code execution and cache in topic pages Use latest APIs for tool use, code execution and cache in topic pages Mar 19, 2024
@ekzhu ekzhu added code-execution execute generated code tool-usage suggestion and execution of function/tool call labels Apr 12, 2024
@ekzhu
Copy link
Collaborator Author

ekzhu commented Apr 12, 2024

@qingyun-wu @jackgerrits @sonichi Can you take a look? I have fixed the notebooks to use the latest APIs.

@sonichi sonichi added this pull request to the merge queue Apr 18, 2024
Merged via the queue into main with commit 4c7107c Apr 18, 2024
27 checks passed
@sonichi sonichi deleted the ekzhu-update-topics branch April 18, 2024 17:03
jayralencar pushed a commit to jayralencar/autogen that referenced this pull request May 28, 2024
…microsoft#2071)

* Use code executors and cache in docs.

* Update topic pages

* clean up imports

* update notebook

* Update notebooks

* format

* format

* Update links

* revert notebook

* update

* format

---------

Co-authored-by: Qingyun Wu <qingyun0327@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-execution execute generated code documentation Improvements or additions to documentation tool-usage suggestion and execution of function/tool call
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants