Files
lollms-webui/web/src/nodes/TaskDispatcher.js
Saifeddine ALOUI c14208104b Fixed errors
2024-01-10 21:22:17 +01:00

23 lines
449 B
JavaScript

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 };
}
});