Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/leslieleung/hotline
- Owner: LeslieLeung
- Created: 2024-07-16T17:09:20.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T17:33:43.000Z (6 months ago)
- Last Synced: 2024-09-08T14:26:48.114Z (4 months ago)
- Topics: dify
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).