refactor(agent): Refactor resource of agents (#1518)

This commit is contained in:
Fangyin Cheng
2024-05-15 09:57:19 +08:00
committed by GitHub
parent db4d318a5f
commit 559affe87d
102 changed files with 2633 additions and 2549 deletions

View File

@@ -104,6 +104,9 @@ class BaseParameters:
"""
return _dict_to_command_args(asdict(self), args_prefix=args_prefix)
def to_dict(self) -> Dict[str, Any]:
return asdict(self)
def _get_dataclass_print_str(obj):
class_name = obj.__class__.__name__