Skip to content

Commit

Permalink
pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Nov 5, 2024
1 parent 7578ac2 commit 5be7528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/agentchat/test_conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def user_defined_trigger_with_params(f: int):
assert agent1.last_message(agent)["content"] == "hello agent1"
# Now that trigger has been activated, state should reset to None, and initiating chat aain would fail
agent1.initiate_chat(agent, message="hi")
assert agent1.last_message(agent) == None # is there another bettter way to assert agent1 wont reply?
assert agent1.last_message(agent) == None # is there another better way to assert agent1 won't reply?

# Test user defined trigger with params (default state management: STATE_KEPT_TILL_TRUE)
# Test with blank slate agents
Expand All @@ -128,7 +128,7 @@ def user_defined_trigger_with_params(f: int):
agent1.initiate_chat(agent, message="hi")
assert (
agent1.last_message(agent) == None and nested_chat_condition.state_params == None
) # is there another bettter way to assert agent1 wont reply?
) # is there another better way to assert agent1 won't reply?
# Test user defined trigger with params (default state management: STATE_KEPT_TILL_FALSE)
# Test with blank slate agents
nested_chat_condition.state_ttl_management = "STATE_KEPT_TILL_FALSE"
Expand Down

0 comments on commit 5be7528

Please sign in to comment.