scripts(evals): use context.add_message()

This commit is contained in:
Aleix Conchillo Flaqué
2026-03-05 19:14:06 -08:00
parent ea8f5f2e22
commit 3199168d3e

View File

@@ -361,7 +361,7 @@ async def run_eval_pipeline(
# Default behavior is for the bot to speak first
# If the eval bot speaks first, we append the prompt to the messages
if eval_config.eval_speaks_first:
messages.append(
context.add_message(
{"role": "user", "content": f"Start by saying this exactly: '{eval_config.prompt}'"}
)
await task.queue_frames([LLMRunFrame()])