Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

fix: satisfy ruff format in agent_core.py

Timo Bozsolik-Torres3c731ed5d610
diff --git a/core/switch_core/bridges/agent/protocol/agent_core.py b/core/switch_core/bridges/agent/protocol/agent_core.py
index 80a35595d..5239a53c5 100644
--- a/core/switch_core/bridges/agent/protocol/agent_core.py
+++ b/core/switch_core/bridges/agent/protocol/agent_core.py
@@ -1245,9 +1245,7 @@ class AgentCore:
admin = next(
(
c
- for c in self.client_lifecycle.get_by_type(
- "admin", require_tenant_id()
- )
+ for c in self.client_lifecycle.get_by_type("admin", require_tenant_id())
if isinstance(c, SystemActor)
),
None,