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

New initiate_chats Interface for Managing Dependent Chats in ConversableAgent #1402

Merged
merged 60 commits into from
Feb 6, 2024

Conversation

qingyun-wu
Copy link
Contributor

@qingyun-wu qingyun-wu commented Jan 25, 2024

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:

  • Add tests to cover all added code
  • Update documentation (once the interface is finalized)
  • Implement, test, and add a notebook on the async version of the new interface (in a separate PR)

Related PR

Related issue number

Checks

@sonichi sonichi added this pull request to the merge queue Feb 6, 2024
Merged via the queue into main with commit 3e33a2c Feb 6, 2024
46 of 56 checks passed
@afourney
Copy link
Member

afourney commented Feb 6, 2024

Did we check if this works with function calling per the SCRUM?

@sonichi sonichi deleted the multi-task-chat branch February 6, 2024 19:12
@sonichi
Copy link
Contributor

sonichi commented Feb 6, 2024

Did we check if this works with function calling per the SCRUM?

@qingyun-wu

@qingyun-wu
Copy link
Contributor Author

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.

@sonichi sonichi mentioned this pull request Feb 8, 2024
3 tasks
@afourney afourney mentioned this pull request Feb 11, 2024
3 tasks
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants