Workflow language designed for LLM.
Project description
Flowity
Workflow language designed for LLM.
Installation
pip install flowity
Write flowity code
Hello, who are you?
$resp = $query()
$end($resp)
Run a workflow
import os
# === Setup Langchain ===
from langchain_openai import ChatOpenAI
os.environ["OPENAI_API_KEY"] = "sk-xxxx" # Your OpenAI api key
# Set OPENAI_API_BASE if you're using a reverse proxy
# os.environ["OPENAI_API_BASE"] = "https://api.openai.com/v1"
model = ChatOpenAI()
# === Write Flowity Code ===
code = """
Hello, who are you?
$str = $query()
$end($str)
"""
# === Run Flowity Code ===
from flowity.rt import rtime
rt = rtime.FlowityRuntime()
ret = rt.run(
code=code,
model=model
)
print(ret)
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
flowity-0.0.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file flowity-0.0.1.tar.gz
.
File metadata
- Download URL: flowity-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e6863b858006d576ac1ad8acd59457b8f5a958c12bbed37c7eece8330c57cd |
|
MD5 | 0e970d854f9ec6b82a69a4dc4ad7c679 |
|
BLAKE2b-256 | c02783f934b4897f0be01ff8cfaf42581e92505f7fae3c57da52682188b1d6b7 |
File details
Details for the file flowity-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: flowity-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dae2f7a1f732855a9f68200a717bdb5f1de0a7366c58688f76fa928a54a39ae |
|
MD5 | f211151fc67781f149de90a86d635d2e |
|
BLAKE2b-256 | f7bf6043b1da1f450480480feae707d546c3752b5ba7289307019d98689d0e40 |