diff --git a/pkgs/core/swarmauri_core/ComponentBase.py b/pkgs/core/swarmauri_core/ComponentBase.py index e34a5a16..b2d8e20d 100644 --- a/pkgs/core/swarmauri_core/ComponentBase.py +++ b/pkgs/core/swarmauri_core/ComponentBase.py @@ -344,7 +344,7 @@ def determine_new_type(cls, field_annotation, resource_type): # Append the new ResourceType metadata.append(ResourceType(resource_type)) logger.debug(f"Preserving existing metadata and adding ResourceType for resource '{resource_type.__name__}'") - field_annotation = Annotated[base_type, *metadata] + field_annotation = Annotated[tuple([base_type, *metadata])] # Construct the new type with SubclassUnion and discriminated Union subclass_union = SubclassUnion[resource_type]