Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion graph/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const (
NodeTypeEnd NodeType = "end"
// NodeTypeRouter represents a conditional routing node
NodeTypeRouter NodeType = "router"
// NodeTypeQuality represents a code quality analysis node
NodeTypeQuality NodeType = "quality"
// NodeTypeExecution represents an execution journal node
NodeTypeExecution NodeType = "execution"
)

// NodeKind classifies a node by the ecosystem view to which it belongs.
Expand Down Expand Up @@ -58,7 +62,7 @@ func ParseNodeKind(s string) (NodeKind, error) {
// ParseNodeType normalizes a graph node type.
func ParseNodeType(s string) (NodeType, error) {
switch NodeType(strings.ToLower(strings.TrimSpace(s))) {
case NodeTypeAgent, NodeTypeTool, NodeTypeFunction, NodeTypeStart, NodeTypeEnd, NodeTypeRouter:
case NodeTypeAgent, NodeTypeTool, NodeTypeFunction, NodeTypeStart, NodeTypeEnd, NodeTypeRouter, NodeTypeQuality, NodeTypeExecution:
return NodeType(strings.ToLower(strings.TrimSpace(s))), nil
default:
return "", fmt.Errorf("graph: unknown node type %q", s)
Expand Down
Loading