6 Activating tool-driven generation
This chapter covers
- Augmenting generation with tools
- Declaratively defining tools
- Using methods and functions as tools
- Providing tool context
When was the last time you visited your doctor? When you were there, did you think about the types of information that the doctor was working with to assess your health?
Doctors go through extensive training to get licensed to practice medicine. During that training they learn the essentials of medicine and physiology. But new discoveries are made frequently and patients present unusual conditions that require doctors to consult the latest research and with other medical professionals to be able to best care for their patients. Even so, no amount of training or medical research can tell the doctor how you feel or what your vital signs are. To better understand your specific situation, the doctor has to measure your vital signs in real-time using tools like thermometers, blood pressure cuffs, and stethoscopes.