AGofficial commited on
Commit
d313324
·
verified ·
1 Parent(s): adb69cc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -1
README.md CHANGED
@@ -14,4 +14,28 @@ base_model:
14
 
15
  Sophos is a near-AGI level Agent designed for tool usage and autonomous task completion. It uses `qwen-3` as a default language model, but can be configured to use any model by changing the `sophos_models.py` file.
16
 
17
- Sophos intelligence is limited only by the language model it uses. It is designed to be a flexible and powerful AI agent that can be used for a wide variety of tasks.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  Sophos is a near-AGI level Agent designed for tool usage and autonomous task completion. It uses `qwen-3` as a default language model, but can be configured to use any model by changing the `sophos_models.py` file.
16
 
17
+ Sophos intelligence is limited only by the language model it uses. It is designed to be a flexible and powerful AI agent that can be used for a wide variety of tasks.
18
+
19
+ # Example
20
+
21
+ ```python
22
+
23
+ from sophos import Agent
24
+ from sophos_tools import get_weather, get_time, function_tool
25
+
26
+ @function_tool
27
+ def favourite_color() -> str:
28
+ '''fetches the user's favorite color.'''
29
+ return "My favorite color is crimson red."
30
+
31
+ agent = Agent(
32
+ name="Sophos Agent",
33
+ instructions="You are an AI Agent.",
34
+ model="Qwen3-4B-Instruct-2507-Q3_K_S.gguf",
35
+ tools=[get_weather, get_time, favourite_color],
36
+ )
37
+
38
+ response = agent.run("What is my favorite color? and what is the weather in New York?")
39
+ print(response)
40
+
41
+ ```