tree: 2ff86a871c9fa1386ba181a8847b8e5a7b6861b4
  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