Overview

The GL AIP (GDP Labs AI Agents Package) consists of three main components:

  • aip-agents โ€” The underlying agent library for local execution

  • ai-agent-platform โ€” The platform that provides remote server/run capabilities

  • glaip-sdk โ€” The SDK that end users use to run agents either locally (directly via aip-agents) or on the remote server (via ai-agent-platform)

This repository provides the SDK and CLI so you can use identical features locally, in CI, or inside your own applications.

Architecture Overview

Key Relationships:

  • glaip-sdk is the user-facing SDK that provides a unified interface

  • aip-agents is the core agent library used by both local execution and the platform

  • ai-agent-platform is the platform that wraps aip-agents to provide centralized management and remote execution capabilities

Setup Requirements:

  • Local Mode: Configure LLM provider credentials (e.g., OPENAI_API_KEY) for aip-agents to use directly

  • Remote Mode: Configure AIP_API_URL and AIP_API_KEY to connect to the AIP server (LLM credentials are managed by the remote server)

Documentation Map

Use these sections in order when exploring the SDK and CLI:

  • Get Started โ€” Install, configure, complete the quick start, and run curated examples.

  • Guides โ€” Deep dives on lifecycle management, automation, integrations, and governance.

  • Multi-Agent System Patterns โ€” Runnable orchestration templates for complex workflows.

  • Reference โ€” Definitive API, SDK, and CLI commands for implementation details.

  • Resources โ€” Changelog, glossary, and upgrade checklists.

Role-Based Entry Points

Choose the track that matches how you work today.

Engineers โ€” Ship agents in applications and automation

Why it matters: You need reliable APIs, typed clients, and testable workflows that fit existing services.

Start here:

Product Managers โ€” Validate agents via GLChat

Why it matters: You review agent behaviour for stakeholders. GLChat gives you fast access, but the CLI helps you list available agents and capture verbose output when needed.

Start here:

Data Developers โ€” Curate prompts, evaluations, and linguistic QA

Why it matters: You iterate on prompts, run guided evaluations, and need to inspect agent transcripts without writing code.

Start here:

Choose Your Interface

Pick the surface that matches your environment; each summary spells out when and why to use it.

REST API โ€” Language-agnostic integration with full control

Why you would pick it (REST API)

  • Works with any language or infrastructure stack.

  • Provides immediate access to every capability, including roadmap features as soon as they land.

Use it when (REST API)

  • Orchestrating agents from existing services, queues, or infrastructure.

  • You need custom authentication flows or to run in tightly restricted environments.

Key docs (REST API)

Python SDK โ€” Type-safe development and faster iteration

Why you would pick it (Python SDK)

  • Typed client with ergonomic streaming and error handling.

  • Shared utilities mirroring the CLI and test fixtures so you can reuse code between notebooks, services, and pipelines.

Use it when (Python SDK)

  • Building Python services, workflows, or notebooks that call AIP frequently.

  • You want to prototype locally, then promote the same code path into CI/CD.

Key docs (Python SDK)

CLI โ€” Fast experiments, ops checks, and demos

Why you would pick it (CLI)

  • Zero-code access with rich terminal rendering and JSON exports.

  • Ideal for smoke-testing environments, running scheduled jobs, or supporting teams without direct code access.

Use it when (CLI)

  • Validating connectivity or resources before automation.

  • Running guided demos, QA checklists, or manual evaluations.

  • Data developers iterate on prompts with export/import loops and need transcripts fast.

Key docs (CLI)

Platform Capabilities at a Glance

Symbols: โœ… fully supported ยท ๐Ÿ› ๏ธ partial via customization/workarounds ยท ๐Ÿšง roadmap

Roadmap (๐Ÿšง) items are available via the REST API first. The SDK and CLI pick them up as soon as the corresponding clients and commands ship.

Core Operations
Capability
What it covers
REST API
Python SDK
CLI

Agent lifecycle & metadata

Create/list/update/delete agents with tools, MCPs, and sub-agents

โœ…

โœ…

โœ…

Streaming execution & artifacts

SSE runs, file attachments, usage stats, artifact links

โœ…

โœ…

โœ…

Multi-agent orchestration

Nested agents, LangFlow imports, delegated execution patterns

โœ…

โœ…

โœ…

File ingestion & chunking

Multipart file attachments, chunk ID management, artifact reuse

โœ…

โœ…

โœ…

Tool registry & uploads

Native catalog, custom uploads, GL Connectors

โœ…

โœ…

โœ…

Memory & conversation persistence

agent_config.memory, chat history injection, mem0 retention

โœ…

โœ…

๐Ÿ› ๏ธ

Tool output sharing controls

Toggle agent_config.tool_output_sharing to share artifacts

โœ…

โœ…

๐Ÿ› ๏ธ

Automation & Integrations
Capability
What it covers
REST API
Python SDK
CLI

Configuration export/import

JSON/YAML round-tripping for agents and tools

โœ…

โœ…

โœ…

Language model routing

language_model_id, provider/model fallbacks, per-run overrides

โœ…

โœ…

๐Ÿ› ๏ธ

MCP connectors & auth rotation

MCP CRUD, /mcps/connect, tool discovery

โœ…

โœ…

โœ…

MCP runtime overrides

Per-run runtime_config.mcp_configs overrides

โœ…

โœ…

๐Ÿšง

LangFlow workflow sync

/agents/langflow/sync promotion of flows into agents

โœ…

โœ…

โœ…

Human-in-the-loop approvals

/agents/hitl/* endpoints for manual decision checkpoints

โœ…

๐Ÿ› ๏ธ

๐Ÿ› ๏ธ

Run history & analytics

/agents/{id}/runs pagination, status filters, usage metrics

โœ…

๐Ÿšง

๐Ÿšง

Schedules & triggers

/schedules CRUD for cron/interval/webhook automation

โœ…

๐Ÿšง

๐Ÿšง

Governance & Roadmap
Capability
What it covers
REST API
Python SDK
CLI

PII tagging & redaction

pii_mapping masking for inbound/outbound payloads

โœ…

โœ…

๐Ÿšง

Account lifecycle

/accounts create/list/delete with master key guardrails

โœ…

๐Ÿšง

๐Ÿšง

Multi-account isolation

API-key scoped requests, master key bypass

โœ…

โœ…

โœ…

RBAC role management

Creator/Runner/Viewer roles, delegated keys

๐Ÿšง

๐Ÿšง

๐Ÿšง

How It Fits Together

The SDK (glaip-sdk) can operate in two modes:

  • Local Mode: Uses aip-agents library directly on your machine, bypassing the platform.

  • Remote Mode: Connects to the ai-agent-platform platform via REST API. The platform's remote server uses aip-agents internally to execute agents.

Tokens and base URLs are shared across interfaces, so you can develop locally and promote the same configuration into CI or production with minimal changes.

  • REST API (exposed by ai-agent-platform platform): Every capability is implemented here first.

  • Python SDK (glaip-sdk): Wraps the API with typed models, streaming helpers, and higher-level abstractions. Can also run agents locally using aip-agents.

  • CLI: Uses the SDK under the hood so operations and demos mirror production behaviour.

Low-Code Philosophy

The SDK emphasizes declarative patterns for building agents with minimal code:

Key principles:

  • Agent/Tool/MCP as primary abstractions โ€” Work directly with high-level classes

  • Environment-based defaults โ€” Credentials read from AIP_API_URL and AIP_API_KEY

  • Progressive complexity โ€” Simple patterns for simple tasks, advanced patterns available

  • Agent-first with client as secondary โ€” Use the Agent pattern for most workflows; keep client APIs for listing, batch operations, and legacy code paths

Start Building

Ready to go from prototype to production? Follow this path to ship quickly:

  1. Install & configure โ€” Set up credentials and the CLI with Install & Configure.

  2. Run the quick start โ€” Use the Agent-first pattern (recommended), with the client pattern available as a secondary option in the Quick Start Guide to create and run your first agent.

  3. Explore patterns โ€” Use the Hands-on Examples to pick the right pattern (single agent, multi-agent, class pattern, runtime config, local execution, report automation).

  4. Iterate on prompts โ€” Use the CLI export/import loop in Configuration management to refine instructions safely.

  5. Add real workflows โ€” Explore Tools, File processing, or Multi-agent patterns as you expand capabilities.

The GL AIP package, SDK, and CLI give you a single, consistent toolkit to build, test, and operate AI agents anywhere.

Last updated