diff --git a/src/backend/core/core.py b/src/backend/core/core.py index 8918283..ca40937 100644 --- a/src/backend/core/core.py +++ b/src/backend/core/core.py @@ -76,7 +76,7 @@ swot_agent = Agent( provider=OpenAIProvider(api_key=get_val("OPENAI_API_KEY")), ), deps_type=SwotAgentDeps, - result_type=SwotAnalysis, + output_type=SwotAnalysis, system_prompt=default_system_prompt, retries=5, ) diff --git a/src/backend/core/tools.py b/src/backend/core/tools.py index 2a55549..6dee7d9 100644 --- a/src/backend/core/tools.py +++ b/src/backend/core/tools.py @@ -166,7 +166,7 @@ async def get_reddit_insights( return "\n".join(insights) -@swot_agent.result_validator +@swot_agent.output_validator def validate_result( _ctx: RunContext[SwotAgentDeps], value: SwotAnalysis ) -> SwotAnalysis: diff --git a/src/backend/settings/consts.py b/src/backend/settings/consts.py index 7d5abd0..4ac7ee7 100644 --- a/src/backend/settings/consts.py +++ b/src/backend/settings/consts.py @@ -3,7 +3,9 @@ import os from decouple import config -BASE_DIR = os.path.join(os.path.dirname(os.path.dirname("__name__"))) +BASE_DIR = os.path.dirname( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +) BACKEND_DIR = os.path.join(BASE_DIR, "backend") FRONTEND_DIR = os.path.join(BASE_DIR, "frontend") diff --git a/src/frontend/templates/home.html b/src/frontend/templates/home.html index fd9b5fc..c4d0a44 100644 --- a/src/frontend/templates/home.html +++ b/src/frontend/templates/home.html @@ -4,7 +4,7 @@
- StrategIQ