trodo-python 2.18.1__py3-none-any.whl → 2.18.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trodo/__init__.py +4 -2
- {trodo_python-2.18.1.dist-info → trodo_python-2.18.2.dist-info}/METADATA +1 -1
- {trodo_python-2.18.1.dist-info → trodo_python-2.18.2.dist-info}/RECORD +5 -5
- {trodo_python-2.18.1.dist-info → trodo_python-2.18.2.dist-info}/WHEEL +0 -0
- {trodo_python-2.18.1.dist-info → trodo_python-2.18.2.dist-info}/top_level.txt +0 -0
trodo/__init__.py
CHANGED
|
@@ -322,7 +322,7 @@ def reset(distinct_id: str) -> ResetResult:
|
|
|
322
322
|
def get_prompt(
|
|
323
323
|
name: str,
|
|
324
324
|
label: Optional[str] = None,
|
|
325
|
-
version: Optional[int] = None,
|
|
325
|
+
version: Optional[Union[int, str]] = None,
|
|
326
326
|
cache_ttl_seconds: Optional[float] = None,
|
|
327
327
|
fallback: Optional[Dict[str, Any]] = None,
|
|
328
328
|
max_retries: int = 2,
|
|
@@ -330,7 +330,9 @@ def get_prompt(
|
|
|
330
330
|
"""Fetch a managed prompt by name.
|
|
331
331
|
|
|
332
332
|
Follows the ``production`` label by default; pass ``label`` for a different
|
|
333
|
-
one or ``version`` to pin exactly.
|
|
333
|
+
one or ``version`` to pin exactly. ``version`` may be the integer
|
|
334
|
+
``version_no`` or a ``version_hash`` (full, or an unambiguous short prefix
|
|
335
|
+
like ``a3f9c2``) — the hash is the stable identity, so prefer it.
|
|
334
336
|
|
|
335
337
|
Cached for 60s with stale-while-revalidate, so a Trodo outage degrades
|
|
336
338
|
instead of taking your app down. Pass ``fallback`` to cover cold start::
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
trodo/__init__.py,sha256=
|
|
1
|
+
trodo/__init__.py,sha256=LxN-qzeCDU_SpYs0gsZQxvdj5PuWd8cOBUqYGk9viLc,26928
|
|
2
2
|
trodo/client.py,sha256=9UYaHZtWPMYdlG2xWVf77PQJ9DfFgN-zobTh60i8_Cc,22453
|
|
3
3
|
trodo/types.py,sha256=eySgUvCXROG2TxtxgiU0MNr5iH0DEcduK8bmYtTKG44,3138
|
|
4
4
|
trodo/user_context.py,sha256=uHCI2WYoOI3cNwdIUEuZdX4VYSu14pzm348ksn6hn_c,8195
|
|
@@ -36,7 +36,7 @@ trodo/session/server_session.py,sha256=McsudEiq33XDq3nqxgzBcUvIjQxCMscwEuAPnYXrT
|
|
|
36
36
|
trodo/session/session_manager.py,sha256=7ht5LeeZX1HLLfPeNV_a8NkXGbHl3up0CRtCGr3EzjQ,2995
|
|
37
37
|
trodo/util/__init__.py,sha256=Z9c4rPPdKg06Kk3byKheDqksSgR4WNvS475oQ5sNljc,54
|
|
38
38
|
trodo/util/lru.py,sha256=QIsM7s6J_E9ZjiXatSyReZIEeGypTAcgrPWWy8YsRa4,2465
|
|
39
|
-
trodo_python-2.18.
|
|
40
|
-
trodo_python-2.18.
|
|
41
|
-
trodo_python-2.18.
|
|
42
|
-
trodo_python-2.18.
|
|
39
|
+
trodo_python-2.18.2.dist-info/METADATA,sha256=UnFh9i8kRSmo6JfdHcRWy7dYGm7vGW714FgDC_5ckM8,25308
|
|
40
|
+
trodo_python-2.18.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
41
|
+
trodo_python-2.18.2.dist-info/top_level.txt,sha256=VCQu1CJWFmNsqTs1YxMcw4Mq35Tc3z3uI9RwHEXAayQ,6
|
|
42
|
+
trodo_python-2.18.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|