Hello, i'm trying to update my project to the new ...
# agents
w
Hello, i'm trying to update my project to the new agent version (1.2.5) but i'm having troubles. First of all, my agents identity is being setted automatically as 'simulated-agent-...' even when i have a custom identity in my request_fnc. This is the my worker config '''async def request_fnc(req: JobRequest): global started if started: await req.reject() else: await req.accept( name=f"agent-{os.getenv('AGENT_PORT', 8090)}", identity=f"{os.getenv('AGENT_ID')}", ) logger.info(f"indentity: {os.getenv('AGENT_ID')}") started = True if name == "__main__": port = int(os.getenv('AGENT_PORT', 8090)) options = WorkerOptions( entrypoint_fnc=entrypoint, request_fnc=request_fnc, agent_name=f"agent-{port}", ws_url=os.getenv("LIVEKIT_URL"), api_key=os.getenv("LIVEKIT_API_KEY"), api_secret=os.getenv("LIVEKIT_API_SECRET"), port=port ) logger.info(f"Port assigned: {port}") cli.run_app(options)''' The 'started' flag is to avoid the agent to enter multiple rooms as the presence of a certain agent on a certain room depends on room metadata. I think the request_fnc is not even being executed as the logger.info line is not shown on logs. Just to be clair, i was working with version 0.12.20 before without problems with the exact same code.