-
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
New initiate_chats
Interface for Managing Dependent Chats in ConversableAgent
#1402
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
sonichi
requested review from
ekzhu,
AaronWard,
vijaykramesh,
victordibia,
gagb,
davorrunje,
afourney and
BeibinLi
January 25, 2024 14:52
ekzhu
approved these changes
Feb 6, 2024
Did we check if this works with function calling per the SCRUM? |
|
Testing right now. Will make a patch or add a warning if a patch cannot be made soon. |
This was referenced Feb 6, 2024
whiskyboy
pushed a commit
to whiskyboy/autogen
that referenced
this pull request
Apr 17, 2024
…sableAgent (microsoft#1402) * add initiate_chats implementation and example * update notebook * improve takeaway method * improve print * improve print * improve print * improve print * add tests * minor changes * format * correct typo * make prompt a parameter * add takeaway method * groupchat messages * add SoM example * fix typo * fix SoM typo * simplify chat function * add carryover * update notebook * doc * remove async for now * remove condition on reply * correct argument name * add notebook in website * format * make get_chat_takeaway private * rename takeaway method and add example * removing SoM example for now * carryover test * add test * takeaway_method * update tests * update notebook * chats_queue * add get_chat_takeaway * delete * add test * Update autogen/agentchat/conversable_agent.py Co-authored-by: Eric Zhu <[email protected]> * docstr * wording etc * add chat res * revise title * update agent_utils * unify the async method * add todo about overriding * attribute check * ChatResult type * revise test * takeaway to summary * cache and documentation * Use cache in summarize chat; polish tests --------- Co-authored-by: Chi Wang <[email protected]> Co-authored-by: Eric Zhu <[email protected]>
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?
Introducing a new interface, initiate_chats, within ConversableAgent. This interface is designed to facilitate the execution of multiple, interdependent tasks by allowing subsequent chat sessions to inherit and utilize information from previous chats. This feature aims to enhance the agent's ability to handle complex, multi-stage interactions by maintaining context across sessions.
Comments and suggestions are appreciated!
TODO:
Related PR
initiate_chats
, a methodget_chat_takeaway
is added to extract takeaway from a previous dialogue.This method could be useful in other PRs. In fact, the
_llm_response_preparer
function, which correspond a pre-defined takeaway methodllm
is copied from the SocietyOfMindAgent by @afourney with minor revision:Adds a SocietyOfMindAgent that presents as a single agent, but runs GroupChat as an inner-monologue #890
Related issue number
Checks