Skip to main content

Agiflow Software Development Kit (SDK) for Python

Project description

AGIFlow SDK

Getting Started

To get started with AGIFlow SDK, simply install the package using pip:

pip install agiflow-sdk

SDK Overview

AGIFlow SDK provides the following functionalities:

  • Automatic tracing with OpenTelemetry.
  • Decorators for manual tracing.
  • Helpers to interact with backend APIs.

Setup SDK

To set up the AGIFlow SDK client, initialize it once at the entry point of your application:

from agiflow import Agiflow

Agiflow.init(
  app_name="<YOUR_APP_NAME>",
  api_key="<AGIFLOW_API_KEY>"  # Or set AGIFLOW_API_KEY environment variable
)

You can find the API key on the Environment > Settings > API Key page of the AGIFlow Dashboard.

That's it! If you run your backend application with supported LLM frameworks, traces should be logged on the AGIFlow dashboard under Environment > Logs.

Environment Variables

  • AGIFLOW_BASE_URL: If you use AGIFlow with docker-compose for local development or self-hosting, set this to your self-hosted endpoint.
  • AGIFLOW_API_KEY: Use different API keys for different environments.

NOTE: AGIFlow uses a separate global OpenTelemetry trace provider to ensure all LLM traces are sent to support user feedback. To use the default OpenTelemetry global trace provider, set the AGIFLOW_OTEL_PYTHON_TRACER_PROVIDER_GLOBAL environment variable to true.

Documentation

For a complete guide, please visit our documentation.

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

agiflow_sdk-0.0.17.tar.gz (201.8 kB view details)

Uploaded Source

Built Distribution

agiflow_sdk-0.0.17-py3-none-any.whl (129.8 kB view details)

Uploaded Python 3

File details

Details for the file agiflow_sdk-0.0.17.tar.gz.

File metadata

  • Download URL: agiflow_sdk-0.0.17.tar.gz
  • Upload date:
  • Size: 201.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for agiflow_sdk-0.0.17.tar.gz
Algorithm Hash digest
SHA256 f81a0dcf9a7b756be0b179fbc22a2ff5219e19d720480ff404429aee1a939622
MD5 3fc61d3a508333a6d21b3521a9201b3b
BLAKE2b-256 333d20c374ff131dcd71a889b9ac3e4b6f35da4bb2cf7d9f2c59b7339508ed01

See more details on using hashes here.

File details

Details for the file agiflow_sdk-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: agiflow_sdk-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 129.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for agiflow_sdk-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 e1f4319f69c31d7ccc038aff4bcef59de517746bf1a3c829b3a83fedcc92fdea
MD5 65f7298b016ad10291718efd6b00c485
BLAKE2b-256 b4ead5dc951b433d91a1ec05bcc43b4ed61e9c022f59602626455f90c655e8fd

See more details on using hashes here.

Supported by

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