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

Allow initiate_chat without passing message #1244

Merged
merged 8 commits into from
Jan 19, 2024

Conversation

bitnom
Copy link
Contributor

@bitnom bitnom commented Jan 14, 2024

A very minor change to call self.get_human_input() if message is not supplied.

@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9729610) 33.34% compared to head (087a032) 66.53%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1244       +/-   ##
===========================================
+ Coverage   33.34%   66.53%   +33.19%     
===========================================
  Files          33       33               
  Lines        4456     4462        +6     
  Branches     1041     1098       +57     
===========================================
+ Hits         1486     2969     +1483     
+ Misses       2848     1182     -1666     
- Partials      122      311      +189     
Flag Coverage Δ
unittests 66.49% <100.00%> (+33.19%) ⬆️

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.

@sonichi
Copy link
Contributor

sonichi commented Jan 14, 2024

If folks are OK with this change, a test should be added to cover the added case.

Copy link
Contributor

@rickyloynd-microsoft rickyloynd-microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nice thing about supporting user-first chats is that it matches what users of ChatGPT are used to.

@sonichi
Copy link
Contributor

sonichi commented Jan 15, 2024

@bitnom could you add a test to cover the new line added?

Copy link
Collaborator

@ekzhu ekzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! A test is needed to cover this case.

@bitnom
Copy link
Contributor Author

bitnom commented Jan 15, 2024

@bitnom could you add a test to cover the new line added?

it is committed

@bitnom
Copy link
Contributor Author

bitnom commented Jan 16, 2024

@bitnom could you add a test to cover the new line added?

should be good now

@bitnom bitnom requested a review from ekzhu January 16, 2024 13:27
Copy link
Contributor

@sonichi sonichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion.

test/agentchat/test_async_get_human_input.py Outdated Show resolved Hide resolved
@sonichi sonichi added this pull request to the merge queue Jan 19, 2024
Merged via the queue into microsoft:main with commit e97b639 Jan 19, 2024
97 checks passed
corleroux pushed a commit to corleroux/autogen that referenced this pull request Jan 30, 2024
* allow initiate_chat without passing message

* test human input

* assert called

* Add missing method a_generate_init_message

* fix tests

* add back skipif

* Update test/agentchat/test_async_get_human_input.py

---------

Co-authored-by: Chi Wang <[email protected]>
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* allow initiate_chat without passing message

* test human input

* assert called

* Add missing method a_generate_init_message

* fix tests

* add back skipif

* Update test/agentchat/test_async_get_human_input.py

---------

Co-authored-by: Chi Wang <[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.

5 participants