in process_messages(messages) util function in Lab5 there is the code
if message[‘tool_call_id’] in message.values():
tool_response[“tool_response”] = message[‘content’]
But message[‘tool_call_id’] in message.values() should be always true and so all tool_responses are populated with the message content, probably the code was intended as
if tool_response[‘tool_call_id’] in message.values():
tool_response[“tool_response”] = message[‘content’]
regards,
