diff --git a/examples/src/minimal_assistant.ts b/examples/src/minimal_assistant.ts index 967eed10..5aa93d40 100644 --- a/examples/src/minimal_assistant.ts +++ b/examples/src/minimal_assistant.ts @@ -34,7 +34,10 @@ export default defineAgent({ }, }); - const session = (await agent.start(ctx.room)) as openai.realtime.RealtimeSession; + const session = await agent + .start(ctx.room) + .then((session) => session as openai.realtime.RealtimeSession); + session.defaultConversation.item.create({ type: 'message', role: 'user',