mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-06-18 15:28:07 +00:00
Fixed errors
This commit is contained in:
23
web/src/nodes/TaskDispatcher.js
Normal file
23
web/src/nodes/TaskDispatcher.js
Normal file
@ -0,0 +1,23 @@
|
||||
import {
|
||||
defineNode,
|
||||
TextInputInterface,
|
||||
NodeInterface
|
||||
} from "baklavajs";
|
||||
|
||||
export const TaskDispatcherNode = defineNode({
|
||||
type: "Task",
|
||||
title: "Task",
|
||||
description: {
|
||||
|
||||
},
|
||||
inputs: {
|
||||
description: () => new TextInputInterface("Description", ""),
|
||||
},
|
||||
outputs: {
|
||||
result: () => new NodeInterface("Result")
|
||||
},
|
||||
calculate({ description }) {
|
||||
return { result: description };
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user