Skip to content

Commit 17a2083

Browse files
committed
[#23897] Updated code with revision suggestions
Signed-off-by: danipiza <dpizarrogallego@gmail.com>
1 parent 1caa11b commit 17a2083

3 files changed

Lines changed: 154 additions & 137 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ select = ["E", "F", "I"]
5656

5757
[tool.ruff.lint.isort]
5858
known-first-party = ["vulcanai"]
59+
60+
[project.entry-points."vulcanai.tools.default_tools"]
61+
default_tools = "vulcanai.tools.default_tools"

src/vulcanai/console/console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ def __init__(
169169
self.tab_matches = []
170170
# Current index in the tab matches
171171
self.tab_index = 0
172-
# current_path = os.path.dirname(os.path.abspath(__file__))
173-
# self.manager.register_tools_from_file(f"{current_path}/../tools/default_tools.py")
172+
173+
self.manager.register_tools_from_entry_points("vulcanai.tools.default_tools")
174174

175175
self.manager.bb["console"] = self
176176
self.logger = VulcanAILogger.log_manager

0 commit comments

Comments
 (0)