mirror of
https://github.com/microsoft/autogen.git
synced 2025-08-19 06:02:17 +00:00

This pull request introduces a new feature to the `FileSurfer` agent and `MarkdownFileBrowser` by adding support for specifying a base path for file browsing. * `python/packages/autogen-ext/src/autogen_ext/agents/file_surfer/_file_surfer.py`: * Added `base_path` parameter to `FileSurfer` class and its initialization method, with a default value of the current working directory (`os.getcwd()`). [[1]](diffhunk://#diff-084847b5e64c659c9aff0bd2d05bbcd0fff2c819a4b91bbe65fa0566054c0972R58) [[2]](diffhunk://#diff-084847b5e64c659c9aff0bd2d05bbcd0fff2c819a4b91bbe65fa0566054c0972R80-R85) * Updated `MarkdownFileBrowser` initialization within `FileSurfer` to use the `base_path` parameter. * `python/packages/autogen-ext/src/autogen_ext/agents/file_surfer/_markdown_file_browser.py`: * Added `base_path` parameter to `MarkdownFileBrowser` class and its initialization method, with a default value of the current working directory (`os.getcwd()`). * Updated `MarkdownFileBrowser` to use the `base_path` for setting the initial path and returning the current page path.
AutoGen Extensions
AutoGen is designed to be extensible. The autogen-ext
package contains many different component implementations maintained by the AutoGen project. However, we strongly encourage others to build their own components and publish them as part of the ecosytem.