logo

Python

To get started with Velatir in Python, you need to install the SDK using the following command:

pip install velatir

The SDK is designed to be easy to use and integrate into your existing Python applications. Once you have created an API key within your project, all you need to do is initializing the SDK within your code:

import velatir

# Initialize the SDK with your API key
velatir.init(api_key="your-api-key")

# Decorate functions you want to monitor
@velatir.watch()
async def send_email(to: str, subject: str, body: str):
    """Send an email to the customer"""
    print(f"Sending email to {to}: {subject}")
    # Your email sending logic here
    
# Call the function as usual (or from LLM tool)
await send_email("[email protected]", "Welcome!", "Hello!")