glaip-sdk 0.6.26__py3-none-any.whl → 0.7.1__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.
@@ -1,52 +0,0 @@
1
- """Backward-compatible shim for agent payloads.
2
-
3
- This module provides backward compatibility for imports from glaip_sdk.client._agent_payloads.
4
- New code should import from glaip_sdk.client.payloads.agent package directly.
5
-
6
- This file contains code that is duplicated in glaip_sdk.client.payloads.agent.__init__
7
- for backward compatibility. The duplication is intentional.
8
-
9
- Authors:
10
- Raymond Christopher (raymond.christopher@gdplabs.id)
11
- """
12
-
13
- # pylint: disable=duplicate-code
14
- import warnings
15
-
16
- _warned = False
17
-
18
-
19
- def _warn_deprecated_import() -> None:
20
- """Emit deprecation warning for importing from _agent_payloads.py shim."""
21
- global _warned
22
- if not _warned:
23
- warnings.warn(
24
- "Importing from glaip_sdk.client._agent_payloads is deprecated. "
25
- "Import from glaip_sdk.client.payloads.agent package directly instead.",
26
- DeprecationWarning,
27
- stacklevel=3,
28
- )
29
- _warned = True
30
-
31
-
32
- # Import from new package structure
33
- from glaip_sdk.client.payloads.agent import ( # noqa: E402
34
- AgentCreateRequest,
35
- AgentListParams,
36
- AgentListResult,
37
- AgentUpdateRequest,
38
- merge_payload_fields,
39
- resolve_language_model_fields,
40
- )
41
-
42
- _warn_deprecated_import()
43
-
44
- # Re-export everything
45
- __all__ = [
46
- "AgentCreateRequest",
47
- "AgentListParams",
48
- "AgentListResult",
49
- "AgentUpdateRequest",
50
- "merge_payload_fields",
51
- "resolve_language_model_fields",
52
- ]