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; }