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.1.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.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: layr_sdk-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0ee9bddfc2d69873565ebd23e9973968f2ed338d34fc588508af0865da92877a
MD5 2919474f63c19bb4c24bce390511173a
BLAKE2b-256 62b232d6417a1b3d85ce1ad6af14fc4f4d7c03e74a0fb3eaf139ab79a2d7a305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: layr_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b32ab367c3345682675ee23a804782d8c0fcace94a9aa2adbcf7734811568aa1
MD5 b6225ccfcd298aef4c047de880c23e98
BLAKE2b-256 7a1336aba46c5f67fa43e7ef4bdd2f9cf3381bb145a3332eb2af67cfcee4415f

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