File size: 1,073 Bytes
5b715cc
 
 
 
 
 
 
 
 
4b5bc79
5b715cc
 
 
 
 
 
 
 
 
 
 
 
4b5bc79
5b715cc
4b5bc79
5b715cc
4b5bc79
5b715cc
4b5bc79
5b715cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4b5bc79
5b715cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from typing import List
from smolagents import (
    DuckDuckGoSearchTool,
    PythonInterpreterTool,
    Tool,
    VisitWebpageTool,
    WikipediaSearchTool,
    FinalAnswerTool,
)

from tools.tools import (
    vision_tool,
    youtube_frames_to_images,
    ask_youtube_video, 
    read_text_file,
    file_from_url,
    transcribe_youtube, 
    audio_to_text, 
    extract_text_via_ocr, 
    summarize_csv_data,
    summarize_excel_data,
)

def get_tools() -> List[Tool]:
    """
    Returns a list of available tools for the agent.
    Returns:
        List[Tool]: List of initialized tool instances.
    """
    tools = [
        FinalAnswerTool(),
        DuckDuckGoSearchTool(),
        PythonInterpreterTool(),
        WikipediaSearchTool(),
        VisitWebpageTool(),
        vision_tool,
        youtube_frames_to_images,
        ask_youtube_video, 
        read_text_file,
        file_from_url,
        transcribe_youtube, 
        audio_to_text, 
        extract_text_via_ocr, 
        summarize_csv_data,
        summarize_excel_data,
    ]
    return tools