I have 3 agents that I run on the same worker usin...
# ask-ai
r
I have 3 agents that I run on the same worker using this logic within the joined entrypoint:
Copy code
ctx.add_participant_entrypoint(entrypoint1)
ctx.add_participant_entrypoint(entrypoint2)
ctx.add_participant_entrypoint(entrypoint3)
await ctx.connect()
where within each sub-entrypoint there is a defferent:
Copy code
global controller, lang, conv_agent_instances, entrypoints_flags
if 'user1_identifier' not in participant.identity or entrypoints_flags['user1']:
    return
print(f'################## user1 conversation entrypoint ##################')
entrypoints_flags['user1'] = True

# more logic

session = AgentSession(vad=ctx.proc.userdata["vad"])
await session.start(args)
block. then I use:
Copy code
if __name__ == "__main__":
    cli.run_app(WorkerOptions(entrypoint_fnc=joined_entrypoint, prewarm_fnc=prewarm, job_memory_warn_mb=1000, agent_name="multiagent"))
in my room there are 2 participants, one silent most of the time and one always active, when the silent one joins some tracks should be subscribed and unsubscribed. My issue is: I can't use any track/track publication identifier to differentiate between the tracks of the local participant. the local participant have 3 identical tracks (different SID). I want to add to their metadata some identifier for the track/publication. can it be done?
t
Thanks for reaching out, Shahaf. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
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!