MulaiMulai sekarang secara gratis

Agent toolbox: stock data tool

Latihan ini adalah bagian dari kursus

Multi-Agent Systems with LangGraph

Lihat Kursus

Petunjuk latihan

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.


Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga