Spaces:
Runtime error
Runtime error
Download agent.py from iteratehack/summitseekerbackendagent: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/iteratehack/summitseekerbackendagent/resolve/main/agent.py
- Command line
-
hf download hf://spaces/iteratehack/summitseekerbackendagent/agent.py
-
curl -L -o agent.py https://huggingface.co/spaces/iteratehack/summitseekerbackendagent/resolve/main/agent.py
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)) | |