File size: 1,496 Bytes
e04f68d
3dd7c1f
28be273
 
 
 
4071890
e04f68d
98cb5d3
 
 
 
 
 
 
 
3dd7c1f
98cb5d3
 
3dd7c1f
98cb5d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28be273
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
49
50
51
52
53
from smolagents import CodeAgent,  LiteLLMModel, InferenceClientModel
from tools import duck_search_tool,  visit_web_page_tool, youtube_transcript_search



# Initialize the model for agent_1
agent_1_instructions = "Search for and retrieve relevant information about the question asked. Do not respond with any thought just the final answer:\n"
model_1 = InferenceClientModel(
    "Qwen/Qwen2.5-Coder-32B-Instruct", provider="together", max_tokens=8096
)

web_agent_1 = CodeAgent(
    model=model_1,
    tools=[
        duck_search_tool,
        visit_web_page_tool,
        youtube_transcript_search,
    ],
    name="web_agent_1",
    description="Searches youtube transcripts and retrieve relevant information about the question asked",
    verbosity_level=0,
    max_steps=10,
)


model_2 = InferenceClientModel(model_id= "meta-llama/Llama-3.3-70B-Instruct")


web_agent_2 = CodeAgent(
    model=model_2,
    tools=[
        duck_search_tool,
        visit_web_page_tool,
    ],
    name="web_agent_2",
    description="Searches the web and retrieve relevant information about the question asked",
    verbosity_level=0,
    max_steps=10,
)

model_3 = LiteLLMModel(model_id="anthropic/claude-3-5-sonnet-latest")

web_agent_3 = CodeAgent(
    model=model_3,
    tools=[
        duck_search_tool,
        visit_web_page_tool,
    ],
    name="web_agent_3",
    description="Searches the web and retrieve relevant information about the question asked",
    verbosity_level=0,
    max_steps=10,
)