Skip to main content

Python SDK for Laminar AI

Project description

Python SDK for Laminar AI

Example use:

from lmnr import Laminar

l = Laminar('<YOUR_PROJECT_API_KEY>')
result = l.run(
    endpoint = 'my_endpoint_name',
    inputs = {'input_node_name': 'some_value'},
    env = {'OPENAI_API_KEY': 'sk-some-key'},
    metadata = {'session_id': 'your_custom_session_id'}
)

Resulting in:

>>> result
EndpointRunResponse(outputs={'output': {'value': [ChatMessage(role='user', content='hello')]}}, run_id='53b012d5-5759-48a6-a9c5-0011610e3669')

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lmnr-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

lmnr-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lmnr-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.6 Darwin/23.5.0

File hashes

Hashes for lmnr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8e26897c2c242b3b70890c0031aab02b78339fa0c0f09d79871a0310d0116249
MD5 34718ae54699355e402e9bd2ff9d1693
BLAKE2b-256 9b912f67e7356a4091d80be25329a53ee0b690019e90e48061bd89cb7156999b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lmnr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.6 Darwin/23.5.0

File hashes

Hashes for lmnr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24d66dc57ff323d6bd586a1070b6bdf6ef0d1b2d26316516d3e0f62449c88c87
MD5 379835cf2943114e9cb21d7ff3b045f4
BLAKE2b-256 f5c0c0de4d1dcc0f9d6f4d95de6e101020d928b96f3107a63e97047d285d8493

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