fix: made beliefs a dict of lists

[
    Before it was a list of a dict of lists of lists of strings
    now it is a dict of lists of lists of strings as prescribed by architecture (knowledge base)
    *also added some tests, but will have to add some more
]

[ref]: N25B-206
This commit is contained in:
Pim Hutting
2025-10-28 14:17:07 +01:00
parent 1f34b14dfa
commit 2efce93a37
3 changed files with 110 additions and 12 deletions

View File

@@ -12,9 +12,8 @@ class BeliefTextAgent(Agent):
# Send multiple beliefs in one JSON payload
payload = {
"type": "belief_extraction_text",
"beliefs": [
{"user_said": [["hello"],["Can you help me?"],["stop talking to me"],["No"],["Pepper do a dance"]]}
]
"beliefs": {"user_said": [["hello","test"],["Can you help me?"],["stop talking to me"],["No"],["Pepper do a dance"]]}
}
msg = Message(to=to_jid)