refactor: five-tier rating scale and streamlined agent prompts

This commit is contained in:
Yijia-Xiao
2026-03-22 23:07:20 +00:00
parent c3ba3bf428
commit 318adda0c6
11 changed files with 38 additions and 28 deletions
+4 -2
View File
@@ -18,12 +18,14 @@ class SignalProcessor:
full_signal: Complete trading signal text
Returns:
Extracted decision (BUY, SELL, or HOLD)
Extracted rating (BUY, OVERWEIGHT, HOLD, UNDERWEIGHT, or SELL)
"""
messages = [
(
"system",
"You are an efficient assistant designed to analyze paragraphs or financial reports provided by a group of analysts. Your task is to extract the investment decision: SELL, BUY, or HOLD. Provide only the extracted decision (SELL, BUY, or HOLD) as your output, without adding any additional text or information.",
"You are an efficient assistant that extracts the trading decision from analyst reports. "
"Extract the rating as exactly one of: BUY, OVERWEIGHT, HOLD, UNDERWEIGHT, SELL. "
"Output only the single rating word, nothing else.",
),
("human", full_signal),
]