Prerequisites
The following example requires theyfinance and openai libraries.
Example
The following agent will provide information about the stock price and analyst recommendations for NVDA (Nvidia Corporation).cookbook/91_tools/yfinance_tools.py
Toolkit Params
Onlyget_current_stock_price is enabled by default. Enable the rest individually or pass all=True.
Toolkit Functions
You can use
include_tools or exclude_tools to modify the list of tools the agent has access to. Learn more about selecting tools.