add initial tool use curriculum
140
.gitignore
vendored
Normal file
@@ -0,0 +1,140 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
pip-wheel-metadata/
|
||||
share/python-wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
*.py,cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
|
||||
# pyenv
|
||||
.python-version
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||
# install all needed dependencies.
|
||||
#Pipfile.lock
|
||||
|
||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
||||
__pypackages__/
|
||||
|
||||
# Celery stuff
|
||||
celerybeat-schedule
|
||||
celerybeat.pid
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
myenv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
pyvenv.cfg
|
||||
share/
|
||||
bin/
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
# Data
|
||||
*transactions*.jsonl
|
||||
/examples/data/transactions*
|
||||
*.DS_Store
|
||||
tmp_*
|
||||
examples/fine-tuned_qa/local_cache/*
|
||||
410
ToolUse/01_tool_use_overview.ipynb
Normal file
975
ToolUse/02_your_first_simple_tool.ipynb
Normal file
857
ToolUse/03_structured_outputs.ipynb
Normal file
1077
ToolUse/04_complete_workflow.ipynb
Normal file
785
ToolUse/05_tool_choice.ipynb
Normal file
1475
ToolUse/06_chatbot_with_multiple_tools.ipynb
Normal file
11
ToolUse/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Tool use tutorial
|
||||
|
||||
Welcome to Anthropic's comprehensive tool use tutorial. Across six lessons, you will learn everything you need to know to implement tool use successfully in your workflows with Claude. We recommend that you start from the beginning with the [tool use overview](./01_tool_use_overview.ipynb), as each lesson builds on key concepts taught in previous ones.
|
||||
|
||||
## Table of contents
|
||||
* [Tool use overview](./01_tool_use_overview.ipynb)
|
||||
* [Your first simple tool](./02_your_first_simple_tool.ipynb)
|
||||
* [Forcing JSON with tool use](./03_structured_outputs.ipynb)
|
||||
* [The complete tool use workflow](./04_complete_workflow.ipynb)
|
||||
* [Tool choice](./05_tool_choice.ipynb)
|
||||
* [Building a chatbot with multiple tools](./06_chatbot_with_multiple_tools.ipynb)
|
||||
BIN
ToolUse/images/calculator_diagram.png
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
ToolUse/images/chat_diagram.png
Normal file
|
After Width: | Height: | Size: 181 KiB |
BIN
ToolUse/images/chickens_calculator.png
Normal file
|
After Width: | Height: | Size: 154 KiB |
BIN
ToolUse/images/conversation1.png
Normal file
|
After Width: | Height: | Size: 306 KiB |
BIN
ToolUse/images/conversation10.png
Normal file
|
After Width: | Height: | Size: 411 KiB |
BIN
ToolUse/images/conversation2.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
ToolUse/images/conversation3.png
Normal file
|
After Width: | Height: | Size: 267 KiB |
BIN
ToolUse/images/conversation4.png
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
ToolUse/images/conversation5.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
ToolUse/images/conversation6.png
Normal file
|
After Width: | Height: | Size: 238 KiB |
BIN
ToolUse/images/conversation7.png
Normal file
|
After Width: | Height: | Size: 234 KiB |
BIN
ToolUse/images/conversation8.png
Normal file
|
After Width: | Height: | Size: 337 KiB |
BIN
ToolUse/images/conversation9.png
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
ToolUse/images/db_tool.png
Normal file
|
After Width: | Height: | Size: 169 KiB |
BIN
ToolUse/images/exercise_conversation.png
Normal file
|
After Width: | Height: | Size: 196 KiB |
BIN
ToolUse/images/messages_diagram.png
Normal file
|
After Width: | Height: | Size: 223 KiB |
BIN
ToolUse/images/research_reading.png
Normal file
|
After Width: | Height: | Size: 312 KiB |
BIN
ToolUse/images/stock_tool.png
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
ToolUse/images/structured_response.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
ToolUse/images/tool_choice.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
ToolUse/images/tool_flow_diagram.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
ToolUse/images/tool_use_diagram.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
ToolUse/images/tool_use_examples.png
Normal file
|
After Width: | Height: | Size: 145 KiB |
BIN
ToolUse/images/tool_use_flow.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
ToolUse/images/wiki_diagram.png
Normal file
|
After Width: | Height: | Size: 163 KiB |
BIN
ToolUse/images/wiki_messages.png
Normal file
|
After Width: | Height: | Size: 245 KiB |
BIN
ToolUse/images/wikipedia_diagram.png
Normal file
|
After Width: | Height: | Size: 164 KiB |