Skip to main content

Code

tool_use.py
Select a text-generation model with function-calling support for this example.

Usage

1

Set up your virtual environment

2

Export environment variables

Select an available text-generation model ID from the Nebius model-list API.
3

Install dependencies

4

Run Agent

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