You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add lib/ai/gemini.ts: Gemini 2.0 Flash via OpenAI-compatible API (json, text, tool loop)
- Wire Gemini into all agents (TRIAGE, INVESTIGATOR, NETWORK_REASONER, DEVILS_ADVOCATE, SCRIBE) and so-what route; Groq kept as fallback when GOOGLE_AI_API_KEY is absent
- Fix failed_generation 400 errors in groq.ts: return null parsed instead of throwing when all retries exhaust
- Fix graph.v2.ts: move createRunningStep inside try/catch; wrap syncClaimsFromAgentOutputs with .catch() to prevent graph crashes
- Fix orchestrator.ts: isolate persistRuntimeResultV2/handlePostAgentRun/ensureDefaultMonitors so DB errors don't mark agent runs as ERROR
- Reduce INVESTIGATOR tools from 8 to 6 to lower Groq failed_generation rate
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
system: "You are a senior equity analyst writing for serious Indian retail investors. Write 2-3 sentences maximum. Be direct. Reference specific numbers. If trend is bad, say so. Never use filler phrases. End with what the investor should watch next. Format your response using markdown bolding (**bold**) for key numbers, percentages, and important trends.",
66
-
user: prompt,
67
-
model: GROQ_MODELS.quick
68
-
});
65
+
constsoWhatSystem="You are a senior equity analyst writing for serious Indian retail investors. Write 2-3 sentences maximum. Be direct. Reference specific numbers. If trend is bad, say so. Never use filler phrases. End with what the investor should watch next. Format your response using markdown bolding (**bold**) for key numbers, percentages, and important trends.";
0 commit comments