Overview
The GL AIP (GDP Labs AI Agents Package) consists of three main components:
aip-agentsโ The underlying agent library for local executionai-agent-platformโ The platform that provides remote server/run capabilitiesglaip-sdkโ The SDK that end users use to run agents either locally (directly viaaip-agents) or on the remote server (viaai-agent-platform)gl-sdk-cookbookโ A collection of self-contained, runnable examples and advanced patterns
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-sdkis the user-facing SDK that provides a unified interfaceaip-agentsis the core agent library used by both local execution and the platformai-agent-platformis the platform that wrapsaip-agentsto provide centralized management and remote execution capabilities
Setup Requirements:
Local Mode: Configure LLM provider credentials (e.g.,
OPENAI_API_KEY) foraip-agentsto use directlyRemote Mode: Configure
AIP_API_URLandAIP_API_KEYto 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:
Quick Start Guide for first-run success.
Python SDK Reference for signatures and streaming behaviour.
Automation & Scripting for CI, cron, and deployment patterns.
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:
Quick Start Guide (CLI path) โ run an agent end-to-end and see detailed logs.
Agents guide โบ List & run โ discover agent IDs/names before launching them in GLChat.
Automation & Scripting โบ Choose the right output โ switch between rich and plain responses when sharing findings.
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:
Quick Start Guide โ follow the CLI path to validate access and run agents.
Configuration management guide โ master CLI export/import loops for prompt iteration.
CLI Commands Reference โ look up flags for runs, exports, and transcript capture.
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
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
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
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-agentslibrary directly on your machine, bypassing the platform.Remote Mode: Connects to the
ai-agent-platformplatform via REST API. The platform's remote server usesaip-agentsinternally 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-platformplatform): 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 usingaip-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_URLandAIP_API_KEYProgressive 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:
Install & configure โ Set up credentials and the CLI with Install & Configure.
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.
Explore patterns โ Use the Hands-on Examples to pick the right pattern (single agent, multi-agent, class pattern, runtime config, local execution, report automation).
Iterate on prompts โ Use the CLI export/import loop in Configuration management to refine instructions safely.
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