Align function calling examples

This commit is contained in:
Mark Backman
2026-05-18 10:34:24 -04:00
parent 6b42aaead8
commit d3c978e8ca
14 changed files with 42 additions and 1 deletions

View File

@@ -135,6 +135,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments):
async def on_client_connected(transport, client):
logger.info(f"Client connected")
# Kick off the conversation.
context.add_message(
{"role": "developer", "content": "Please introduce yourself to the user."}
)
await task.queue_frames([LLMRunFrame()])
@transport.event_handler("on_client_disconnected")