Spaces:
Runtime error
Runtime error
File size: 712 Bytes
2580240 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import os
from livekit import agents
from livekit.agents import AgentSession, Agent
from livekit.plugins import openai
async def entrypoint(ctx: agents.JobContext):
await ctx.connect()
session = AgentSession(
llm=openai.realtime.RealtimeModel(voice="coral")
)
await session.start(
room=ctx.room,
agent=Agent(instructions="You are SummitSeeker AI, an expert field operations and spatial navigation assistant. Keep your responses concise and conversational.")
)
await session.generate_reply(instructions="Greet the field operator and confirm systems are online.")
if __name__ == "__main__":
agents.cli.run_app(agents.WorkerOptions(entrypoint_fnc=entrypoint))
|