feat(dataset): add support for external url in Dataset (#10877)

This commit is contained in:
Nicholas Pena 2024-07-15 18:57:23 -04:00 committed by GitHub
parent 5f38d13eb7
commit cfcd216924
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,6 +162,7 @@ class Dataset(BaseModel):
structured_properties: Optional[ structured_properties: Optional[
Dict[str, Union[str, float, List[Union[str, float]]]] Dict[str, Union[str, float, List[Union[str, float]]]]
] = None ] = None
external_url: Optional[str] = None
@property @property
def platform_urn(self) -> str: def platform_urn(self) -> str:
@ -236,6 +237,7 @@ class Dataset(BaseModel):
description=self.description, description=self.description,
name=self.name, name=self.name,
customProperties=self.properties, customProperties=self.properties,
externalUrl=self.external_url,
), ),
) )
yield mcp yield mcp