From fc351e01f9bded531ba7764c202946f3803d2fc1 Mon Sep 17 00:00:00 2001 From: HamadaSalhab Date: Tue, 17 Sep 2024 11:42:54 +0300 Subject: [PATCH] Remove agents check on create_or_update_session --- agents-api/agents_api/models/session/create_or_update_session.py | 1 - 1 file changed, 1 deletion(-) diff --git a/agents-api/agents_api/models/session/create_or_update_session.py b/agents-api/agents_api/models/session/create_or_update_session.py index 60c0b7f71..8f285dadc 100644 --- a/agents-api/agents_api/models/session/create_or_update_session.py +++ b/agents-api/agents_api/models/session/create_or_update_session.py @@ -62,7 +62,6 @@ def create_or_update_session( raise ValueError("Only one of 'agent' or 'agents' should be provided.") agents = agents or ([agent] if agent else []) - assert len(agents) > 0, "At least one agent must be provided." # Users are zero or more, so we default to an empty list if not provided. if not (user or users):