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