Skip to content

Commit 71d32dc

Browse files
committed
raise error for url in kwargs
1 parent 07ef52a commit 71d32dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

libraries/microsoft-agents-storage-cosmos/microsoft_agents/storage/cosmos/cosmos_db_storage_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ def __init__(
4545
self.cosmos_db_endpoint: str = cosmos_db_endpoint or kwargs.get(
4646
"cosmos_db_endpoint", ""
4747
)
48+
49+
if "url" in kwargs:
50+
raise ValueError(
51+
"The 'url' parameter is deprecated. Please use 'cosmos_db_endpoint' instead."
52+
)
53+
4854
self.auth_key: str = auth_key or kwargs.get("auth_key", "")
4955
self.database_id: str = database_id or kwargs.get("database_id", "")
5056
self.container_id: str = container_id or kwargs.get("container_id", "")

0 commit comments

Comments
 (0)