Skip to content

Is it possible to update two state within a node ? #1132

Answered by vbarda
deva2zcodeops asked this question in Q&A
Discussion options

You must be logged in to vote

@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]}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by hwchase17
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants