| 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) | |