fix: made mapping for conditional norms only

ref: N25B-400
This commit is contained in:
Pim Hutting
2026-01-08 12:29:16 +01:00
parent b27e5180c4
commit 3a8d1730a1
2 changed files with 11 additions and 4 deletions

View File

@@ -415,6 +415,11 @@ class AgentSpeakGenerator:
def slugify(element: ProgramElement) -> str:
raise NotImplementedError(f"Cannot convert element {element} to a slug.")
@slugify.register
@staticmethod
def _(n: Norm) -> str:
return f"norm_{AgentSpeakGenerator._slugify_str(n.norm)}"
@slugify.register
@staticmethod
def _(sb: SemanticBelief) -> str: