A simple demonstration of using OpenAI's Agents SDK with Nebius Studio's API to create an AI assistant that can send emails.
- Custom AI assistant using Nebius's LLMs
- Email sending capability using Resend API
- Haiku-speaking assistant as a demonstration
- Python 3.8+
- Nebius API key
- Resend API key
- A verified sender email for Resend
The application requires the following environment variables:
NEBIUS_API_KEY: Your Nebius Studio API keyRESEND_API_KEY: Your Resend API keyEXAMPLE_BASE_URL: Nebius API base URL (defaults to "https://api.studio.nebius.ai/v1")EXAMPLE_MODEL_NAME: Model to use (defaults to "meta-llama/Meta-Llama-3.1-8B-Instruct")
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt- Set up your environment variables
Run the main script:
python main.pyThe script will:
- Create an assistant that responds only in haikus
- Send a test email using the Resend API
- Output the result
Modify the main.py file to:
- Change the assistant's instructions
- Add more tools
- Alter the example query
- Configure different LLM models
