improved registration flow

This commit is contained in:
Dinesh Yeduguru 2024-11-08 11:07:41 -08:00
parent 39f0c5f544
commit 0eaca98229
10 changed files with 95 additions and 26 deletions

View file

@ -36,8 +36,3 @@ class Resource(BaseModel):
type: ResourceType = Field(
description="Type of resource (e.g. 'model', 'shield', 'memory_bank', etc.)"
)
# If the provider_resource_identifier is not set, set it to the identifier
def model_post_init(self, __context) -> None:
if self.provider_resource_identifier is None:
self.provider_resource_identifier = self.identifier