tree: 2b3d945e4d9a7e1640fc4a40fee5a4c573d09353 [path history] [tgz]
  1. __init__.py
  2. application.py
  3. notebook.ipynb
  4. README.md
  5. requirements.txt
  6. statemachine.png
examples/tool-calling/README.md

Tool-calling

This example shows the basic tool-calling design pattern for agents.

While this leverages the OpenAI API, the lessons are the same whether you use different tool-calling APIs (E.G. Anthropic), or general structured outputs (E.G. with instructor).

Rather than explain the code here, we direct you to the blog post

Files

  • application.py -- contains code for calling tools + orchestrating them
  • notebook.ipynb -- walks you through the example with the same code
  • [requirements.txt] -- install this to get the right environment