AGI-4 / agent_example.py
AGofficial's picture
Upload 3 files
6abfd02 verified
Raw History Blame Contribute Delete
882 Bytes
from agi.sophos import Agent
from agi.sophos_tools import *
from agi.sophos_memory import *
toolbox = all_tools()
agent = Agent(
name="Sophos Agent",
instructions="You are a Web Developer. You like Dark theme, simple, and sleek minimal websites.",
model="agi/Qwen3-4B-Instruct-2507-Q3_K_S.gguf",
tools=toolbox,
)
tasks = [
{
"task_name": "index.html",
"task_description": "Design a responsive landing page with dark theme for a tech startup, add button to link it to 'example.html', make this into a single HTML file",
"context": "None"
},
{
"task_name": "example.html",
"task_description": "Create a minimal contact form with validation and dark theme styling",
"context": "index.html"
}
]
prompts = build_prompts(tasks)
for prompt in prompts:
response = agent.run(prompt)
print(response)