diff --git a/python/composio/tools/base/abs.py b/python/composio/tools/base/abs.py index c126ce05c2..2e7c187108 100644 --- a/python/composio/tools/base/abs.py +++ b/python/composio/tools/base/abs.py @@ -252,7 +252,8 @@ def set_metadata(obj: t.Type["Action"]) -> None: "description", (obj.__doc__ or obj.display_name).lstrip().rstrip(), ) - if len(obj.description) > 1024: + description, *_ = obj.description.split("< 1024: raise InvalidClassDefinition( f"Description for action `{obj.__name__}` contains more than 1024 characters" ) diff --git a/python/composio/utils/logging.py b/python/composio/utils/logging.py index b46f471658..9faad42187 100644 --- a/python/composio/utils/logging.py +++ b/python/composio/utils/logging.py @@ -105,7 +105,7 @@ def _parse_log_level_from_env(default: int) -> int: return default try: - return _LEVELS[LogLevel(level)] + return _LEVELS[LogLevel(level.lower())] except (ValueError, KeyError): return default