Skip to main content

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


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)

Uploaded Source

Built Distribution

flowity-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for flowity-0.0.1.tar.gz
Algorithm Hash digest
SHA256 00e6863b858006d576ac1ad8acd59457b8f5a958c12bbed37c7eece8330c57cd
MD5 0e970d854f9ec6b82a69a4dc4ad7c679
BLAKE2b-256 c02783f934b4897f0be01ff8cfaf42581e92505f7fae3c57da52682188b1d6b7

See more details on using hashes here.

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

Hashes for flowity-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9dae2f7a1f732855a9f68200a717bdb5f1de0a7366c58688f76fa928a54a39ae
MD5 f211151fc67781f149de90a86d635d2e
BLAKE2b-256 f7bf6043b1da1f450480480feae707d546c3752b5ba7289307019d98689d0e40

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