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.2.0.tar.gz (17.4 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.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: adaline_client-2.2.0.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for adaline_client-2.2.0.tar.gz
Algorithm Hash digest
SHA256 aa117fb45b420d3b740a8279bcf9c77926ea762c875b09fae776f68ef2799944
MD5 136f4806bc254f80ee337fd59021ced9
BLAKE2b-256 af1bb5110cd98c47f64f168f4e00bbdd0b104b8711a51cab8ca006f91086e053

See more details on using hashes here.

File details

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

File metadata

  • Download URL: adaline_client-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for adaline_client-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1239e837f891a7b1eb7ff86deca9ef150927fb04b01a457c505d80ce8a4ccf70
MD5 c120273e24439333847a7b04f19663b8
BLAKE2b-256 b5d670f1114ffbe012de64d1bd2e0c7ce1b88c00a7f16512cfd4c6184fc13845

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