Add docstring args for MultiStepAgent.from_folder (#654)

This commit is contained in:
Albert Villanova del Moral 2025-02-15 10:24:14 +01:00 committed by GitHub
parent a6cc506d09
commit 7765236930
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -936,7 +936,12 @@ You have been provided with these additional arguments, that you can access usin
@classmethod @classmethod
def from_folder(cls, folder: Union[str, Path], **kwargs): def from_folder(cls, folder: Union[str, Path], **kwargs):
"""Loads an agent from a local folder""" """Loads an agent from a local folder.
Args:
folder (`str` or `Path`): The folder where the agent is saved.
**kwargs: Additional keyword arguments that will be passed to the agent's init.
"""
folder = Path(folder) folder = Path(folder)
agent_dict = json.loads((folder / "agent.json").read_text()) agent_dict = json.loads((folder / "agent.json").read_text())