When to use: You are coding in Python, iterating from notebooks or applications, and want typed helpers during development.
1
Install or Upgrade the Package
# Standard install (includes local execution)pipinstall--upgrade"glaip-sdk[local]"# Or install without local extra (remote execution only)pipinstall--upgradeglaip-sdk
2
Create and Run Your First Agent Locally
Ensure you installed glaip-sdk[local] and set your LLM provider key (for example OPENAI_API_KEY) before running locally.
from glaip_sdk.agents import Agentagent =Agent(name="hello-world-agent",instruction="You are a friendly AI assistant.",)response = agent.run("Hello! How are you today?")print(response)
3
(Optional) Connect to AIP Server
If you want to run against the remote AIP server instead of using aip-agents locally, add your API details to a .env file: