SummitSeeker's picture
Create agent.py
2580240 verified
Raw
History Blame Contribute Delete
712 Bytes
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))