Files
deer-flow/src/config/tools.py

16 lines
275 B
Python
Raw Normal View History

2025-04-10 11:45:04 +08:00
import os
import enum
from dotenv import load_dotenv
load_dotenv()
class SearchEngine(enum.Enum):
TAVILY = "tavily"
DUCKDUCKGO = "duckduckgo"
# Tool configuration
2025-04-10 11:45:04 +08:00
SELECTED_SEARCH_ENGINE = os.getenv("SEARCH_API", SearchEngine.TAVILY.value)
SEARCH_MAX_RESULTS = 3