Skip to content

Commit f77bffa

Browse files
chore: support for storing arbitrary values
1 parent 5f1b95e commit f77bffa

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/uipath/runtime/resumable/protocols.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,35 @@ async def get_latest_trigger(self, runtime_id: str) -> UiPathResumeTrigger | Non
3030
"""
3131
...
3232

33+
async def set_value(self, runtime_id: str, namespace: str, key: str, value: Any) -> None:
34+
"""Store values for a specific runtime.
35+
36+
Args:
37+
runtime_id: The runtime ID
38+
namespace: The namespace of the persisted value
39+
key: The key associated with the persisted value
40+
value: The value to persist
41+
42+
Raises:
43+
Exception: If storage operation fails
44+
"""
45+
...
46+
47+
async def get_value(self, runtime_id: str, namespace: str, key: str) -> Any:
48+
"""Retrieve values for a specific runtime from storage.
49+
50+
Args:
51+
runtime_id: The runtime ID
52+
namespace: The namespace of the persisted value
53+
key: The key associated with the persisted value
54+
55+
Returns:
56+
The value matching the method's parameters, or None if it does not exist
57+
58+
Raises:
59+
Exception: If retrieval operation fails
60+
"""
61+
...
3362

3463
class UiPathResumeTriggerCreatorProtocol(Protocol):
3564
"""Protocol for creating resume triggers from suspend values."""

0 commit comments

Comments
 (0)