Conditional tool calls
Latihan ini adalah bagian dari kursus
Multi-Agent Systems with LangGraph
Petunjuk latihan
Run the first two cells to install the libraries and re-define the tools
- Re-bind the LLM with the tools to make it tool-aware.
- Create nodes for the LLM and tools called
"llm"and"tools", respectively - Add the edges to enable conditional tool use: add standard edges connecting the LLM to
STARTandEND, and create a conditional edge to route to"tools"if thetool_conditionfunction is met, andENDif not.
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