Tools
Install and setup tools related to function calling on your machine
Python
python
is a programming language, and uv
is a package and version manager.
Setup
Download and install uv
following the official instructions.
Make sure it is installed by executing the following command:
uv --version
Usage
The following is a list of commands you might need to use often:
# install the latest python version
uv python install
# run a python script
uv run script.py
# run a jupyter notebook
uv run --with jupyter jupyter lab my-notebook.ipynb
# create a project
uv init my-new-project
# add a dependency
uv add my-dependency
To run a Python script, execute the following command:
Refer to the official documentation for more commands and info.
Microsandbox
microsandbox
allows you to spin up secure sandboxes to execute arbitrary user code.
Setup
Install it on your machine by following the official installation instructions.
Next, run the server in development mode by executing the following command:
msb server start --dev
This starts a server with a JSON-RPC API on port 5555
, which allows us to programmatically manage sandboxes and execute code.
Usage
Refer to the official documentation for more information about it.