Use "developer" role for programmatic conversation-kickoff messages

These messages are developer instructions to the assistant (e.g. "Please
introduce yourself to the user"), not simulated user input. The
"developer" role is semantically correct for this purpose.
This commit is contained in:
Paul Kompfner
2026-03-20 17:21:46 -04:00
parent 2bb36b5b66
commit d779a5b4ea
189 changed files with 472 additions and 191 deletions

View File

@@ -106,7 +106,7 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
logger.info(f"Client connected")
# Kick off the conversation.
context.add_message(
{"role": "user", "content": "Say hello and briefly introduce yourself."}
{"role": "developer", "content": "Say hello and briefly introduce yourself."}
)
await task.queue_frames([LLMRunFrame()])