79720489

Date: 2025-07-30 20:30:25
Score: 1.5
Natty:
Report link

The response returned from the llm invoke in the query_decision_func() will be of type AIMessage.

To get the content of the AIMessage, you can grab the content attribute. So change:

model_decision = response["messages"][0].lower()

to

model_decision = response.content
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kevinpol18