Skip to content

Commit 54117f6

Browse files
CopilotOEvortex
andcommitted
Remove unwanted builtin tools and update web search to use Snapzion API
Co-authored-by: OEvortex <158988478+OEvortex@users.noreply.github.com>
1 parent 41482b5 commit 54117f6

File tree

11 files changed

+111
-562
lines changed

11 files changed

+111
-562
lines changed

HelpingAI/tools/builtin_tools/__init__.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,8 @@
55
These tools can be used alongside MCP servers by specifying simple string identifiers.
66
77
Available built-in tools:
8-
- code_interpreter: Python code execution sandbox
9-
- web_search: Web search functionality
10-
- doc_parser: Document parsing capabilities
11-
- image_gen: Image generation
12-
- retrieval: Information retrieval
13-
- storage: File storage operations
8+
- code_interpreter: Advanced Python code execution sandbox with data science capabilities
9+
- web_search: Real-time web search with comprehensive results
1410
1511
Usage:
1612
tools = [
@@ -22,19 +18,11 @@
2218

2319
from .code_interpreter import CodeInterpreterTool
2420
from .web_search import WebSearchTool
25-
from .doc_parser import DocParserTool
26-
from .image_gen import ImageGenTool
27-
from .retrieval import RetrievalTool
28-
from .storage import StorageTool
2921

3022
# Registry of built-in tools
3123
BUILTIN_TOOLS_REGISTRY = {
3224
'code_interpreter': CodeInterpreterTool,
3325
'web_search': WebSearchTool,
34-
'doc_parser': DocParserTool,
35-
'image_gen': ImageGenTool,
36-
'retrieval': RetrievalTool,
37-
'storage': StorageTool,
3826
}
3927

4028
def get_builtin_tool_class(tool_name: str):
@@ -70,10 +58,6 @@ def is_builtin_tool(tool_name: str) -> bool:
7058
__all__ = [
7159
'CodeInterpreterTool',
7260
'WebSearchTool',
73-
'DocParserTool',
74-
'ImageGenTool',
75-
'RetrievalTool',
76-
'StorageTool',
7761
'BUILTIN_TOOLS_REGISTRY',
7862
'get_builtin_tool_class',
7963
'get_available_builtin_tools',

HelpingAI/tools/builtin_tools/code_interpreter.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424

2525

2626
class CodeInterpreterTool(BuiltinToolBase):
27-
"""Python code execution sandbox tool.
27+
"""Advanced Python code execution sandbox with data science capabilities.
2828
29-
This tool allows executing Python code in a controlled environment
30-
with support for popular libraries like matplotlib, pandas, numpy, etc.
29+
This tool provides a secure environment for executing Python code with built-in
30+
support for data analysis, visualization, and scientific computing. Features
31+
automatic plot saving, timeout protection, and comprehensive error handling.
3132
"""
3233

3334
name = "code_interpreter"
34-
description = "Execute Python code in a sandboxed environment. Supports matplotlib, pandas, numpy, and other common libraries."
35+
description = "Execute Python code in a secure sandboxed environment with support for data analysis, visualization, and computation. Includes popular libraries like matplotlib, pandas, numpy, and automatic plot saving."
3536
parameters = {
3637
"type": "object",
3738
"properties": {

HelpingAI/tools/builtin_tools/doc_parser.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

HelpingAI/tools/builtin_tools/image_gen.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

HelpingAI/tools/builtin_tools/retrieval.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)