Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leslieleung/hotline

A client-side workflow engine/executor for AI applications.
https://github.com/leslieleung/hotline

dify

Last synced: about 2 months ago
JSON representation

A client-side workflow engine/executor for AI applications.

Awesome Lists containing this project

README

        

# hotline

A client-side workflow engine/executor for AI applications.

## Demo

### Define a workflow(like GitHub Actions)

```yaml
workflows:
- name: translate
id: translate
inputs:
- name: text
required: true
steps:
# Define a step that uses the `dify_workflow` action
- name: translation
id: translation
uses: dify_workflow
with:
host: https://dify.ai
api_key: app-ATotallyFakeApiKey
# The input section defined in Dify workflow
inputs:
- name: text
value: ${{ inputs.text }}
# Define a step that prints the result
- name: print
uses: print
with:
# Reference the result from the previous step
message: ${{ steps.translation.outputs.text }}
```

### Execute the workflow

```bash
hotline exec translate -f translate.yaml --text="Good morning, how can I help you?"
```

## Installation

### brew

```bash
brew tap leslieleung/homebrew-tap
brew install leslieleung/tap/hotline
```

### Binary

Download the binaries from the [releases](https://github.com/LeslieLeung/hotline/releases).