Views
No views yet

qwen-3 as a default language model, but can be configured to use any model by changing the sophos_models.py file.1
2from sophos import Agent
3from sophos_tools import get_weather, get_time, function_tool
4
5@function_tool
6def favourite_color() -> str:
7 '''fetches the user's favorite color.'''
8 return "My favorite color is crimson red."
9
10agent = Agent(
11 name="Sophos Agent",
12 instructions="You are an AI Agent.",
13 model="Qwen3-4B-Instruct-2507-Q3_K_S.gguf",
14 tools=[get_weather, get_time, favourite_color],
15)
16
17response = agent.run("What is my favorite color? and what is the weather in New York?")
18print(response)
19