#simpleQuestion I am able to dispatch the agent to...
# server-api
c
#simpleQuestion I am able to dispatch the agent to the room, but the metadata is not accessible from room. Instead I am getting some other stuff as metadata, e.g: job metadata: {"pid": 35735, "job_id": "AJ_9LVmCUmfYDPX"}
r
I think that is not quite right. Have a look at this doc: https://docs.livekit.io/agents/worker/agent-dispatch/#dispatch-via-api
c
@refined-appointment-81829 I didn't see any difference between documentation and and my solution. Could you please tell me if there is any error in that 6 line code?
r
Oh the code you shared is different than example. What does your real code look like?
c
@refined-appointment-81829 Here is the code in documentation. Only difference with my code is value of metadata.
And here is the response from livekit servers, meaning livekit is getting metadata. It is adding agent to the room too, but just can't print metadata
@refined-appointment-81829 this is just absurdly interesting, isn't it? I know this is very simple, doing everything exactly as documentation. Never had this kind of problem before
@refined-appointment-81829 actually nevermind, I forgot to give a name to the agent.
👍 1