This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, A. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error
AttributeError: 'JobContext' object has no attribute 'participants'
occurs because the
JobContext
class does not have a
participants
attribute. Instead, the list of participants is accessible from the
Room
object associated with the job context. To fix the issue, access the
Room
object via the
room
attribute of
JobContext
, and then use its participant-related methods. For example:
Copy code
room = job_context.room
participants = room.GetParticipants()
You should update your code to reference
job_context.room.GetParticipants()
or the appropriate method on the
Room
object, instead of trying to call
job_context.participants()
. If you need more detailed guidance based on your project or code structure, please provide a snippet showing how you're initializing and using
JobContext
and accessing participants. Sources: JobContext | LiveKit Agents | agents/src/job.ts | livekit-agents/livekit/agents/__init__.py | livekit-protocol/livekit/protocol/room.pyi | pkg/rtc/room.go
s
@livekit assistant
please check
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!