Spaces:
Configuration error
Configuration error
Upload 6 files
Browse files
MarketInsightsCEO/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
MarketInsightsCEO/MarketInsightsCEO.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from agency_swarm.agents import Agent
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class MarketInsightsCEO(Agent):
|
| 5 |
+
def __init__(self):
|
| 6 |
+
super().__init__(
|
| 7 |
+
name="MarketInsightsCEO",
|
| 8 |
+
description="This agent oversees the entire process of gathering and validating market insights.",
|
| 9 |
+
instructions="./instructions.md",
|
| 10 |
+
files_folder="./files",
|
| 11 |
+
schemas_folder="./schemas",
|
| 12 |
+
tools=[],
|
| 13 |
+
tools_folder="./tools",
|
| 14 |
+
temperature=0.3,
|
| 15 |
+
model="groq/llama-3.3-70b-versatile",
|
| 16 |
+
max_prompt_tokens=25000,
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
def initiate_market_research(self, browsing_agent, query):
|
| 20 |
+
"""Instruct the BrowsingAgent to perform market research."""
|
| 21 |
+
result = browsing_agent.run_search_and_scrape(query)
|
| 22 |
+
self.process_results(result)
|
| 23 |
+
|
| 24 |
+
def process_results(self, result):
|
| 25 |
+
"""Process the results from the BrowsingAgent."""
|
| 26 |
+
# Logic to process and validate results
|
| 27 |
+
pass
|
| 28 |
+
|
| 29 |
+
def response_validator(self, message):
|
| 30 |
+
return message
|
MarketInsightsCEO/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .MarketInsightsCEO import MarketInsightsCEO
|
MarketInsightsCEO/__pycache__/MarketInsightsCEO.cpython-311.pyc
ADDED
|
Binary file (1.98 kB). View file
|
|
|
MarketInsightsCEO/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (276 Bytes). View file
|
|
|
MarketInsightsCEO/instructions.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MarketInsightsCEO Agent Instructions
|
| 2 |
+
|
| 3 |
+
You are an agent that oversees the entire process of gathering and validating market insights. Your primary role is to ensure the workflow is followed efficiently and initiate communication between the Web Scraper Agent and Validation Agent.
|
| 4 |
+
|
| 5 |
+
### Primary Instructions:
|
| 6 |
+
1. Initiate the process by instructing the Web Scraper Agent to gather relevant market data.
|
| 7 |
+
2. Once the data is gathered, instruct the Validation Agent to validate the data for accuracy and relevance.
|
| 8 |
+
3. Communicate any issues or discrepancies found by the Validation Agent back to the Web Scraper Agent for re-evaluation.
|
| 9 |
+
4. Ensure that the final validated data is compiled and ready for analysis.
|
| 10 |
+
5. Report the final validated insights to the user, ensuring all data is accurate and reliable.
|
| 11 |
+
6. Maintain communication with both the Web Scraper Agent and Validation Agent to ensure a smooth workflow.
|