
Now how to use ToolNode and create_react_agent to further abstract agent code
Know how to invoke tools that are on different servers
Become familiar with a wide range of tools for LLMS, both those built into LangGraph and popular 3rd party tools
Let's show off our work from last week! Please connect to the Zoom and be ready to share your desktop. Note that this is not a remote class, we are simply using Zoom for screen sharing.
https://virginia.zoom.us/j/91761114965?pwd=u9upwQ1eaEqCKZkxOOQsjv7TykeePX.1
Meeting ID: 917 6111 4965 Passcode: 297850
New partners! Find your new partner here and go sit together and introduce yourselves.
Study the code of the toolnode_example.py and the react_agent_example.py. Run them and and look at the Mermaid graphs they produce. Answer the following questions in your portfolio:
What features of Python does ToolNode use to dispatch tools in parallel? What kinds of tools would most benefit from parallel dispatch?
How do the two programs handle special inputs such as "verbose" and "exit"?
Compare the graph diagrams of the two programs. How do they differ if at all?
What is an example of a case where the structure imposed by the LangChain react agent is too restrictive and you'd want to pursue the toolnode approach?
Skim through this agent_tools_reference.
Work with your partner to implement one of these 2-Hour Agent Projects. Start with the bare minimum functionality and add features later as time allows. Aim to get your project completed by the end of class Thursday. It is okay to use a coding agent as long as you understand and can explain the code it writes.
MoltReader, a text-to-speech reader for MoltBook, A Social Network for AI Agents
Create a subdirectory in your GitHub portfolio named Topic4Exploring and save your programs, each modified version named to indicate its task number and purpose. Create appropriately named text files saving the outputs from your terminal sessions running the programs. Create README.md with a table of contents of the directory.