Skip to content

langgraph/tutorials/multi_agent/multi-agent-collaboration/ Bedrock multiagent support #952

Answered by tuanvdo
invalidexplorer asked this question in Q&A
Discussion options

You must be logged in to vote

I am able to continue with the following "work-around" - instead of always wrapping the result as AIMessage, we wrap it only when it's a result with tool_calls. Can you try on your end @invalidexplorer ?

        if result.tool_calls:
            result = AIMessage(**result.dict(exclude={"type", "name"}), name=name)
        else:
            result = HumanMessage(**result.dict(exclude={"type", "name"}), name=name)

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@invalidexplorer
Comment options

@invalidexplorer
Comment options

@tuanvdo
Comment options

@tuanvdo
Comment options

Answer selected by invalidexplorer
@invalidexplorer
Comment options

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
4 participants