mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-22 09:45:27 -04:00
28 lines
598 B
Go
28 lines
598 B
Go
package requests
|
|
|
|
type WorkflowNodeData interface {
|
|
KnowledgeRetrievalNodeData | QuestionClassifierNodeData | ParameterExtractorNodeData
|
|
}
|
|
|
|
type NodeType string
|
|
|
|
const (
|
|
KNOWLEDGE_RETRIEVAL NodeType = "knowledge_retrieval"
|
|
QUESTION_CLASSIFIER NodeType = "question_classifier"
|
|
PARAMETER_EXTRACTOR NodeType = "parameter_extractor"
|
|
)
|
|
|
|
type KnowledgeRetrievalNodeData struct {
|
|
}
|
|
|
|
type QuestionClassifierNodeData struct {
|
|
}
|
|
|
|
type ParameterExtractorNodeData struct {
|
|
}
|
|
|
|
type InvokeNodeRequest[T WorkflowNodeData] struct {
|
|
NodeType NodeType `json:"node_type"`
|
|
NodeData T `json:"node_data"`
|
|
}
|