Lecture-5 Routing: Inconsistent 'result' type without OpenAI

Hi All, I am on lecture 5 and in the end after binding these two functions: search_wikipedia, get_current_temperature, type(result) in the tutorial gives- langchain.schema.agent.AgentActionMessageLog but while I am trying without openai it gives me- langchain_core.messages.ai.AIMessage due to which further I am getting errors in running route function as result.tool does not exist. Please suggest how to proceed…let me know if further information is required. Thank you