From b18cd5bfa5a2ed0e327577ee24e51b7264e54097 Mon Sep 17 00:00:00 2001 From: JobvAlewijk Date: Thu, 29 Jan 2026 16:24:03 +0100 Subject: [PATCH] chore: face --- .../visualProgrammingUI/nodes/BasicBeliefNode.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/VisProgPage/visualProgrammingUI/nodes/BasicBeliefNode.tsx b/src/pages/VisProgPage/visualProgrammingUI/nodes/BasicBeliefNode.tsx index 467187d..dfb9420 100644 --- a/src/pages/VisProgPage/visualProgrammingUI/nodes/BasicBeliefNode.tsx +++ b/src/pages/VisProgPage/visualProgrammingUI/nodes/BasicBeliefNode.tsx @@ -31,11 +31,12 @@ export type BasicBeliefNodeData = { }; // These are all the types a basic belief could be. -export type BasicBeliefType = Keyword | Semantic | DetectedObject | Emotion +export type BasicBeliefType = Keyword | Semantic | DetectedObject | Emotion | Face type Keyword = { type: "keyword", id: string, value: string, label: "Keyword said:"}; type Semantic = { type: "semantic", id: string, value: string, description: string, label: "Detected with LLM:"}; type DetectedObject = { type: "object", id: string, value: string, label: "Object found:"}; type Emotion = { type: "emotion", id: string, value: string, label: "Emotion recognised:"}; +type Face = { type: "face", id: string, value: string, label: "Face detected"}; export type BasicBeliefNode = Node @@ -155,6 +156,7 @@ export default function BasicBeliefNode(props: NodeProps) { + {wrapping} {data.belief.type === "emotion" && ( @@ -222,6 +224,10 @@ export function BasicBeliefReduce(node: Node, _nodes: Node[]) { result["name"] = data.belief.value; result["description"] = data.belief.description; break; + case "face": + result["face_present"] = true; + break; + default: break; }