Aan de slagGa gratis aan de slag

Agent toolbox: stock data tool

Deze oefening maakt deel uit van de cursus

Multi-Agent Systems with LangGraph

Cursus bekijken

Oefeninstructies

Make sure to first run the cell to install the libraries

  • Create a tool called stock_data_tool() that takes a stock ticker symbol (company_ticker) and number of days to look back over (num_days), and returns a markdown-formatted table containing the stock performance data of that company over that period.
  • Invoke the tool on "META" over 4 days to test that it works—note that the table only contains business days, so the number of rows can be less than num_days.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen