copilot bug fix & code cleanup

This commit is contained in:
2025-10-20 19:17:49 +02:00
parent 594dcd0aa6
commit 62801c71ec
5 changed files with 3 additions and 5 deletions

View File

@@ -44,4 +44,3 @@ agents:
team_leader_model: qwen3:8b
query_analyzer_model: qwen3:4b
report_generation_model: qwen3:8b
predictor_model: qwen3:4b

View File

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

View File

@@ -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`).

View File

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

View File

@@ -35,4 +35,3 @@ class TestTeamAgent:
print(content)
assert isinstance(content, str)
assert "Bitcoin" in content
assert False