You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/swarms/agents/stopping_conditions.py

39 lines
484 B

def check_done(s):
return "<DONE>" in s
def check_finished(s):
return "finished" in s
def check_complete(s):
return "complete" in s
def check_success(s):
return "success" in s
def check_failure(s):
return "failure" in s
def check_error(s):
return "error" in s
def check_stopped(s):
return "stopped" in s
def check_cancelled(s):
return "cancelled" in s
def check_exit(s):
return "exit" in s
def check_end(s):
return "end" in s