Skip to main content

The official Python SDK for Adaline - the single platform to iterate, evaluate, deploy, and monitor AI agents.

Project description

adaline-client

Official Python SDK for Adaline - Prompt management, testing, evaluation, and monitoring.

Installation

pip install adaline-client

Usage

import asyncio
from adaline import Adaline

async def main():
    # Initialize client (reads ADALINE_API_KEY and ADALINE_BASE_URL from environment)
    client = Adaline()

    # Get latest deployment
    deployment = await client.get_latest_deployment(
        prompt_id="your-prompt-id",
        deployment_environment_id="your-env-id"
    )
    print(f"Model: {deployment.prompt.config.model}")

    # Close the client
    await client.client.close()

asyncio.run(main())

Environment Variables

  • ADALINE_API_KEY - Your Adaline API key
  • ADALINE_BASE_URL - API base URL (defaults to https://api.adaline.ai/v2)

Requirements

  • Python >= 3.11

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adaline_client-2.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adaline_client-2.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file adaline_client-2.1.0.tar.gz.

File metadata

  • Download URL: adaline_client-2.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.15 Linux/6.14.0-1017-azure

File hashes

Hashes for adaline_client-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9db7908ce4e339d66a28007e5e97f9a8d3ec0bdd6ffde051047cbe6c5099d4e6
MD5 add4ff937dbc343efb5fd46bdf1a0c69
BLAKE2b-256 0e5d1b1722a655e4c078e696df4429405833675a3d838bd0fe94408619b3c94a

See more details on using hashes here.

File details

Details for the file adaline_client-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: adaline_client-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.15 Linux/6.14.0-1017-azure

File hashes

Hashes for adaline_client-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a55edaa541ea038fb497709971e0912351c2c79b64c80202b798afdd7cb38f09
MD5 aab765dacf726b8da946b4530d6038ff
BLAKE2b-256 b6c7c23a8752f1fdbef53e5f962f8663fc0a47e84bf79c0c4feed36ffa8dcc2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page