File size: 551 Bytes
49dbd67 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | from agi.sophos import Agent
from agi.sophos_tools import all_tools, function_tool
from agi.agent_config import AgentConfig
config = AgentConfig(
name="Sophos",
instructions="You are an AI agent.",
max_iterations=30,
max_tokens=1500,
temperature=0.7,
verbose=True,
enable_memory=True,
memory_limit=5
)
toolbox = all_tools()
agent = Agent(config=config, tools=toolbox)
response = agent.run("roll a dice. also whats the weather like today? then write a short poem about it.")
print("\nAgent response:\n", response)
|