Skip to main content

Syntrac Software Development Kit (SDK) for Python

Project description

syntrac-sdk

Syntrac’s Python SDK allows you to easily start monitoring and debugging your LLM execution. Tracing is done in a non-intrusive way, built on top of OpenTelemetry. You can choose to export the traces to Syntrac, or to your existing observability stack.

Syntrac.init(app_name="joke_generation_service")

@workflow(name="joke_creation")
def create_joke():
    completion = openai.ChatCompletion.create(
        model="gpt-3.5-turbo",
        messages=[{"role": "user", "content": "Tell me a joke about opentelemetry"}],
    )

    return completion.choices[0].message.content

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

syntrac_sdk-0.0.3.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

syntrac_sdk-0.0.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file syntrac_sdk-0.0.3.tar.gz.

File metadata

  • Download URL: syntrac_sdk-0.0.3.tar.gz
  • Upload date:
  • Size: 47.2 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 syntrac_sdk-0.0.3.tar.gz
Algorithm Hash digest
SHA256 74c9c503cd987886da2f7bf50f0b7d1f955def22b7fad31d20ee527591f2c501
MD5 c9cdbae37fdd41f9dda7e6939c196e1a
BLAKE2b-256 63b394daff96fe4484ea642f8b295224f6a5a0b7783e7d2f23eb5484e9be686e

See more details on using hashes here.

File details

Details for the file syntrac_sdk-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: syntrac_sdk-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 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 syntrac_sdk-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d7dae7106956fd58110cf5644ec8f7a05211c23307e7efe0dcb0b4449b69be3
MD5 44e7fd0da423544f87de68872b1adf48
BLAKE2b-256 7d5f1085a7637ef9e8ce925569a52543c017817cd69230cc78aba58a5637b32a

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