feat: (hopefully) face detection

Simplified implementation, relying on the already-present VED Agent.

ref: N25B-395
This commit is contained in:
2026-01-30 20:12:31 +01:00
parent 51015dbbfe
commit 1f799299b9
3 changed files with 49 additions and 13 deletions

View File

@@ -30,6 +30,7 @@ from control_backend.schemas.program import (
BasicNorm,
ConditionalNorm,
EmotionBelief,
FaceBelief,
GestureAction,
Goal,
InferredBelief,
@@ -682,11 +683,15 @@ class AgentSpeakGenerator:
:return: An AstLiteral representing the semantic belief.
"""
return AstLiteral(self.slugify(sb))
@_astify.register
def _(self, eb: EmotionBelief) -> AstExpression:
return AstLiteral("emotion_detected", [AstAtom(eb.emotion)])
@_astify.register
def _(self, fb: FaceBelief) -> AstExpression:
return AstLiteral("face_present")
@_astify.register
def _(self, ib: InferredBelief) -> AstExpression:
"""