Skip to main content

Observability for AI agents

Project description

Layr

Observability for AI agents. Instrument your agents in a few lines of code and get full visibility into every action, decision, and resource they consume — works with the observability stack you already have.

Requirements

  • Python 3.10+

Installation

Install the package from PyPI (the distribution name is layr-sdk; you import the layr module in code):

pip install layr-sdk

Quickstart

Create an API key from your Layr account, then:

from layr import Agent

agent = Agent(api_key="your-key")

agent.track(
    action="send_email",
    target="user@example.com",
    reasoning="Customer requested order update",
    input_tokens=450,
    output_tokens=210,
    latency_ms=1200,
)

Documentation

Full documentation: www.getlayr.co/docs

License

MIT — Built by the Layr team at www.getlayr.co

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

layr_sdk-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

layr_sdk-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file layr_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: layr_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for layr_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5a023c2901b58e36962544dfd36272b868aa49da9fe4736276e5c09b01c5c3c7
MD5 dbc89b65fa2ec65fe80f788423c17c1b
BLAKE2b-256 895bbd1a5cad5cbc765b0d1a2904430a050186d7ce3672a0b80b2dc24b5a81fa

See more details on using hashes here.

File details

Details for the file layr_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: layr_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for layr_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edc57643feca66ad5760d26a089a65288632c304c3e2b1f2e25df68ef2e9bdaa
MD5 1909f735a0f6d4fbc11cc60e65a9c872
BLAKE2b-256 e8a8f7aa183daa027139e66920a56267eb1040e5b6ec6b83ce4393f0be17a966

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