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 hashes)
Built Distribution
lmnr-0.1.1-py3-none-any.whl
(3.5 kB
view hashes)