You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
working_dir: The working directory to use. Choose `repo` to work with the repository files, or `docs` to work with the generated documentation files.
731
732
command: The command to run. Allowed options are: `view`, `create`, `str_replace`, `insert`, `undo_edit`.
732
733
path: Path to file or directory, e.g. `./chat_core.md` or `./agents/`
734
+
file: Alias for `path` parameter (for compatibility with some models)
733
735
file_text: Required parameter of `create` command, with the content of the file to be created.
734
736
view_range: Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file.
735
737
old_str: Required parameter of `str_replace` command containing the string in `path` to replace.
736
738
new_str: Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert.
737
739
"""
738
740
741
+
# Handle both `path` and `file` parameters for model compatibility
742
+
ifpathisNoneandfileisNone:
743
+
return"Error: Either `path` or `file` parameter must be provided."
0 commit comments