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

AgentOptimizer #1053

Merged
merged 19 commits into from
Dec 27, 2023
Merged

AgentOptimizer #1053

merged 19 commits into from
Dec 27, 2023

Conversation

skzhang1
Copy link
Collaborator

@skzhang1 skzhang1 commented Dec 24, 2023

Why are these changes needed?

In traditional ML pipeline, we train a model by updating its parameter according to the loss on the training set, while in the era of LLM agents, how should we train an agent? Here, we take an initial step towards the agent training. Inspired by the function calling capabilities provided by OpenAI, we draw an analogy between model parameters and agent functions/skills, and update agent’s functions/skills based on its historical performance on the training set.

In this notebook, we introduce a new class, ‘AgentOptimizer’, which is able to improve the function list of one Assistant-UserProxy pair according to the historical conversation histories. This feature would support agents in improving their ability to solve problems of the same type as previous tasks.

Any suggestions are appreciated.

Related issue number

Checks

@skzhang1 skzhang1 added the roadmap Issues related to roadmap of AutoGen label Dec 24, 2023
@codecov-commenter
Copy link

codecov-commenter commented Dec 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b7a42f) 30.23% compared to head (a0870bd) 30.23%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1053   +/-   ##
=======================================
  Coverage   30.23%   30.23%           
=======================================
  Files          30       30           
  Lines        3989     3989           
  Branches      899      899           
=======================================
  Hits         1206     1206           
  Misses       2704     2704           
  Partials       79       79           
Flag Coverage Δ
unittests 30.18% <ø> (ø)

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.

@skzhang1 skzhang1 marked this pull request as draft December 24, 2023 21:07
@rickyloynd-microsoft
Copy link
Contributor

@skzhang1 Thanks for the contribution. To put the PR in perspective, can you a general outline of techniques anticipated for updating the functions?

@JieyuZ2 JieyuZ2 marked this pull request as ready for review December 25, 2023 20:12
@skzhang1
Copy link
Collaborator Author

@skzhang1 Thanks for the contribution. To put the PR in perspective, can you a general outline of techniques anticipated for updating the functions?

@rickyloynd-microsoft Thanks for the suggestion. We just write a blog which provides an overview for this updating.

website/docs/Examples.md Outdated Show resolved Hide resolved
website/blog/2023-12-23-AgentOptimizer/index.mdx Outdated Show resolved Hide resolved
website/blog/2023-12-23-AgentOptimizer/index.mdx Outdated Show resolved Hide resolved
website/blog/2023-12-23-AgentOptimizer/index.mdx Outdated Show resolved Hide resolved
website/blog/2023-12-23-AgentOptimizer/index.mdx Outdated Show resolved Hide resolved
website/blog/2023-12-23-AgentOptimizer/index.mdx Outdated Show resolved Hide resolved
@JieyuZ2 JieyuZ2 self-assigned this Dec 25, 2023
@skzhang1 skzhang1 added this pull request to the merge queue Dec 27, 2023
Merged via the queue into microsoft:main with commit dd516f2 Dec 27, 2023
16 checks passed
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* doc and test update

* docker update
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* first

* first

* update figure

* update figure

* update txt+figure

* format

* blog

* blog update

* format

* update

* update

* rename notebook

* rename

---------

Co-authored-by: “skzhang1” <“shaokunzhang529@gmail.com”>
Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Jieyu Zhang <jieyuz2@cs.washington.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap Issues related to roadmap of AutoGen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants