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
I'm wondering why the messages in the state are represented as a string and not kept as a list of BaseMessage objects?
Is this due to a code mistake in my example, or is this just an internal representation and the messages are being parsed back into a list of Messages before being given to a chat model ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, given the following example code :
and the output :
Similarly, when we inspect the last
step["messages"]
, previous messages are represented as string and not as a list of message objects:I'm wondering why the messages in the state are represented as a string and not kept as a list of BaseMessage objects?
Is this due to a code mistake in my example, or is this just an internal representation and the messages are being parsed back into a list of Messages before being given to a chat model ?
Beta Was this translation helpful? Give feedback.
All reactions