glaip-sdk 0.0.5__py3-none-any.whl → 0.0.6a0__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/__init__.py +1 -1
- glaip_sdk/branding.py +3 -2
- glaip_sdk/cli/commands/__init__.py +1 -1
- glaip_sdk/cli/commands/agents.py +444 -268
- glaip_sdk/cli/commands/configure.py +12 -11
- glaip_sdk/cli/commands/mcps.py +28 -16
- glaip_sdk/cli/commands/models.py +5 -3
- glaip_sdk/cli/commands/tools.py +109 -102
- glaip_sdk/cli/display.py +38 -16
- glaip_sdk/cli/io.py +1 -1
- glaip_sdk/cli/main.py +26 -5
- glaip_sdk/cli/resolution.py +5 -4
- glaip_sdk/cli/utils.py +376 -157
- glaip_sdk/cli/validators.py +7 -2
- glaip_sdk/client/agents.py +184 -89
- glaip_sdk/client/base.py +24 -13
- glaip_sdk/client/validators.py +154 -94
- glaip_sdk/config/constants.py +0 -2
- glaip_sdk/models.py +4 -4
- glaip_sdk/utils/__init__.py +7 -7
- glaip_sdk/utils/client_utils.py +144 -78
- glaip_sdk/utils/display.py +4 -2
- glaip_sdk/utils/general.py +8 -6
- glaip_sdk/utils/import_export.py +55 -24
- glaip_sdk/utils/rendering/formatting.py +12 -6
- glaip_sdk/utils/rendering/models.py +1 -1
- glaip_sdk/utils/rendering/renderer/base.py +412 -248
- glaip_sdk/utils/rendering/renderer/console.py +6 -5
- glaip_sdk/utils/rendering/renderer/debug.py +94 -52
- glaip_sdk/utils/rendering/renderer/stream.py +93 -48
- glaip_sdk/utils/rendering/steps.py +103 -39
- glaip_sdk/utils/rich_utils.py +1 -1
- glaip_sdk/utils/run_renderer.py +1 -1
- glaip_sdk/utils/serialization.py +3 -1
- glaip_sdk/utils/validation.py +2 -2
- glaip_sdk-0.0.6a0.dist-info/METADATA +183 -0
- glaip_sdk-0.0.6a0.dist-info/RECORD +55 -0
- {glaip_sdk-0.0.5.dist-info → glaip_sdk-0.0.6a0.dist-info}/WHEEL +1 -1
- glaip_sdk-0.0.6a0.dist-info/entry_points.txt +3 -0
- glaip_sdk-0.0.5.dist-info/METADATA +0 -645
- glaip_sdk-0.0.5.dist-info/RECORD +0 -55
- glaip_sdk-0.0.5.dist-info/entry_points.txt +0 -2
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: glaip-sdk
|
|
3
|
+
Version: 0.0.6a0
|
|
4
|
+
Summary: Python SDK for GL AIP (GDP Labs AI Agent Package) - Simplified CLI Design
|
|
5
|
+
License: MIT
|
|
6
|
+
Author: Raymond Christopher
|
|
7
|
+
Author-email: raymond.christopher@gdplabs.id
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Requires-Dist: click (>=8.2.0)
|
|
15
|
+
Requires-Dist: httpx (>=0.28.1)
|
|
16
|
+
Requires-Dist: pydantic (>=2.0.0)
|
|
17
|
+
Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
|
|
18
|
+
Requires-Dist: pyyaml (>=6.0.0)
|
|
19
|
+
Requires-Dist: questionary (>=2.1.0,<3.0.0)
|
|
20
|
+
Requires-Dist: readchar (>=4.2.1,<5.0.0)
|
|
21
|
+
Requires-Dist: rich (>=13.0.0)
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# GL AIP SDK — GDP Labs AI Agents Package
|
|
25
|
+
|
|
26
|
+
[](https://www.python.org/downloads/)
|
|
27
|
+
[](https://github.com/psf/black)
|
|
28
|
+
|
|
29
|
+
GL stands for **GDP Labs**—GL AIP is our AI Agents Package for building, running, and operating agents.
|
|
30
|
+
|
|
31
|
+
> **Python SDK and CLI for GL AIP - Connect, configure, and manage AI agents on the GDP Labs AI Agents Package.**
|
|
32
|
+
|
|
33
|
+
## 🚀 Quick Start
|
|
34
|
+
|
|
35
|
+
### Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Using pip (recommended)
|
|
39
|
+
pip install --upgrade glaip-sdk
|
|
40
|
+
|
|
41
|
+
# Using uv (fast alternative)
|
|
42
|
+
uv tool install glaip-sdk
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Requirements**: Python 3.10+
|
|
46
|
+
|
|
47
|
+
## 🐍 Hello World - Python SDK
|
|
48
|
+
|
|
49
|
+
Perfect for building applications and integrations.
|
|
50
|
+
|
|
51
|
+
### Step 1: Environment Setup
|
|
52
|
+
|
|
53
|
+
Create a `.env` file:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# .env
|
|
57
|
+
AIP_API_URL=https://your-gl-aip-instance.com
|
|
58
|
+
AIP_API_KEY=your-api-key
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Step 2: Basic Python Script
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
# hello_world.py
|
|
65
|
+
from glaip_sdk import Client
|
|
66
|
+
import os
|
|
67
|
+
from dotenv import load_dotenv
|
|
68
|
+
|
|
69
|
+
# Load environment variables
|
|
70
|
+
load_dotenv()
|
|
71
|
+
|
|
72
|
+
# Initialize client
|
|
73
|
+
client = Client()
|
|
74
|
+
|
|
75
|
+
# Create a simple agent
|
|
76
|
+
agent = client.agents.create(
|
|
77
|
+
name="hello-sdk",
|
|
78
|
+
instruction="You are a helpful assistant who responds clearly and concisely."
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# Run the agent
|
|
82
|
+
result = agent.run("Hello world, what's 2+2?")
|
|
83
|
+
|
|
84
|
+
print(f"Agent response: {result}")
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 3: Run Your Script
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
python hello_world.py
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Step 4: Advanced Example with Streaming
|
|
94
|
+
|
|
95
|
+
```python
|
|
96
|
+
# streaming_example.py
|
|
97
|
+
from glaip_sdk import Client
|
|
98
|
+
import os
|
|
99
|
+
from dotenv import load_dotenv
|
|
100
|
+
|
|
101
|
+
load_dotenv()
|
|
102
|
+
client = Client()
|
|
103
|
+
|
|
104
|
+
# Create agent with streaming
|
|
105
|
+
agent = client.agents.create(
|
|
106
|
+
name="streaming-agent",
|
|
107
|
+
instruction="You are a helpful assistant. Provide detailed responses."
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
# Stream the response
|
|
111
|
+
print("Streaming response:")
|
|
112
|
+
client.agents.run_agent(
|
|
113
|
+
agent.id,
|
|
114
|
+
"Explain quantum computing in simple terms",
|
|
115
|
+
verbose=True,
|
|
116
|
+
)
|
|
117
|
+
print("--- Stream complete ---")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
🎉 **SDK Success!** You're now ready to build AI-powered applications with Python.
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 💻 Hello World - CLI
|
|
125
|
+
|
|
126
|
+
Perfect for quick testing and command-line workflows.
|
|
127
|
+
|
|
128
|
+
### Step 1: Configure Connection
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
# Interactive setup (recommended)
|
|
132
|
+
aip configure
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Or set environment variables:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
export AIP_API_URL="https://your-gl-aip-instance.com"
|
|
139
|
+
export AIP_API_KEY="your-api-key"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Step 2: Verify Connection
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
aip status
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Step 3: Create & Run Your First Agent
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Create a simple agent
|
|
152
|
+
aip agents create --name "hello-cli" --instruction "You are a helpful assistant"
|
|
153
|
+
|
|
154
|
+
# List agents to get the ID
|
|
155
|
+
aip agents list
|
|
156
|
+
|
|
157
|
+
# Run the agent with input
|
|
158
|
+
aip agents run <AGENT_ID> --input "Hello world, what's the weather like?"
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
🎉 **CLI Success!** You're now ready to use the CLI for AI agent workflows.
|
|
162
|
+
|
|
163
|
+
## ✨ Key Features
|
|
164
|
+
|
|
165
|
+
- **🤖 Agent Management**: Create, run, and orchestrate AI agents with custom instructions and streaming
|
|
166
|
+
- **🧠 Language Models**: Choose from multiple AI models per agent with manual PII tag mapping
|
|
167
|
+
- **🛠️ Tool Integration**: Extend agents with custom Python tools and script management
|
|
168
|
+
- **🔌 MCP Support**: Connect external services through Model Context Protocols with tool discovery
|
|
169
|
+
- **🔄 Multi-Agent Patterns**: Hierarchical, parallel, sequential, router, and aggregator patterns
|
|
170
|
+
- **💻 Modern CLI**: Rich terminal interface with fuzzy search and multiple output formats
|
|
171
|
+
|
|
172
|
+
## 📚 Documentation
|
|
173
|
+
|
|
174
|
+
📖 **[Complete Documentation](https://gdplabs.gitbook.io/ai-agents-package)** - Visit our GitBook for comprehensive guides, tutorials, and API reference.
|
|
175
|
+
|
|
176
|
+
Quick links:
|
|
177
|
+
|
|
178
|
+
- **[Quick Start Guide](./docs/get-started/quick-start-guide.md)**: Get your first agent running in 5 minutes
|
|
179
|
+
- **[Agent Management](./docs/guides/agents-guide.md)**: Complete agent lifecycle management
|
|
180
|
+
- **[Custom Tools](./docs/guides/tools-guide.md)**: Build and integrate custom tools
|
|
181
|
+
- **[MCP Integration](./docs/guides/mcps-guide.md)**: Connect external services
|
|
182
|
+
- **[API Reference](./docs/reference/python-sdk-reference.md)**: Complete SDK reference
|
|
183
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
glaip_sdk/__init__.py,sha256=FD-oTyFUKsTB9xTuGiqvkhuFXfeZ-TspjkeXERglha8,370
|
|
2
|
+
glaip_sdk/_version.py,sha256=Rb9YLDvK1DXCVFrjlLDbtucpwKh_PyCnmZ-ia9VX3Cc,1650
|
|
3
|
+
glaip_sdk/branding.py,sha256=d-yGCYbUcdOlEH87E5PmGIyj6uBywsnf-Yd7zs__mUs,5371
|
|
4
|
+
glaip_sdk/cli/__init__.py,sha256=xCCfuF1Yc7mpCDcfhHZTX0vizvtrDSLeT8MJ3V7m5A0,156
|
|
5
|
+
glaip_sdk/cli/agent_config.py,sha256=VHjebw68wAdhGUzYdPH8qz10oADZPRgUQcPW6F7iHIU,2421
|
|
6
|
+
glaip_sdk/cli/commands/__init__.py,sha256=x0CZlZbZHoHvuzfoTWIyEch6WmNnbPzxajrox6riYp0,173
|
|
7
|
+
glaip_sdk/cli/commands/agents.py,sha256=cYkNAFDFTH5EDP4KTcJ8gEdLDxzEMI0OZQDkeyNs-TY,37378
|
|
8
|
+
glaip_sdk/cli/commands/configure.py,sha256=SQziXzUE4-6G6Prd6rPizV1kFN9uCuUjDhfVAn8cAWU,7469
|
|
9
|
+
glaip_sdk/cli/commands/mcps.py,sha256=USSjitNOmlLw8Jgt0WqnhnMBmuuoQRXiJjARD9qS_l0,12868
|
|
10
|
+
glaip_sdk/cli/commands/models.py,sha256=lHEVuXT8Sq239C_2LneV8PimVZSm9DXJKajdSVO-N50,1496
|
|
11
|
+
glaip_sdk/cli/commands/tools.py,sha256=ubzSKornMTCVkCvIvMPvWj2vOwGZzIyKysoR5mL20PY,16817
|
|
12
|
+
glaip_sdk/cli/display.py,sha256=vFSj385MuesgyUJ7UnXIg6a9N9gL_XJzXjUnFUB6Ufs,8649
|
|
13
|
+
glaip_sdk/cli/io.py,sha256=GPkw3pQMLBGoD5GH-KlbKpNRlVWFZOXHE17F7V3kQsI,3343
|
|
14
|
+
glaip_sdk/cli/main.py,sha256=Z1uMlmU72FFXC2ushNTWpemhQWKbIJNFJauH6FOCPqA,11059
|
|
15
|
+
glaip_sdk/cli/resolution.py,sha256=4PEW_KZfN13k7GGEWpx3dOTywE_d-ujSlUhO4liov5w,1673
|
|
16
|
+
glaip_sdk/cli/utils.py,sha256=bm4NqTlHsNXzZbFjXmHJMoV0qv9JPUMVSee47cH3bVw,36667
|
|
17
|
+
glaip_sdk/cli/validators.py,sha256=USbBgY86AwuDHO-Q_g8g7hu-ot4NgITBsWjTWIl62ms,5569
|
|
18
|
+
glaip_sdk/client/__init__.py,sha256=nYLXfBVTTWwKjP0e63iumPYO4k5FifwWaELQPaPIKIg,188
|
|
19
|
+
glaip_sdk/client/agents.py,sha256=SRcj_fvMWjN_AOpOv8iVyF0LuiZqWMidW9pg8O2J3Xc,33892
|
|
20
|
+
glaip_sdk/client/base.py,sha256=rn5qPsi-1UzRy2So0Uffg9CBnVY2QUld4suNgSHET_I,12409
|
|
21
|
+
glaip_sdk/client/main.py,sha256=LlvYHP7-Hy7Eq1ep1kfk337K-Oue5SdKWJpqYfX9eXY,7993
|
|
22
|
+
glaip_sdk/client/mcps.py,sha256=yxwrAtztElYDEGhp2EHRpeYUxNsOlTLTqtw9jSKJmcI,8936
|
|
23
|
+
glaip_sdk/client/tools.py,sha256=ZvRRbXHvd33XUKqmKAIFSvz_IO-1glTvJNyxOeivK9Q,15962
|
|
24
|
+
glaip_sdk/client/validators.py,sha256=NtPsWjQLjj25LiUnmR-WuS8lL5p4MVRaYT9UVRmj9bo,8809
|
|
25
|
+
glaip_sdk/config/constants.py,sha256=NgmPqJmpK1wgEds7T-_B6CDUBsvcsmIy27ms-Z8GFgY,902
|
|
26
|
+
glaip_sdk/exceptions.py,sha256=QTVtwxRHMN4e8gGn0icXphZvdugiRvcSrlMYylwGsDc,1993
|
|
27
|
+
glaip_sdk/models.py,sha256=HkX9jwC3eh2bjL4Hj7uwQR1RSz63tzxbMe_n0gLJHjE,8782
|
|
28
|
+
glaip_sdk/rich_components.py,sha256=pmJd-81OQE8bC9UOXtga5rsax4zphKlzCZ1JoWbbQzQ,803
|
|
29
|
+
glaip_sdk/utils/__init__.py,sha256=fmVGcUFa7G0CCfSMSqfNU2BqFl36G1gOFyDfTvtJfVw,926
|
|
30
|
+
glaip_sdk/utils/agent_config.py,sha256=b7_J5DELyk0b_XEoi7tsxbS3wqzAKbMa-3_C-65pPIY,6791
|
|
31
|
+
glaip_sdk/utils/client_utils.py,sha256=W1TBD8-f5RRh3CyiSYcTOtn_e6A_msIFXmgHQ0m-YMo,13072
|
|
32
|
+
glaip_sdk/utils/display.py,sha256=94s9lYF_8ra8jpeqOkbVrUm8oidtCE6OtucyxLQPKmU,3105
|
|
33
|
+
glaip_sdk/utils/general.py,sha256=V5hJrIpYDvDsldU_nChHpuvV2AwhFLUI7Qvcaihq_8A,2270
|
|
34
|
+
glaip_sdk/utils/import_export.py,sha256=KJ_8wy-Ol92HiKAqO5vUz3Gn257jqWFsq3XEdRH-NXM,5393
|
|
35
|
+
glaip_sdk/utils/rendering/__init__.py,sha256=vXjwk5rPhhfPyD8S0DnV4GFFEtPJp4HCCg1Um9SXfs0,70
|
|
36
|
+
glaip_sdk/utils/rendering/formatting.py,sha256=_k8tkcobctmHvdygMljZF7-ALGXpD9-hHF1CNtM2KMU,7201
|
|
37
|
+
glaip_sdk/utils/rendering/models.py,sha256=SS34_00FaoGuSYn-viBkAtIbq7cJNwwPjpxnvyeUmxI,1567
|
|
38
|
+
glaip_sdk/utils/rendering/renderer/__init__.py,sha256=EXwVBmGkSYcype4ocAXo69Z1kXu0gpNXmhH5LW0_B7A,2939
|
|
39
|
+
glaip_sdk/utils/rendering/renderer/base.py,sha256=DgZW55Eu6uj_NsCKa-O4unb7ujnNNaWD-54aPd7y5gU,38872
|
|
40
|
+
glaip_sdk/utils/rendering/renderer/config.py,sha256=E4ER8TJJbqr1hcWjkwG7XROqLuccQy4EL99CbuLvSXE,783
|
|
41
|
+
glaip_sdk/utils/rendering/renderer/console.py,sha256=4cLOw4Q1fkHkApuj6dWW8eYpeYdcT0t2SO5MbVt5UTc,1844
|
|
42
|
+
glaip_sdk/utils/rendering/renderer/debug.py,sha256=FEYxAu4ZB0CjrJKevqQ2TKDgElA2cf6GqZXCNm12sNQ,3721
|
|
43
|
+
glaip_sdk/utils/rendering/renderer/panels.py,sha256=_KJohKOsyOBkqKzlC-hOSwZt1SGsJRhQwizlrRgWMis,3040
|
|
44
|
+
glaip_sdk/utils/rendering/renderer/progress.py,sha256=i4HG_iNwtK4c3Gf2sviLCiOJ-5ydX4t-YE5dgtLOxNI,3438
|
|
45
|
+
glaip_sdk/utils/rendering/renderer/stream.py,sha256=1RP5TIV7tqg07X9gPN053XeabFGVT4jPplxaoPU0L38,8601
|
|
46
|
+
glaip_sdk/utils/rendering/steps.py,sha256=4zdeyKxMbUzCal4-yv8yf18144cs5wwXaxhe6mt2KiE,7307
|
|
47
|
+
glaip_sdk/utils/resource_refs.py,sha256=0YzblJNfRhz9xhpaKE9aE68XEV-6_ssr0fIkiMVOka0,5489
|
|
48
|
+
glaip_sdk/utils/rich_utils.py,sha256=-Ij-1bIJvnVAi6DrfftchIlMcvOTjVmSE0Qqax0EY_s,763
|
|
49
|
+
glaip_sdk/utils/run_renderer.py,sha256=d_VMI6LbvHPUUeRmGqh5wK_lHqDEIAcym2iqpbtDad0,1365
|
|
50
|
+
glaip_sdk/utils/serialization.py,sha256=WlWhvA2PDFGYXVw-OJG3zSKoXCv6gSh2YXgQmah490g,7866
|
|
51
|
+
glaip_sdk/utils/validation.py,sha256=QNORcdyvuliEs4EH2_mkDgmoyT9utgl7YNhaf45SEf8,6992
|
|
52
|
+
glaip_sdk-0.0.6a0.dist-info/METADATA,sha256=k7ejh3C-HH1B3wTtlzaoxQyv_3CbsEBlvwElArwVQnE,4944
|
|
53
|
+
glaip_sdk-0.0.6a0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
54
|
+
glaip_sdk-0.0.6a0.dist-info/entry_points.txt,sha256=EGs8NO8J1fdFMWA3CsF7sKBEvtHb_fujdCoNPhfMouE,47
|
|
55
|
+
glaip_sdk-0.0.6a0.dist-info/RECORD,,
|