From the course: Claude with Amazon Bedrock by Anthropic

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Sending tool results

Sending tool results

On to the very last step. We are going to take that list of tool result parts that we just generated, add them all into a user message, and then take the entire conversation history and send it all off to Claude. So let's go back over to our notebooks and test this out really quickly. First, I'm going to scroll up to the cell right above. Now right up here, we called chat and we got our list of parts, but we never actually added them into our message history. So in other words, right now, we do not have this part of the conversation inside of our list of messages. So I'm going to fix that really quickly. I will add in a add assistant message and put in the big list of parts. I'm then going to rerun that cell. Okay, next up, I'm going to go down. In the cell that we were just working in a moment ago, we had a call to run tools. Now it's really fine to leave that in there, but I only have it in there for debug purposes. So I'm going to remove that call just to clean up my code in here…

Contents