Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/smolagents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,7 @@ def save(self, output_dir: str | Path, relative_path: str | None = None):

Args:
output_dir (`str` or `Path`): The folder in which you want to save your agent.
relative_path (`str`, *optional*): Dotted module path prefix locating this agent within a hierarchy of managed agents. Used internally when recursively saving managed agents so that the import paths in the generated files reflect the agent hierarchy; leave as `None` for the top-level agent.
"""
make_init_file(output_dir)

Expand Down