mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 20:27:44 +02:00
[eric] scheduled tasks: agent can now manage workflows itself + tons of safety, cross-platform polish, and edge-case fixes
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
def is_fstring(arg_name):
|
||||
if not isinstance(arg_name, str):
|
||||
return False
|
||||
# print(f"arg_name: {arg_name}")
|
||||
fstring_start_values = ["f'", "f\""]
|
||||
num_start_matches = sum(arg_name.startswith(start_value) for start_value in fstring_start_values)
|
||||
conditions = [num_start_matches == 1]
|
||||
@@ -12,7 +11,6 @@ def is_text(arg_value, arg_name):
|
||||
arg_is_text = isinstance(arg_value, str) and len(arg_name) > 2 and arg_name[1:len(arg_name)-1] == arg_value and not arg_name.endswith(")")
|
||||
if not arg_is_text:
|
||||
arg_is_text = is_fstring(arg_name)
|
||||
# print(f"is_text: {arg_is_text}")
|
||||
return arg_is_text
|
||||
|
||||
def is_error(arg_value, arg_name):
|
||||
|
||||
Reference in New Issue
Block a user