Is it possible to update two state within a node ? #1132
-
I am working on developing a multi-agent system and have encountered a situation where I need to update two different states simultaneously. For example, consider the following code snippet where I update the state for the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@deva2zcodeops yes, you can send update for multiple state keys like this: async def PrimaryConvoAgent(state):
...
agent_type_update = ...
return {"primary_convo_agent_response": [AIMessage(content=primary_convo_res)], "agent_type": [agent_type_update]} |
Beta Was this translation helpful? Give feedback.
-
Thanks, Got it worked 👍 |
Beta Was this translation helpful? Give feedback.
@deva2zcodeops yes, you can send update for multiple state keys like this: