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.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

lmnr-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lmnr-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 cd0a3d2070c6c956d8830a16306bb1b637b83ae83194e60f6a6c397d0037935b
MD5 7762d6c53aa5d7b28619be27bcf62795
BLAKE2b-256 592b73ccf465e8b8496b86c296e0710da998cb143e092b685c8d85cce5876a35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lmnr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb2b12a47b02fa43998c2aad1925b45fd935999de5e3af394a1a38f48bc3269
MD5 0730533484c447416951c3426ed2f817
BLAKE2b-256 37207b46c4cb6d83e5b92d2091f27ac6a7fef0cf4ccc75d2f3a8d9b8bebc7e46

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