Building the agent's toolbox
This exercise is part of the course
Text-to-Query Agents with MongoDB and LangGraph
Exercise instructions
- Create a LangChain-compatible MongoDB database instance using your
MONGODB_URI
and specifying the"sample_mflix"
database. - Initialize the MongoDB database toolkit and view the tools present in the toolkit using the
db
andllm
defined previously. - Test out the four tools from the toolkit with the inputs provided.
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.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
