glaip-sdk 0.6.12__py3-none-any.whl → 0.6.15__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.
Files changed (156) hide show
  1. glaip_sdk/__init__.py +42 -5
  2. {glaip_sdk-0.6.12.dist-info → glaip_sdk-0.6.15.dist-info}/METADATA +32 -37
  3. glaip_sdk-0.6.15.dist-info/RECORD +12 -0
  4. {glaip_sdk-0.6.12.dist-info → glaip_sdk-0.6.15.dist-info}/WHEEL +2 -1
  5. glaip_sdk-0.6.15.dist-info/entry_points.txt +2 -0
  6. glaip_sdk-0.6.15.dist-info/top_level.txt +1 -0
  7. glaip_sdk/agents/__init__.py +0 -27
  8. glaip_sdk/agents/base.py +0 -1191
  9. glaip_sdk/cli/__init__.py +0 -9
  10. glaip_sdk/cli/account_store.py +0 -540
  11. glaip_sdk/cli/agent_config.py +0 -78
  12. glaip_sdk/cli/auth.py +0 -699
  13. glaip_sdk/cli/commands/__init__.py +0 -5
  14. glaip_sdk/cli/commands/accounts.py +0 -746
  15. glaip_sdk/cli/commands/agents.py +0 -1509
  16. glaip_sdk/cli/commands/common_config.py +0 -101
  17. glaip_sdk/cli/commands/configure.py +0 -896
  18. glaip_sdk/cli/commands/mcps.py +0 -1356
  19. glaip_sdk/cli/commands/models.py +0 -69
  20. glaip_sdk/cli/commands/tools.py +0 -576
  21. glaip_sdk/cli/commands/transcripts.py +0 -755
  22. glaip_sdk/cli/commands/update.py +0 -61
  23. glaip_sdk/cli/config.py +0 -95
  24. glaip_sdk/cli/constants.py +0 -38
  25. glaip_sdk/cli/context.py +0 -150
  26. glaip_sdk/cli/core/__init__.py +0 -79
  27. glaip_sdk/cli/core/context.py +0 -124
  28. glaip_sdk/cli/core/output.py +0 -846
  29. glaip_sdk/cli/core/prompting.py +0 -649
  30. glaip_sdk/cli/core/rendering.py +0 -187
  31. glaip_sdk/cli/display.py +0 -355
  32. glaip_sdk/cli/hints.py +0 -57
  33. glaip_sdk/cli/io.py +0 -112
  34. glaip_sdk/cli/main.py +0 -604
  35. glaip_sdk/cli/masking.py +0 -136
  36. glaip_sdk/cli/mcp_validators.py +0 -287
  37. glaip_sdk/cli/pager.py +0 -266
  38. glaip_sdk/cli/parsers/__init__.py +0 -7
  39. glaip_sdk/cli/parsers/json_input.py +0 -177
  40. glaip_sdk/cli/resolution.py +0 -67
  41. glaip_sdk/cli/rich_helpers.py +0 -27
  42. glaip_sdk/cli/slash/__init__.py +0 -15
  43. glaip_sdk/cli/slash/accounts_controller.py +0 -578
  44. glaip_sdk/cli/slash/accounts_shared.py +0 -75
  45. glaip_sdk/cli/slash/agent_session.py +0 -285
  46. glaip_sdk/cli/slash/prompt.py +0 -256
  47. glaip_sdk/cli/slash/remote_runs_controller.py +0 -566
  48. glaip_sdk/cli/slash/session.py +0 -1708
  49. glaip_sdk/cli/slash/tui/__init__.py +0 -9
  50. glaip_sdk/cli/slash/tui/accounts_app.py +0 -876
  51. glaip_sdk/cli/slash/tui/background_tasks.py +0 -72
  52. glaip_sdk/cli/slash/tui/loading.py +0 -58
  53. glaip_sdk/cli/slash/tui/remote_runs_app.py +0 -628
  54. glaip_sdk/cli/transcript/__init__.py +0 -31
  55. glaip_sdk/cli/transcript/cache.py +0 -536
  56. glaip_sdk/cli/transcript/capture.py +0 -329
  57. glaip_sdk/cli/transcript/export.py +0 -38
  58. glaip_sdk/cli/transcript/history.py +0 -815
  59. glaip_sdk/cli/transcript/launcher.py +0 -77
  60. glaip_sdk/cli/transcript/viewer.py +0 -374
  61. glaip_sdk/cli/update_notifier.py +0 -290
  62. glaip_sdk/cli/utils.py +0 -263
  63. glaip_sdk/cli/validators.py +0 -238
  64. glaip_sdk/client/__init__.py +0 -11
  65. glaip_sdk/client/_agent_payloads.py +0 -520
  66. glaip_sdk/client/agent_runs.py +0 -147
  67. glaip_sdk/client/agents.py +0 -1335
  68. glaip_sdk/client/base.py +0 -502
  69. glaip_sdk/client/main.py +0 -249
  70. glaip_sdk/client/mcps.py +0 -370
  71. glaip_sdk/client/run_rendering.py +0 -700
  72. glaip_sdk/client/shared.py +0 -21
  73. glaip_sdk/client/tools.py +0 -661
  74. glaip_sdk/client/validators.py +0 -198
  75. glaip_sdk/config/constants.py +0 -52
  76. glaip_sdk/mcps/__init__.py +0 -21
  77. glaip_sdk/mcps/base.py +0 -345
  78. glaip_sdk/models/__init__.py +0 -90
  79. glaip_sdk/models/agent.py +0 -47
  80. glaip_sdk/models/agent_runs.py +0 -116
  81. glaip_sdk/models/common.py +0 -42
  82. glaip_sdk/models/mcp.py +0 -33
  83. glaip_sdk/models/tool.py +0 -33
  84. glaip_sdk/payload_schemas/__init__.py +0 -7
  85. glaip_sdk/payload_schemas/agent.py +0 -85
  86. glaip_sdk/registry/__init__.py +0 -55
  87. glaip_sdk/registry/agent.py +0 -164
  88. glaip_sdk/registry/base.py +0 -139
  89. glaip_sdk/registry/mcp.py +0 -253
  90. glaip_sdk/registry/tool.py +0 -232
  91. glaip_sdk/runner/__init__.py +0 -59
  92. glaip_sdk/runner/base.py +0 -84
  93. glaip_sdk/runner/deps.py +0 -115
  94. glaip_sdk/runner/langgraph.py +0 -782
  95. glaip_sdk/runner/mcp_adapter/__init__.py +0 -13
  96. glaip_sdk/runner/mcp_adapter/base_mcp_adapter.py +0 -43
  97. glaip_sdk/runner/mcp_adapter/langchain_mcp_adapter.py +0 -257
  98. glaip_sdk/runner/mcp_adapter/mcp_config_builder.py +0 -95
  99. glaip_sdk/runner/tool_adapter/__init__.py +0 -18
  100. glaip_sdk/runner/tool_adapter/base_tool_adapter.py +0 -44
  101. glaip_sdk/runner/tool_adapter/langchain_tool_adapter.py +0 -219
  102. glaip_sdk/tools/__init__.py +0 -22
  103. glaip_sdk/tools/base.py +0 -435
  104. glaip_sdk/utils/__init__.py +0 -86
  105. glaip_sdk/utils/a2a/__init__.py +0 -34
  106. glaip_sdk/utils/a2a/event_processor.py +0 -188
  107. glaip_sdk/utils/agent_config.py +0 -194
  108. glaip_sdk/utils/bundler.py +0 -267
  109. glaip_sdk/utils/client.py +0 -111
  110. glaip_sdk/utils/client_utils.py +0 -486
  111. glaip_sdk/utils/datetime_helpers.py +0 -58
  112. glaip_sdk/utils/discovery.py +0 -78
  113. glaip_sdk/utils/display.py +0 -135
  114. glaip_sdk/utils/export.py +0 -143
  115. glaip_sdk/utils/general.py +0 -61
  116. glaip_sdk/utils/import_export.py +0 -168
  117. glaip_sdk/utils/import_resolver.py +0 -492
  118. glaip_sdk/utils/instructions.py +0 -101
  119. glaip_sdk/utils/rendering/__init__.py +0 -115
  120. glaip_sdk/utils/rendering/formatting.py +0 -264
  121. glaip_sdk/utils/rendering/layout/__init__.py +0 -64
  122. glaip_sdk/utils/rendering/layout/panels.py +0 -156
  123. glaip_sdk/utils/rendering/layout/progress.py +0 -202
  124. glaip_sdk/utils/rendering/layout/summary.py +0 -74
  125. glaip_sdk/utils/rendering/layout/transcript.py +0 -606
  126. glaip_sdk/utils/rendering/models.py +0 -85
  127. glaip_sdk/utils/rendering/renderer/__init__.py +0 -55
  128. glaip_sdk/utils/rendering/renderer/base.py +0 -1024
  129. glaip_sdk/utils/rendering/renderer/config.py +0 -27
  130. glaip_sdk/utils/rendering/renderer/console.py +0 -55
  131. glaip_sdk/utils/rendering/renderer/debug.py +0 -178
  132. glaip_sdk/utils/rendering/renderer/factory.py +0 -138
  133. glaip_sdk/utils/rendering/renderer/stream.py +0 -202
  134. glaip_sdk/utils/rendering/renderer/summary_window.py +0 -79
  135. glaip_sdk/utils/rendering/renderer/thinking.py +0 -273
  136. glaip_sdk/utils/rendering/renderer/toggle.py +0 -182
  137. glaip_sdk/utils/rendering/renderer/tool_panels.py +0 -442
  138. glaip_sdk/utils/rendering/renderer/transcript_mode.py +0 -162
  139. glaip_sdk/utils/rendering/state.py +0 -204
  140. glaip_sdk/utils/rendering/step_tree_state.py +0 -100
  141. glaip_sdk/utils/rendering/steps/__init__.py +0 -34
  142. glaip_sdk/utils/rendering/steps/event_processor.py +0 -778
  143. glaip_sdk/utils/rendering/steps/format.py +0 -176
  144. glaip_sdk/utils/rendering/steps/manager.py +0 -387
  145. glaip_sdk/utils/rendering/timing.py +0 -36
  146. glaip_sdk/utils/rendering/viewer/__init__.py +0 -21
  147. glaip_sdk/utils/rendering/viewer/presenter.py +0 -184
  148. glaip_sdk/utils/resource_refs.py +0 -195
  149. glaip_sdk/utils/run_renderer.py +0 -41
  150. glaip_sdk/utils/runtime_config.py +0 -425
  151. glaip_sdk/utils/serialization.py +0 -424
  152. glaip_sdk/utils/sync.py +0 -142
  153. glaip_sdk/utils/tool_detection.py +0 -33
  154. glaip_sdk/utils/validation.py +0 -264
  155. glaip_sdk-0.6.12.dist-info/RECORD +0 -159
  156. glaip_sdk-0.6.12.dist-info/entry_points.txt +0 -3
glaip_sdk/__init__.py CHANGED
@@ -4,12 +4,49 @@ Authors:
4
4
  Raymond Christopher (raymond.christopher@gdplabs.id)
5
5
  """
6
6
 
7
+ from __future__ import annotations
8
+
9
+ import importlib
10
+ from typing import TYPE_CHECKING, Any
11
+
7
12
  from glaip_sdk._version import __version__
8
- from glaip_sdk.client import Client
9
- from glaip_sdk.exceptions import AIPError
10
- from glaip_sdk.agents import Agent
11
- from glaip_sdk.tools import Tool
12
- from glaip_sdk.mcps import MCP
13
13
 
14
+ if TYPE_CHECKING: # pragma: no cover - import only for type checking
15
+ from glaip_sdk.agents import Agent
16
+ from glaip_sdk.client import Client
17
+ from glaip_sdk.exceptions import AIPError
18
+ from glaip_sdk.mcps import MCP
19
+ from glaip_sdk.tools import Tool
14
20
 
15
21
  __all__ = ["Client", "Agent", "Tool", "MCP", "AIPError", "__version__"]
22
+
23
+ _LAZY_IMPORTS: dict[str, tuple[str, str]] = {
24
+ "Client": ("glaip_sdk.client", "Client"),
25
+ "Agent": ("glaip_sdk.agents", "Agent"),
26
+ "Tool": ("glaip_sdk.tools", "Tool"),
27
+ "MCP": ("glaip_sdk.mcps", "MCP"),
28
+ "AIPError": ("glaip_sdk.exceptions", "AIPError"),
29
+ }
30
+
31
+
32
+ def __getattr__(name: str) -> Any:
33
+ """Lazy attribute access for public SDK symbols to defer heavy imports."""
34
+ if name == "__version__":
35
+ # Import __version__ when accessed via __getattr__
36
+ # This ensures coverage even if __version__ was removed from __dict__ for testing
37
+ from glaip_sdk._version import __version__ as version # noqa: PLC0415
38
+
39
+ globals()["__version__"] = version
40
+ return version
41
+ if name in _LAZY_IMPORTS:
42
+ module_path, attr_name = _LAZY_IMPORTS[name]
43
+ module = importlib.import_module(module_path)
44
+ attr = getattr(module, attr_name)
45
+ globals()[name] = attr
46
+ return attr
47
+ raise AttributeError(f"module 'glaip_sdk' has no attribute {name!r}")
48
+
49
+
50
+ def __dir__() -> list[str]:
51
+ """Return module attributes for dir()."""
52
+ return sorted(__all__)
@@ -1,44 +1,40 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: glaip-sdk
3
- Version: 0.6.12
3
+ Version: 0.6.15
4
4
  Summary: Python SDK for GL AIP (GDP Labs AI Agent Package) - Simplified CLI Design
5
+ Author-email: Raymond Christopher <raymond.christopher@gdplabs.id>
5
6
  License: MIT
6
- Author: Raymond Christopher
7
- Author-email: raymond.christopher@gdplabs.id
8
- Requires-Python: >=3.11,<3.13
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Provides-Extra: dev
7
+ Requires-Python: <3.13,>=3.11
8
+ Description-Content-Type: text/markdown
9
+ Requires-Dist: httpx>=0.28.1
10
+ Requires-Dist: pydantic>=2.0.0
11
+ Requires-Dist: pyyaml>=6.0.0
12
+ Requires-Dist: python-dotenv<2.0.0,>=1.1.1
13
+ Requires-Dist: readchar<5.0.0,>=4.2.1
14
+ Requires-Dist: questionary<3.0.0,>=2.1.0
15
+ Requires-Dist: click<8.3.0,>=8.2.0
16
+ Requires-Dist: rich>=13.0.0
17
+ Requires-Dist: packaging>=23.2
18
+ Requires-Dist: textual>=0.52.0
19
+ Requires-Dist: gllm-core-binary>=0.1.0
20
+ Requires-Dist: langchain-core>=0.3.0
21
+ Requires-Dist: gllm-tools-binary>=0.1.3
22
+ Provides-Extra: local
23
+ Requires-Dist: aip-agents-binary[local]>=0.5.11; extra == "local"
14
24
  Provides-Extra: memory
25
+ Requires-Dist: aip-agents-binary[memory]>=0.5.11; extra == "memory"
15
26
  Provides-Extra: privacy
16
- Requires-Dist: aip-agents-binary (>=0.5.4)
17
- Requires-Dist: aip-agents[memory] (>=0.5.4) ; (python_version >= "3.11" and python_version < "3.13") and (extra == "memory")
18
- Requires-Dist: aip-agents[privacy] (>=0.5.4) ; (python_version >= "3.11" and python_version < "3.13") and (extra == "privacy")
19
- Requires-Dist: click (>=8.2.0,<8.3.0)
20
- Requires-Dist: en-core-web-sm ; extra == "privacy"
21
- Requires-Dist: gllm-core-binary (>=0.1.0)
22
- Requires-Dist: gllm-tools-binary (>=0.1.3)
23
- Requires-Dist: httpx (>=0.28.1)
24
- Requires-Dist: langchain-core (>=0.3.0)
25
- Requires-Dist: packaging (>=23.2)
26
- Requires-Dist: pre-commit (>=4.3.0) ; extra == "dev"
27
- Requires-Dist: pydantic (>=2.0.0)
28
- Requires-Dist: pytest (>=7.0.0) ; extra == "dev"
29
- Requires-Dist: pytest-asyncio (>=0.23.6) ; extra == "dev"
30
- Requires-Dist: pytest-cov (>=4.0.0) ; extra == "dev"
31
- Requires-Dist: pytest-dotenv (>=0.5.2) ; extra == "dev"
32
- Requires-Dist: pytest-timeout (>=2.3.1) ; extra == "dev"
33
- Requires-Dist: pytest-xdist (>=3.8.0) ; extra == "dev"
34
- Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
35
- Requires-Dist: pyyaml (>=6.0.0)
36
- Requires-Dist: questionary (>=2.1.0,<3.0.0)
37
- Requires-Dist: readchar (>=4.2.1,<5.0.0)
38
- Requires-Dist: rich (>=13.0.0)
39
- Requires-Dist: ruff (>=0.14.0) ; extra == "dev"
40
- Requires-Dist: textual (>=0.52.0)
41
- Description-Content-Type: text/markdown
27
+ Requires-Dist: aip-agents-binary[privacy]>=0.5.11; extra == "privacy"
28
+ Requires-Dist: en-core-web-sm; extra == "privacy"
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
31
+ Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
32
+ Requires-Dist: pytest-dotenv>=0.5.2; extra == "dev"
33
+ Requires-Dist: pre-commit>=4.3.0; extra == "dev"
34
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
35
+ Requires-Dist: pytest-asyncio>=0.23.6; extra == "dev"
36
+ Requires-Dist: pytest-timeout>=2.3.1; extra == "dev"
37
+ Requires-Dist: ruff>=0.14.0; extra == "dev"
42
38
 
43
39
  # GL AIP — GDP Labs AI Agents Package
44
40
 
@@ -231,4 +227,3 @@ The script:
231
227
  - Resets module metadata afterwards so your environment remains untouched.
232
228
 
233
229
  You should see the Rich banner re-render with the mocked version (and optional marker) at the end of the run.
234
-
@@ -0,0 +1,12 @@
1
+ glaip_sdk/__init__.py,sha256=YpePGKbCjwqCwvb8yig8cc64z876ch1oSlTlu-CiWfs,1722
2
+ glaip_sdk/_version.py,sha256=5CHGCxx_36fgmMWuEx6jJ2CzzM-i9eBFyQWFwBi23XE,2259
3
+ glaip_sdk/branding.py,sha256=tLqYCIHMkUf8p2smpuAGNptwaKUN38G4mlh0A0DOl_w,7823
4
+ glaip_sdk/exceptions.py,sha256=iAChFClkytXRBLP0vZq1_YjoZxA9i4m4bW1gDLiGR1g,2321
5
+ glaip_sdk/icons.py,sha256=J5THz0ReAmDwIiIooh1_G3Le-mwTJyEjhJDdJ13KRxM,524
6
+ glaip_sdk/rich_components.py,sha256=44Z0V1ZQleVh9gUDGwRR5mriiYFnVGOhm7fFxZYbP8c,4052
7
+ glaip_sdk/cli/slash/tui/accounts.tcss,sha256=xuQjQ0tBM08K1DUv6lI5Sfu1zgZzQxg60c9-RlEWB4s,1160
8
+ glaip_sdk-0.6.15.dist-info/METADATA,sha256=2h_ekFsZZT54-DLAXp1MjllxZds5xKafTb9psAYKOXY,7622
9
+ glaip_sdk-0.6.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
10
+ glaip_sdk-0.6.15.dist-info/entry_points.txt,sha256=65vNPUggyYnVGhuw7RhNJ8Fp2jygTcX0yxJBcBY3iLU,48
11
+ glaip_sdk-0.6.15.dist-info/top_level.txt,sha256=td7yXttiYX2s94-4wFhv-5KdT0rSZ-pnJRSire341hw,10
12
+ glaip_sdk-0.6.15.dist-info/RECORD,,
@@ -1,4 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ aip = glaip_sdk.cli.main:main
@@ -0,0 +1 @@
1
+ glaip_sdk
@@ -1,27 +0,0 @@
1
- """Agent package for GL AIP platform.
2
-
3
- This package provides the Agent class and AgentRegistry for deploying
4
- and managing AI agents on the GL AIP platform.
5
-
6
- Example:
7
- >>> from glaip_sdk.agents import Agent, get_agent_registry
8
- >>> agent = Agent(name="my_agent", instruction="Be helpful")
9
- >>> deployed = agent.deploy()
10
- """
11
-
12
- from __future__ import annotations
13
-
14
- from glaip_sdk.agents.base import Agent
15
- from glaip_sdk.registry.agent import AgentRegistry, get_agent_registry
16
- from glaip_sdk.registry.mcp import MCPRegistry, get_mcp_registry
17
- from glaip_sdk.registry.tool import ToolRegistry, get_tool_registry
18
-
19
- __all__ = [
20
- "Agent",
21
- "AgentRegistry",
22
- "get_agent_registry",
23
- "MCPRegistry",
24
- "get_mcp_registry",
25
- "ToolRegistry",
26
- "get_tool_registry",
27
- ]