Python SDK
Step 1: Install or Upgrade the Package
# Standard install (includes local execution)
pip install --upgrade "glaip-sdk[local]"
# Or install without local extra (remote execution only)
pip install --upgrade glaip-sdkStep 2: Create and Run Your First Agent Locally
from glaip_sdk import Agent
agent = Agent(
name="hello-world-agent",
instruction="You are a friendly AI assistant.",
)
response = agent.run("Hello! How are you today?")
print(response)Step 3: Specify a Model (Optional)
Step 4: Optional: Connect to AIP Server
Last updated
Was this helpful?