Spaces:
Running
Running
Set MODEL_ID
Browse files- src/workflows_v2.py +9 -5
src/workflows_v2.py
CHANGED
|
@@ -19,9 +19,12 @@ load_dotenv(env_path)
|
|
| 19 |
# --- Atla Insights Configuration ---
|
| 20 |
from atla_insights import configure, instrument, instrument_agno, instrument_openai, mark_success, mark_failure, tool
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
# Define metadata for tracing
|
| 23 |
metadata = {
|
| 24 |
-
"model":
|
| 25 |
"prompt": "v1.1",
|
| 26 |
"environment": "prod",
|
| 27 |
"agent_name": "Startup Idea Validator"
|
|
@@ -94,9 +97,10 @@ class ValidationReport(BaseModel):
|
|
| 94 |
|
| 95 |
|
| 96 |
# --- Agents ---
|
|
|
|
| 97 |
idea_clarifier_agent = Agent(
|
| 98 |
name="Idea Clarifier",
|
| 99 |
-
model=OpenAIChat(id=
|
| 100 |
instructions=[
|
| 101 |
"Given a user's startup idea, your goal is to refine that idea.",
|
| 102 |
"Evaluate the originality of the idea by comparing it with existing concepts.",
|
|
@@ -111,7 +115,7 @@ idea_clarifier_agent = Agent(
|
|
| 111 |
|
| 112 |
market_research_agent = Agent(
|
| 113 |
name="Market Research Agent",
|
| 114 |
-
model=OpenAIChat(id=
|
| 115 |
tools=[GoogleSearchTools()],
|
| 116 |
instructions=[
|
| 117 |
"You are provided with a startup idea and the company's mission and objectives.",
|
|
@@ -127,7 +131,7 @@ market_research_agent = Agent(
|
|
| 127 |
|
| 128 |
competitor_analysis_agent = Agent(
|
| 129 |
name="Competitor Analysis Agent",
|
| 130 |
-
model=OpenAIChat(id=
|
| 131 |
tools=[GoogleSearchTools()],
|
| 132 |
instructions=[
|
| 133 |
"You are provided with a startup idea and market research data.",
|
|
@@ -144,7 +148,7 @@ competitor_analysis_agent = Agent(
|
|
| 144 |
|
| 145 |
report_agent = Agent(
|
| 146 |
name="Report Generator",
|
| 147 |
-
model=OpenAIChat(id=
|
| 148 |
instructions=[
|
| 149 |
"You are provided with comprehensive data about a startup idea including clarification, market research, and competitor analysis.",
|
| 150 |
"Synthesize all information into a comprehensive validation report.",
|
|
|
|
| 19 |
# --- Atla Insights Configuration ---
|
| 20 |
from atla_insights import configure, instrument, instrument_agno, instrument_openai, mark_success, mark_failure, tool
|
| 21 |
|
| 22 |
+
# Model configuration - using same model across all agents but you can change them to any model you want
|
| 23 |
+
MODEL_ID = "gpt-4o"
|
| 24 |
+
|
| 25 |
# Define metadata for tracing
|
| 26 |
metadata = {
|
| 27 |
+
"model": MODEL_ID,
|
| 28 |
"prompt": "v1.1",
|
| 29 |
"environment": "prod",
|
| 30 |
"agent_name": "Startup Idea Validator"
|
|
|
|
| 97 |
|
| 98 |
|
| 99 |
# --- Agents ---
|
| 100 |
+
# NOTE: All agents use the same model (MODEL_ID) for consistent performance and cost tracking
|
| 101 |
idea_clarifier_agent = Agent(
|
| 102 |
name="Idea Clarifier",
|
| 103 |
+
model=OpenAIChat(id=MODEL_ID),
|
| 104 |
instructions=[
|
| 105 |
"Given a user's startup idea, your goal is to refine that idea.",
|
| 106 |
"Evaluate the originality of the idea by comparing it with existing concepts.",
|
|
|
|
| 115 |
|
| 116 |
market_research_agent = Agent(
|
| 117 |
name="Market Research Agent",
|
| 118 |
+
model=OpenAIChat(id=MODEL_ID), # Same model as other agents
|
| 119 |
tools=[GoogleSearchTools()],
|
| 120 |
instructions=[
|
| 121 |
"You are provided with a startup idea and the company's mission and objectives.",
|
|
|
|
| 131 |
|
| 132 |
competitor_analysis_agent = Agent(
|
| 133 |
name="Competitor Analysis Agent",
|
| 134 |
+
model=OpenAIChat(id=MODEL_ID), # Same model as other agents
|
| 135 |
tools=[GoogleSearchTools()],
|
| 136 |
instructions=[
|
| 137 |
"You are provided with a startup idea and market research data.",
|
|
|
|
| 148 |
|
| 149 |
report_agent = Agent(
|
| 150 |
name="Report Generator",
|
| 151 |
+
model=OpenAIChat(id=MODEL_ID), # Same model as other agents
|
| 152 |
instructions=[
|
| 153 |
"You are provided with comprehensive data about a startup idea including clarification, market research, and competitor analysis.",
|
| 154 |
"Synthesize all information into a comprehensive validation report.",
|