langchain.agents import AgentTypefrom langchain.chat_models import ChatOpenAIfrom langchain.agents import initialize_agentllm = ChatOpenAI(model="gpt-3.5-turbo-0613", temperature=0)tools = [CurrentStockPriceTool(), StockPerformanceTool()]agent = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)agent.run(    "What is the current price of Microsoft stock? How it has performed over past 6 months?")            > Entering new  chain...        Invoking: `get_current_stock_price` with `{'ticker': 'MSFT'}`            {'price': 334.57000732421875, 'currency': 'USD'}    Invoking: `get_stock_performance` with `{'ticker': 'MSFT', 'days': 180}`            {'percent_change': 40.163963297187905}The current price of Microsoft stock is $334.57 USD.         Over the past 6 months, Microsoft stock has performed well with a 40.16% increase in its price.        > Finished chain.    'The current price of Microsoft stock is $334.57 USD. \n\nOver the past 6 months, Microsoft stock has performed well with a 40.16% increase in its price.'agent.run("Give me recent stock prices of Google and Meta?")            > Entering new  chain...        Invoking: `get_current_stock_price` with `{'ticker': 'GOOGL'}`            {'price': 118.33000183105469, 'currency': 'USD'}    Invoking: `get_current_stock_price` with `{'ticker': 'META'}`            {'price': 287.04998779296875, 'currency': 'USD'}The recent stock price of Google (GOOGL) is $118.33 USD and the recent stock price of Meta (META) is $287.05 USD.        > Finished chain.    'The recent stock price of Google (GOOGL) is $118.33 USD and the recent stock price of Meta (META) is $287.05 USD.'agent.run(    "In the past 3 months, which stock between Microsoft and Google has performed the best?")            > Entering new  chain...        Invoking: `get_stock_performance` with `{'ticker': 'MSFT', 'days': 90}`            {'percent_change': 18.043096235165596}    Invoking: `get_stock_performance` with `{'ticker': 'GOOGL',
This notebook goes through how to integrate custom functions with OpenAI Functions agent.
This notebook goes through how to integrate custom functions with OpenAI Functions agent. ->: langchain.agents import AgentTypefrom langchain.chat_models import ChatOpenAIfrom langchain.agents import initialize_agentllm = ChatOpenAI(model="gpt-3.5-turbo-0613", temperature=0)tools = [CurrentStockPriceTool(), StockPerformanceTool()]agent = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)agent.run(    "What is the current price of Microsoft stock? How it has performed over past 6 months?")            > Entering new  chain...        Invoking: `get_current_stock_price` with `{'ticker': 'MSFT'}`            {'price': 334.57000732421875, 'currency': 'USD'}    Invoking: `get_stock_performance` with `{'ticker': 'MSFT', 'days': 180}`            {'percent_change': 40.163963297187905}The current price of Microsoft stock is $334.57 USD.         Over the past 6 months, Microsoft stock has performed well with a 40.16% increase in its price.        > Finished chain.    'The current price of Microsoft stock is $334.57 USD. \n\nOver the past 6 months, Microsoft stock has performed well with a 40.16% increase in its price.'agent.run("Give me recent stock prices of Google and Meta?")            > Entering new  chain...        Invoking: `get_current_stock_price` with `{'ticker': 'GOOGL'}`            {'price': 118.33000183105469, 'currency': 'USD'}    Invoking: `get_current_stock_price` with `{'ticker': 'META'}`            {'price': 287.04998779296875, 'currency': 'USD'}The recent stock price of Google (GOOGL) is $118.33 USD and the recent stock price of Meta (META) is $287.05 USD.        > Finished chain.    'The recent stock price of Google (GOOGL) is $118.33 USD and the recent stock price of Meta (META) is $287.05 USD.'agent.run(    "In the past 3 months, which stock between Microsoft and Google has performed the best?")            > Entering new  chain...        Invoking: `get_stock_performance` with `{'ticker': 'MSFT', 'days': 90}`            {'percent_change': 18.043096235165596}    Invoking: `get_stock_performance` with `{'ticker': 'GOOGL',