Skip to content

Commit

Permalink
add GPTAssistantAgent is_termination_msg valid (microsoft#1642)
Browse files Browse the repository at this point in the history
* add GPTAssistantAgent is_termination_msg valid

* make is_termination_msg in GPTAssistantAgent valid and reformatted

* to pass the black format test
  • Loading branch information
yousonnet authored Feb 13, 2024
1 parent fb22f78 commit 81fc749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/agentchat/contrib/gpt_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ def __init__(
self._openai_threads = {}
self._unread_index = defaultdict(int)
self.register_reply(Agent, GPTAssistantAgent._invoke_assistant)
self.register_reply(Agent, GPTAssistantAgent.check_termination_and_human_reply)
self.register_reply(Agent, GPTAssistantAgent.a_check_termination_and_human_reply)

def _invoke_assistant(
self,
Expand Down

0 comments on commit 81fc749

Please sign in to comment.