Flowise/packages/components/nodes/agentflow/StickyNote/StickyNote.ts

43 lines
1.0 KiB
TypeScript

import { INode, INodeParams } from '../../../src/Interface'
class StickyNote_Agentflow implements INode {
label: string
name: string
version: number
description: string
type: string
icon: string
category: string
color: string
tags: string[]
baseClasses: string[]
inputs: INodeParams[]
constructor() {
this.label = 'Sticky Note'
this.name = 'stickyNoteAgentflow'
this.version = 1.0
this.type = 'StickyNote'
this.color = '#fee440'
this.category = 'Agent Flows'
this.description = 'Add notes to the agent flow'
this.inputs = [
{
label: '',
name: 'note',
type: 'string',
rows: 1,
placeholder: 'Type something here',
optional: true
}
]
this.baseClasses = [this.type]
}
async run(): Promise<any> {
return undefined
}
}
module.exports = { nodeClass: StickyNote_Agentflow }