follow this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import json | |
| import subprocess | |
| from anthropic import Anthropic | |
| # Tool definitions | |
| TOOLS = [ | |
| { | |
| "name": "list_files", | |
| "description": "List files and directories at a given path", |
Databricks doesn't distribute their ODBC driver for arm64, so we need to Rosetta the toolchain to x86. I've been using a whole Rosetta development environment for months, and recently I discovered a minimal Rosetta setup.
Use arch --x86_64 /bin/zsh to switch your shell to a x86 environment, and use exist or arch --arm64 /bin/zsh to switch back.