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.0.0.tar.gz (9.6 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.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for adaline_client-2.0.0.tar.gz
Algorithm Hash digest
SHA256 4eed3534ae4800f309290708ab83a24b91fd11a9a009be4dee1e36180d41f1db
MD5 5ca731fbb73e50d184b74b0c281ee3d8
BLAKE2b-256 324c542c4051f8140651d204b256afae00f82f210867d31bdfd2d2313b018ab9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for adaline_client-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a5a83e8ad9fcd8dbfe4d53535fad1970d9bcba94b2e36a1eb1a6ebb5d7fdd2a
MD5 836a14aa91f9179ea1cca9ba4c5a8d4e
BLAKE2b-256 7412c99813976e962a754d96da0f2641590251d2b503a6e2b76943382c121963

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