File size: 630 Bytes
fa2cb8a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139cc06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from pathlib import Path
from .tools.shap_vision_tool import ShapVisionTool # Import SHAP vision tool

def get_tools():
    """Create and return all configured tools"""
    
    # Get paths and API keys
    groq_key = os.getenv("GROQ_API_KEY")              # Retrieve GROQ API key from environment
    gemini_key = os.getenv("GEMINI_API_KEY")          # Retrieve Gemini API key from environment
    
    # Create tool
    shap_tool = ShapVisionTool(metadata={"GEMINI_API_KEY": gemini_key})  # Initialize SHAP vision tool with Gemini API key
    
    # Return all tools in a dictionary
    return {"shap_tool": shap_tool}