Merge pull request #10 from FJS-Services-Inc/dev_deploy

fix: resolve remaining pydantic-ai 0.4.x breakages and startup errors
This commit is contained in:
2026-02-02 23:09:30 -05:00
committed by GitHub
4 changed files with 6 additions and 4 deletions

View File

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

View File

@ -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:

View File

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

View File

@ -4,7 +4,7 @@
<div class="hero-body">
<div class="container has-text-centered">
<div class="hero-icon mb-4">
<img src="{{ url_for('static', filename='purple.svg') }}"
<img src="{{ url_for('static', path='purple.svg') }}"
alt="StrategIQ"
style="width: 80px; height: 80px;">
</div>