fixed anthropic support. Anthropic has different format of response when it has tool calls. Explicit handling added

This commit is contained in:
Edward Sun committed 2025-06-21 12:51:34 -07:00
1 parent 7eaf4d995f
commit 52284ce13c
5 files changed
+26 -6

No files matched your search

@@ -76,9 +76,14 @@ Volume-Based Indicators:
result = chain.invoke(state["messages"])
report = ""
if len(result.tool_calls) == 0:
report = result.content
return {
"messages": [result],
"market_report": result.content,
"market_report": report,
}
return market_analyst_node