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
Hi. I have a Graph with agent nodes. Each agent has it's own prompt with some inputs and invokes the LLM. I have implemented the state size management using the trim_messages from langgraph, but when I update/trim the state inside the agent node, it does not overwrite the graph state. The graph state just keeps on taking the output from the agent and keeps growing.
Is there a way to overwrite or update the graph state after trimming inside the agent node?
Thanks. @hinthornw
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
-
Hi. I have a Graph with agent nodes. Each agent has it's own prompt with some inputs and invokes the LLM. I have implemented the state size management using the trim_messages from langgraph, but when I update/trim the state inside the agent node, it does not overwrite the graph state. The graph state just keeps on taking the output from the agent and keeps growing.
Is there a way to overwrite or update the graph state after trimming inside the agent node?
Thanks.
@hinthornw
Beta Was this translation helpful? Give feedback.
All reactions