Skip to content

Commit 3075030

Browse files
feat(context-grounding): mark retrieve_by_id as deprecated
1 parent b596eb9 commit 3075030

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uipath/_services/context_grounding_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import httpx
55
from pydantic import TypeAdapter
6+
from typing_extensions import deprecated
67

78
from .._config import Config
89
from .._execution_context import ExecutionContext
@@ -234,6 +235,7 @@ async def retrieve_async(
234235
raise Exception("ContextGroundingIndex not found") from e
235236

236237
@traced(name="contextgrounding_retrieve_by_id", run_type="uipath")
238+
@deprecated("Use retrieve instead")
237239
def retrieve_by_id(
238240
self,
239241
id: str,
@@ -266,6 +268,7 @@ def retrieve_by_id(
266268
).json()
267269

268270
@traced(name="contextgrounding_retrieve_by_id", run_type="uipath")
271+
@deprecated("Use retrieve_async instead")
269272
async def retrieve_by_id_async(
270273
self,
271274
id: str,

0 commit comments

Comments
 (0)