Skip to main content

Python SDK for GL AIP (GDP Labs AI Agent Package) - Simplified CLI Design

Project description

GL AIP SDK — GDP Labs AI Agents Package

Python 3.10+ Code style: black

GL stands for GDP Labs—GL AIP is our AI Agents Package for building, running, and operating agents.

Python SDK and CLI for GL AIP - Connect, configure, and manage AI agents on the GDP Labs AI Agents Package.

🚀 Quick Start

Installation

# Using pip (recommended)
pip install --upgrade glaip-sdk

# Using uv (fast alternative)
uv tool install glaip-sdk

Requirements: Python 3.10+

🐍 Hello World - Python SDK

Perfect for building applications and integrations.

Step 1: Environment Setup

Create a .env file:

# .env
AIP_API_URL=https://your-gl-aip-instance.com
AIP_API_KEY=your-api-key

Step 2: Basic Python Script

# hello_world.py
from glaip_sdk import Client
import os
from dotenv import load_dotenv

# Load environment variables
load_dotenv()

# Initialize client
client = Client()

# Create a simple agent
agent = client.agents.create(
    name="hello-sdk",
    instruction="You are a helpful assistant who responds clearly and concisely."
)

# Run the agent
result = agent.run("Hello world, what's 2+2?")

print(f"Agent response: {result}")

Step 3: Run Your Script

python hello_world.py

Step 4: Advanced Example with Streaming

# streaming_example.py
from glaip_sdk import Client
import os
from dotenv import load_dotenv

load_dotenv()
client = Client()

# Create agent with streaming
agent = client.agents.create(
    name="streaming-agent",
    instruction="You are a helpful assistant. Provide detailed responses."
)

# Stream the response
print("Streaming response:")
client.agents.run_agent(
    agent.id,
    "Explain quantum computing in simple terms",
    verbose=True,
)
print("--- Stream complete ---")

🎉 SDK Success! You're now ready to build AI-powered applications with Python.


💻 Hello World - CLI

Perfect for quick testing and command-line workflows.

Step 1: Configure Connection

# Interactive setup (recommended)
aip configure

Or set environment variables:

export AIP_API_URL="https://your-gl-aip-instance.com"
export AIP_API_KEY="your-api-key"

Step 2: Verify Connection

aip status

Step 3: Create & Run Your First Agent

# Create a simple agent
aip agents create --name "hello-cli" --instruction "You are a helpful assistant"

# List agents to get the ID
aip agents list

# Run the agent with input
aip agents run <AGENT_ID> --input "Hello world, what's the weather like?"

🎉 CLI Success! You're now ready to use the CLI for AI agent workflows.

✨ Key Features

  • 🤖 Agent Management: Create, run, and orchestrate AI agents with custom instructions and streaming
  • 🧠 Language Models: Choose from multiple AI models per agent with manual PII tag mapping
  • 🛠️ Tool Integration: Extend agents with custom Python tools and script management
  • 🔌 MCP Support: Connect external services through Model Context Protocols with tool discovery
  • 🔄 Multi-Agent Patterns: Hierarchical, parallel, sequential, router, and aggregator patterns
  • 💻 Modern CLI: Rich terminal interface with fuzzy search and multiple output formats

📚 Documentation

📖 Complete Documentation - Visit our GitBook for comprehensive guides, tutorials, and API reference.

Quick links:

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glaip_sdk-0.0.11-py3-none-any.whl (139.4 kB view details)

Uploaded Python 3

File details

Details for the file glaip_sdk-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: glaip_sdk-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 139.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: poetry/1.8.2 CPython/3.13.0 Linux/5.10.0-32-cloud-amd64

File hashes

Hashes for glaip_sdk-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 2461ae5e85be0ec7af049bcdc022c7e97443a2bbd2b3952784d141d2300aace5
MD5 e4977f1c0aa31bb65e898cbe33f7832a
BLAKE2b-256 93da58eadeddede426435e92cdb419f75eff9fc901c214ff0e7ef6ef372c2fc6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page