From 776523693055f4f4e2d3e81e7d3550245c5b8a4c Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Sat, 15 Feb 2025 10:24:14 +0100 Subject: [PATCH] Add docstring args for MultiStepAgent.from_folder (#654) --- src/smolagents/agents.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index 1fac1d7..521cf71 100644 --- a/src/smolagents/agents.py +++ b/src/smolagents/agents.py @@ -936,7 +936,12 @@ You have been provided with these additional arguments, that you can access usin @classmethod 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) agent_dict = json.loads((folder / "agent.json").read_text())