Spaces:
Paused
Paused
File size: 763 Bytes
b645888 3b6d7db b645888 3b6d7db 6c85e26 3b6d7db b645888 3b6d7db b645888 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | from agency_swarm import Agent
from agency_swarm.tools import CodeInterpreter, FileSearch
class CompetitorTrackingAgent(Agent):
def __init__(self):
super().__init__(
name="CompetitorTrackingAgent",
description="Tracks and analyzes competitor activities",
instructions="./instructions.md",
tools=[CodeInterpreter, FileSearch],
temperature=0.7,
max_prompt_tokens=4000
)
async def process_message(self, message):
try:
# Process the message
response = await super().process_message(message)
return response
except Exception as e:
print(f"Error in CompetitorTrackingAgent: {str(e)}")
raise e
|