Fix online chat actor tests, improve offline chat actor tests

The chat actor (and director) tests haven't been looked into in a long
while. They'd gone stale in how they were calling thee functions. And
what was required to run them. Now the online chat actor tests work
again.
This commit is contained in:
Debanjum
2025-06-05 03:13:08 -07:00
parent 2f4160e24b
commit d2c7e5516f
3 changed files with 114 additions and 65 deletions

View File

@@ -52,7 +52,10 @@ def generate_chat_history(message_list):
message_to_log(
user_message,
chat_response,
{"context": context, "intent": {"query": user_message, "inferred-queries": f'["{user_message}"]'}},
{
"context": context,
"intent": {"type": "memory", "query": user_message, "inferred-queries": [user_message]},
},
chat_history=chat_history,
)
return chat_history