From 4ff0567025027b6c03de27c9801fdfb38d17421a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 20 Aug 2025 15:03:21 -0700 Subject: [PATCH] BaseObject: allow keyword arguments --- src/pipecat/utils/base_object.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipecat/utils/base_object.py b/src/pipecat/utils/base_object.py index 51eb1195b..bf34515a6 100644 --- a/src/pipecat/utils/base_object.py +++ b/src/pipecat/utils/base_object.py @@ -29,12 +29,13 @@ class BaseObject(ABC): classes in the framework should inherit from this base class. """ - def __init__(self, *, name: Optional[str] = None): + def __init__(self, *, name: Optional[str] = None, **kwargs): """Initialize the base object. Args: name: Optional custom name for the object. If not provided, generates a name using the class name and instance count. + **kwargs: Additional arguments passed to parent class. """ self._id: int = obj_id() self._name = name or f"{self.__class__.__name__}#{obj_count(self)}"