-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Enable defining new functions after agent creation #285
Conversation
@microsoft-github-policy-service agree |
094bf05
to
ff37254
Compare
Codecov Report
@@ Coverage Diff @@
## main #285 +/- ##
==========================================
+ Coverage 28.72% 37.06% +8.33%
==========================================
Files 27 27
Lines 3380 3386 +6
Branches 760 761 +1
==========================================
+ Hits 971 1255 +284
+ Misses 2338 2015 -323
- Partials 71 116 +45
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ff37254
to
79dfeb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @elecnix, this is interesting!
Thanks @elecnix and @skzhang1 @qingyun-wu for merging this PR. It took a while, but the concept was very interesting. |
* Enable defining new functions after agent creation * Add notebook for function inception example * format * 1. fix bug 2. support remove function * 1. fix bug 2. support remove function * 1. add example doc 2. change test file 3. change ipynb title * Update website/docs/Examples.md --------- Co-authored-by: Li Jiang <[email protected]> Co-authored-by: “skzhang1” <“[email protected]”> Co-authored-by: Shaokun Zhang <[email protected]> Co-authored-by: Qingyun Wu <[email protected]>
* Enable defining new functions after agent creation * Add notebook for function inception example * format * 1. fix bug 2. support remove function * 1. fix bug 2. support remove function * 1. add example doc 2. change test file 3. change ipynb title * Update website/docs/Examples.md --------- Co-authored-by: Li Jiang <[email protected]> Co-authored-by: “skzhang1” <“[email protected]”> Co-authored-by: Shaokun Zhang <[email protected]> Co-authored-by: Qingyun Wu <[email protected]>
Why are these changes needed?
This PR enables autogen agents to update/remove new functions, through conversation.
The functions added to llm_config are passed to OpenAI, which may respond with a function call, or a message.
Checks