Skip to main content

Code

tool_use.py

Usage

1

Set up your virtual environment

2

Set your API keys

3

Install dependencies

4

Configure Nexus

Install Nexus, then create nexus.toml in the directory where you will start the gateway:
The Nexus model sends OpenAI-compatible requests to http://localhost:8000/llm/v1/ by default. Nexus requires every model to be declared in nexus.toml.
5

Start Nexus

Start the gateway from the directory that contains nexus.toml:
6

Run Agent

Save the code above as tool_use.py, then run: