Floom Python SDK v1.0.2
We are pleased to announce the release of Floom Python SDK version 1.0.2. This release includes several new features, improvements, and bug fixes that enhance the SDK's functionality and user experience. We recommend that all users update to this latest version to take full advantage of the improvements.
Install Instructions
Install the SDK using pip:
bash
pip install floom
How to use
See examples/example.py for more detailed example.
bash
Initializing FloomClient with proper Floom Endpoint (for cloud use https://api.floom.ai) and ApiKey
floom_client = FloomClient(
endpoint="http://localhost:4050",
api_key="api_key_here"
)
Set pipeline id (pipeline name from .yml file)
floom_response = floom_client.run(
pipelineId="simple-pipeline",
prompt="How do I reset the oil alert in my dashboard?"
)
Handle FloomResponse
if floom_response.code is not None:
print(f"Error: {floom_response.message}")
else:
print(floom_response.values[0]['value'])
We appreciate your support and feedback as we continue to improve the Floom Python SDK. Please report any issues or contribute suggestions on our GitHub repository.
Happy coding!