-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Supporting callable message #1852
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qingyun-wu
changed the title
Supporting user-defined message
Supporting user-defined function as message
Mar 4, 2024
qingyun-wu
changed the title
Supporting user-defined function as message
Supporting user-defined message function
Mar 4, 2024
Sure. Basically a message of the callable type. |
qingyun-wu
changed the title
Supporting user-defined message function
Supporting callable message
Mar 9, 2024
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
* add message field * send * message func doc str * test dict message * retiring soon * generate_init_message docstr * remove todo * update notebook * CompressibleAgent * update notebook * add test * retrieve agent * update test * summary_method args * summary * carryover * dict message * update nested doc * generate_init_message * fix typo * update docs for mathchat * Fix missing message * Add docstrings * model * notebook * default naming --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: kevin666aa <yrwu000627@gmail.com> Co-authored-by: Li Jiang <bnujli@gmail.com> Co-authored-by: Li Jiang <lijiang1@microsoft.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Support callable message
Reserve
message
,summary_method
, andsummary_args
as signatures ofinitiate_chat
to make the API cleanerUse a callable message instead of
generate_init_message
to customize the message.Related issue number
TODO
MathUserProxyAgent
and relevant notebooks? @thinkall could you help check the changes inRetrieveUserProxyAgent
and updates in relevant notebooks? The intention is to use a message function instead of overridinggenerate_init_message
to customize the initial message. Thanks!generate_init_message
Future TODO
The following changes are potentially desirable because of the changes in this PR. But they may bring in breaking changes and thus leave for the future (after more thorough discussion):
generate_init_message
private.initiate_chat
, the current**context
tocontext: dict
(make this change in v0.3)CompressibleAgent
(a note is added in this PR already). Move the missing feature from CompressibleAgent to capability when we deprecate CompressibleAgent.AgentEval
(in a different PR). @julianakiselevasend
as well.Checks