difference between agent metadata and attributes? ...
# ask-ai
a
difference between agent metadata and attributes? are both readeable by any participant?
✅ 1
t
Thanks for reaching out, Sebastián. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — good question. Here's the short answer: • Attributes are key/value pairs attached to a participant (including an agent) in the room. They are broadcast to the room and are readable by other participants by default. • Agent metadata is data attached to the dispatched job and lives in the agent’s
JobContext
(e.g.,
job.metadata
). It is available to the agent during job execution but is not automatically exposed to other room participants. So: attributes are readable by participants; metadata is not readable by participants unless the agent explicitly shares it (for example, by copying metadata into attributes or sending a message). Sources: Agent dispatch | LiveKit Documentation | Job lifecycle | LiveKit Documentation, with interactive elements