Hey guys how do i delete an agent in the cloud ?
# cloud
j
Hey guys how do i delete an agent in the cloud ?
r
j
Huh, i was looking all over the UI interface for this haha
Hey @refined-appointment-81829, im also struggling with getting the agent deployed on the livekit cloud to connect to my frontend, it works awesome locally but I cant seem to find the issue when its deployed on the cloud Any first issuees that I should root out before i dive into this rabbit hole
r
Most of the time when an agent does not join it is due to an agent_name mismatch
j
Just to be sure, do you mean id or is name something else
r
Can you share a link to your agent from your dashboard. I can take a look
j
r
ok, so that is a "default agent"
So it should join a room when it is created
j
I tried adding the name to the config file
didnt change anything
And neither does it join a room automatically
r
can you share a session id for a room where agent did not join room?
Also do the rooms automatically close when no one is inside or do i have to trigger cleanup?
The ones before closed automatically but I guess those were localhost
r
If you have not changed settings they will close automatically when it is empty
j
I dont think I did but its been going on for 67 min, but more importantly any leads on why the agent isnt joining the sessions?
Ive been pulling my hair out for 67 min and im almost at my last one
r
yea, lets figure out the why agent does not join room first.
e
what is the agent id?
r
I assume you use a unique room name each time?
e
is it this one?
CA_SoP8GHEP5Cyc
@jolly-machine-99464 have you run
lk a logs
for this agent? it is crash looping due to a code error
the 'running' status in the dashboard may be a bug on our side, not sure why it is showing that
j
I havent done that, all i saw was build succeeded and ive been operating with that assumption
Let me have a look at that one
i just get thsi
e
yeah the agent needs a command to run, that is the issue
what does your Dockerfile look like?
j
This is what im working with
nodejs 1
e
i'm not super familiar with the node sdk but i think you need something like
Copy code
CMD ["node", "dist/index.js", "start"]
r
j
I put way too much in codex and way less trust on the cloud, let me have a proper comb through for 15 and come back with an update
r
Curious if you saw our recent release where you can prototype your agent in the webpage. https://blog.livekit.io/announcing-agent-builder-a-pathway-to-code/
j
I was looking to try it but only one agent deployment made me post pone it
I got the deployment succeeding and the agent joining the room but the agent behaves really weirdly
It listens and doesnt translate, or it translates, very wacky behaviour
Most importantly the second listener is not able to hear what the agent is saying
Like whoever created the room is able to interact with the agent but anyone who joins later is not able to hear anything either from the other person or from the agent
Is there a limit on the number of sessions the agent can join?
r
Agents are designed to talk to one participant at a time.
You can add some UI so folks can press a button to talk to an agent.
j
Alr, i used the builder and it worked for a second, but it again doesnt interact with me at all. and just repeats what the other person says Is there a way to override this to be more of a translate what the other person is saying? or whoever is spekaing? And for the model is it possible to choose gpt realtime? I dont see that option in the builder dashboard
r
I don't think realtime is available in build yet.
So you are trying to build an AI that translated?
j
I see these errors but no where can i actually see them
the thing is i have a version of the github working locally but dpeloying it is the pain for me right now
r
the version you were trying to deploy is the node one or you mean python?
j
the node one
r
In that case follow that doc I sent earlier
j
its also a standalone app so i can port it to python https://github.com/livekit/agents/tree/main/examples/other/translation This one?
j
I tried that one, the agent doesnt respond at all, or it could be because i reached the limit of concurrent sessions? not sure how to narrow that down and im still not sure how to add a name to that one Also, appreciate you sitting down to figure this out 💪
https://cloud.livekit.io/projects/p_2v0pv4ec2s8/sessions/RM_6LU3reSZzhkm This session just keeps running and no body is in it, could you help close it down pelase
r
I will have the team to take a look at why the session keeps running.
j
@refined-appointment-81829 I used the python of the translation thing in the examples, there is a bug where if a second user joins the agent unsubscribes it self
and just exits
r
I just tried it and it seems to be working for me
We looked at this session. It shutdown 40 seconds after last particiapnt left. https://livekit-users.slack.com/archives/C048FRL1N2C/p1763754993695949?thread_ts=1763745090.860839&cid=C048FRL1N2C
j
Could you have a look at the agent code that is deployed for mine From the error logs i dont see anything happening https://cloud.livekit.io/projects/p_2v0pv4ec2s8/agents/CA_GwKPCudigjnF
But as soon as second particupant joins the agent straight up leaves
r
Sorry, I do not have access to your code. But check the logs
lk a logs
j
the logs are clean which is the crazy part. Let me reset and try it from scratch again
Im fully stuck here especially if you have the translation working with the agent Any advice on this one? https://livekit-users.slack.com/archives/C048FRL1N2C/p1763761098685649?thread_ts=1763745090.860839&cid=C048FRL1N2C
@echoing-kitchen-90064 @refined-appointment-81829 The logs are not being really useful, is there any chance that you guys can check if there is something that is going wrong on the agent side from your side of the logs? (I know they are probs the same but fingers crossed you guys see something i dont)