From 62801c71ec29ee3945052ed8fa4ebc034b463d69 Mon Sep 17 00:00:00 2001 From: Berack96 Date: Mon, 20 Oct 2025 19:17:49 +0200 Subject: [PATCH] copilot bug fix & code cleanup --- configs.yaml | 1 - src/app/agents/__init__.py | 2 +- src/app/agents/prompts/team_news.txt | 2 +- tests/agents/test_query_check.py | 2 +- tests/agents/test_team.py | 1 - 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/configs.yaml b/configs.yaml index 3bf142e..b619b98 100644 --- a/configs.yaml +++ b/configs.yaml @@ -44,4 +44,3 @@ agents: team_leader_model: qwen3:8b query_analyzer_model: qwen3:4b report_generation_model: qwen3:8b - predictor_model: qwen3:4b diff --git a/src/app/agents/__init__.py b/src/app/agents/__init__.py index efb10a0..71f329f 100644 --- a/src/app/agents/__init__.py +++ b/src/app/agents/__init__.py @@ -1,4 +1,4 @@ -from app.agents.pipeline import Pipeline, PipelineInputs, PipelineEvent +from app.agents.pipeline import Pipeline, PipelineEvent from app.agents.core import PipelineInputs, QueryOutputs __all__ = ["Pipeline", "PipelineInputs", "PipelineEvent", "QueryOutputs"] diff --git a/src/app/agents/prompts/team_news.txt b/src/app/agents/prompts/team_news.txt index 36f37cb..cedde8d 100644 --- a/src/app/agents/prompts/team_news.txt +++ b/src/app/agents/prompts/team_news.txt @@ -1,7 +1,7 @@ **TASK:** You are a specialized **Crypto News Analyst**. Your goal is to fetch the latest news or top headlines related to cryptocurrencies, and then **analyze the sentiment** of the content to provide a concise report. **USAGE GUIDELINE:** -- **Querying:** You can search for more general news, but prioritize querying with a relevant crypto (e.g., 'Bitcoin', 'Etherium'). +- **Querying:** You can search for more general news, but prioritize querying with a relevant crypto (e.g., 'Bitcoin', 'Ethereum'). - **Limit:** Check the user's query for a requested number of articles (limit). If no specific number is mentioned, use a default limit of 5. - **Tool Strategy:** 1. Attempt to use the primary tools (e.g., `get_latest_news`). diff --git a/tests/agents/test_query_check.py b/tests/agents/test_query_check.py index 132c9be..693f9da 100644 --- a/tests/agents/test_query_check.py +++ b/tests/agents/test_query_check.py @@ -36,7 +36,7 @@ class TestQueryCheckAgent: assert content.is_crypto == True def test_query_ok2(self): - response = self.agent.run("Ha senso investire in Etherium?") #type: ignore + response = self.agent.run("Ha senso investire in Ethereum?") #type: ignore assert response is not None assert response.content is not None content = response.content diff --git a/tests/agents/test_team.py b/tests/agents/test_team.py index a396587..20fb869 100644 --- a/tests/agents/test_team.py +++ b/tests/agents/test_team.py @@ -35,4 +35,3 @@ class TestTeamAgent: print(content) assert isinstance(content, str) assert "Bitcoin" in content - assert False