glaip-sdk 0.7.20__py3-none-any.whl → 0.7.22__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.
- glaip_sdk/agents/base.py +4 -0
- glaip_sdk/cli/slash/session.py +2 -7
- glaip_sdk/guardrails/serializer.py +6 -4
- {glaip_sdk-0.7.20.dist-info → glaip_sdk-0.7.22.dist-info}/METADATA +1 -1
- {glaip_sdk-0.7.20.dist-info → glaip_sdk-0.7.22.dist-info}/RECORD +8 -8
- {glaip_sdk-0.7.20.dist-info → glaip_sdk-0.7.22.dist-info}/WHEEL +1 -1
- {glaip_sdk-0.7.20.dist-info → glaip_sdk-0.7.22.dist-info}/entry_points.txt +0 -0
- {glaip_sdk-0.7.20.dist-info → glaip_sdk-0.7.22.dist-info}/top_level.txt +0 -0
glaip_sdk/agents/base.py
CHANGED
|
@@ -1097,6 +1097,10 @@ class Agent:
|
|
|
1097
1097
|
)
|
|
1098
1098
|
|
|
1099
1099
|
call_kwargs.update(kwargs)
|
|
1100
|
+
|
|
1101
|
+
memory_user_id = call_kwargs.get("memory_user_id")
|
|
1102
|
+
if memory_user_id and not call_kwargs.get("user_id"):
|
|
1103
|
+
call_kwargs["user_id"] = memory_user_id
|
|
1100
1104
|
return agent_client, call_kwargs
|
|
1101
1105
|
|
|
1102
1106
|
def _get_local_runner_or_raise(self) -> Any:
|
glaip_sdk/cli/slash/session.py
CHANGED
|
@@ -260,6 +260,7 @@ class SlashSession:
|
|
|
260
260
|
self._run_non_interactive(initial_commands)
|
|
261
261
|
return
|
|
262
262
|
|
|
263
|
+
self._maybe_show_update_prompt()
|
|
263
264
|
# Use animated logo during initialization if supported
|
|
264
265
|
animator = LogoAnimator(console=self.console)
|
|
265
266
|
if animator.should_animate() and self._interactive:
|
|
@@ -329,12 +330,6 @@ class SlashSession:
|
|
|
329
330
|
animation_running.clear()
|
|
330
331
|
return False
|
|
331
332
|
|
|
332
|
-
# Task 3: Updates.
|
|
333
|
-
current_status[0] = "Checking for updates..."
|
|
334
|
-
if status_callback:
|
|
335
|
-
status_callback(current_status[0])
|
|
336
|
-
# Defer update prompt if we are in animated initialization to avoid blocking/cluttering
|
|
337
|
-
self._maybe_show_update_prompt(defer=bool(status_callback is None))
|
|
338
333
|
return True
|
|
339
334
|
|
|
340
335
|
def _update_pulse_step(
|
|
@@ -1222,7 +1217,7 @@ class SlashSession:
|
|
|
1222
1217
|
self._register(
|
|
1223
1218
|
SlashCommand(
|
|
1224
1219
|
name="accounts",
|
|
1225
|
-
help="✨ NEW · Browse and switch stored accounts
|
|
1220
|
+
help="✨ NEW · Browse and switch stored accounts.",
|
|
1226
1221
|
handler=SlashSession._cmd_accounts,
|
|
1227
1222
|
)
|
|
1228
1223
|
)
|
|
@@ -71,7 +71,11 @@ def serialize_guardrail_manager(manager: GuardrailManager) -> dict[str, Any]:
|
|
|
71
71
|
Returns:
|
|
72
72
|
A dictionary matching the agent_config.guardrails schema.
|
|
73
73
|
"""
|
|
74
|
-
|
|
74
|
+
try:
|
|
75
|
+
from glaip_sdk.guardrails import NemoGuardrailEngine, PhraseMatcherEngine # noqa: PLC0415
|
|
76
|
+
except ImportError:
|
|
77
|
+
enabled = getattr(manager, "enabled", True)
|
|
78
|
+
return {"enabled": enabled, "engines": []}
|
|
75
79
|
|
|
76
80
|
engines_config = []
|
|
77
81
|
|
|
@@ -81,9 +85,7 @@ def serialize_guardrail_manager(manager: GuardrailManager) -> dict[str, Any]:
|
|
|
81
85
|
engines_config.append({"type": "phrase_matcher", "config": _serialize_phrase_matcher(engine)})
|
|
82
86
|
elif isinstance(engine, NemoGuardrailEngine):
|
|
83
87
|
engines_config.append({"type": "nemo", "config": _serialize_nemo(engine)})
|
|
84
|
-
|
|
85
|
-
# Fallback for unknown engines
|
|
86
|
-
continue
|
|
88
|
+
# Unknown engines are skipped.
|
|
87
89
|
|
|
88
90
|
enabled = getattr(manager, "enabled", True)
|
|
89
91
|
return {"enabled": enabled, "engines": engines_config}
|
|
@@ -5,7 +5,7 @@ glaip_sdk/exceptions.py,sha256=iAChFClkytXRBLP0vZq1_YjoZxA9i4m4bW1gDLiGR1g,2321
|
|
|
5
5
|
glaip_sdk/icons.py,sha256=J5THz0ReAmDwIiIooh1_G3Le-mwTJyEjhJDdJ13KRxM,524
|
|
6
6
|
glaip_sdk/rich_components.py,sha256=44Z0V1ZQleVh9gUDGwRR5mriiYFnVGOhm7fFxZYbP8c,4052
|
|
7
7
|
glaip_sdk/agents/__init__.py,sha256=VfYov56edbWuySXFEbWJ_jLXgwnFzPk1KB-9-mfsUCc,776
|
|
8
|
-
glaip_sdk/agents/base.py,sha256=
|
|
8
|
+
glaip_sdk/agents/base.py,sha256=_VxiimZeeQ8Y6hhGyPUC_sOB3Wk_doZOpqt6T0EAjrA,51433
|
|
9
9
|
glaip_sdk/agents/component.py,sha256=3cLLCL_x5OTwcEJx0zdst6RTEXOoAS3cTMkYtAOQb6I,7636
|
|
10
10
|
glaip_sdk/cli/__init__.py,sha256=xCCfuF1Yc7mpCDcfhHZTX0vizvtrDSLeT8MJ3V7m5A0,156
|
|
11
11
|
glaip_sdk/cli/account_store.py,sha256=u_memecwEQssustZs2wYBrHbEmKUlDfmmL-zO1F3n3A,19034
|
|
@@ -79,7 +79,7 @@ glaip_sdk/cli/slash/accounts_shared.py,sha256=Mq5HxlI0YsVEQ0KKISWvyBZhzOFFWCzwRb
|
|
|
79
79
|
glaip_sdk/cli/slash/agent_session.py,sha256=tuVOme-NbEyr6rwJvsBEKZYWQmsaRf4piJeRvIGu0ns,11384
|
|
80
80
|
glaip_sdk/cli/slash/prompt.py,sha256=q4f1c2zr7ZMUeO6AgOBF2Nz4qgMOXrVPt6WzPRQMbAM,8501
|
|
81
81
|
glaip_sdk/cli/slash/remote_runs_controller.py,sha256=iLl4a-mu9QU7dcedgEILewPtDIVtFUJkbKGtcx1F66U,21445
|
|
82
|
-
glaip_sdk/cli/slash/session.py,sha256=
|
|
82
|
+
glaip_sdk/cli/slash/session.py,sha256=lWK4iCb4HGnHZf251kP_1iyH8J0BaTlwSs3XJWfYOuI,76146
|
|
83
83
|
glaip_sdk/cli/slash/tui/__init__.py,sha256=N0nRo_IGIQ3l5LikZTDrwbK5HX9nqYNzwpFeM9crJQg,1109
|
|
84
84
|
glaip_sdk/cli/slash/tui/accounts.tcss,sha256=5iVZZfS10CTJhnoZ9AFJejtj8nyQXH9xV7u9k8jSkGE,2411
|
|
85
85
|
glaip_sdk/cli/slash/tui/accounts_app.py,sha256=CFjAHV0JbTSMoMoCQ0CIGa_8C8xypjHgV-VLDji-uzk,73590
|
|
@@ -123,7 +123,7 @@ glaip_sdk/client/payloads/agent/requests.py,sha256=zmyKtR9UuUNwGHzInBHqeurrfrUss
|
|
|
123
123
|
glaip_sdk/client/payloads/agent/responses.py,sha256=1eRMI4JAIGqTB5zY_7D9ILQDRHPXR06U7JqHSmRp3Qs,1243
|
|
124
124
|
glaip_sdk/config/constants.py,sha256=AWxzOwy8QLv6wYSaOvv5xqAOb7ksgfMB2lkj0f0F1FM,1801
|
|
125
125
|
glaip_sdk/guardrails/__init__.py,sha256=C1gpL2himmv0FfAsR1ywuvBkwXP54-ziPeqqdAo207k,2677
|
|
126
|
-
glaip_sdk/guardrails/serializer.py,sha256=
|
|
126
|
+
glaip_sdk/guardrails/serializer.py,sha256=fh4H8GBxXkT5f2wc75bRbU56G1F6BNNgHFLA1UchaY0,2925
|
|
127
127
|
glaip_sdk/hitl/__init__.py,sha256=hi_SwW1oBimNnSFPo9Yc-mZWVPzpytlnDWNq2h1_fPo,1572
|
|
128
128
|
glaip_sdk/hitl/base.py,sha256=EUN2igzydlYZ6_qmHU46Gyk3Bk9uyalZkCJ06XMRKJ8,1484
|
|
129
129
|
glaip_sdk/hitl/callback.py,sha256=icKxxa_f8lxFQuXrZVoTt6baWivFL4a4YioWG_U_8k8,1336
|
|
@@ -218,8 +218,8 @@ glaip_sdk/utils/rendering/steps/format.py,sha256=Chnq7OBaj8XMeBntSBxrX5zSmrYeGcO
|
|
|
218
218
|
glaip_sdk/utils/rendering/steps/manager.py,sha256=BiBmTeQMQhjRMykgICXsXNYh1hGsss-fH9BIGVMWFi0,13194
|
|
219
219
|
glaip_sdk/utils/rendering/viewer/__init__.py,sha256=XrxmE2cMAozqrzo1jtDFm8HqNtvDcYi2mAhXLXn5CjI,457
|
|
220
220
|
glaip_sdk/utils/rendering/viewer/presenter.py,sha256=mlLMTjnyeyPVtsyrAbz1BJu9lFGQSlS-voZ-_Cuugv0,5725
|
|
221
|
-
glaip_sdk-0.7.
|
|
222
|
-
glaip_sdk-0.7.
|
|
223
|
-
glaip_sdk-0.7.
|
|
224
|
-
glaip_sdk-0.7.
|
|
225
|
-
glaip_sdk-0.7.
|
|
221
|
+
glaip_sdk-0.7.22.dist-info/METADATA,sha256=vVpCBHSCsGJSOd1HX5n2gbxEv0TpGt8RRtaVQAlm1tM,8690
|
|
222
|
+
glaip_sdk-0.7.22.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
223
|
+
glaip_sdk-0.7.22.dist-info/entry_points.txt,sha256=NkhO6FfgX9Zrjn63GuKphf-dLw7KNJvucAcXc7P3aMk,54
|
|
224
|
+
glaip_sdk-0.7.22.dist-info/top_level.txt,sha256=td7yXttiYX2s94-4wFhv-5KdT0rSZ-pnJRSire341hw,10
|
|
225
|
+
glaip_sdk-0.7.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|