mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-06-16 22:38:09 +00:00
23 lines
449 B
JavaScript
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 };
|
|
}
|
|
});
|
|
|