October workshops are openBuild a Search AI Agent$99 early bird

Enroll now
Skip to content

LEARN · BUILD · EXPERIMENT

AI Lab

One idea at a time. Real code you can change.

0 / 10

missions checked

beginner1 of 10
Explore real agent tools Optional · local setup

OPEN-SOURCE PATH · OPTIONAL

Take your agent local

Use LangGraph, a real room tool, and a local Qwen model through Ollama. Start with the offline test; connect the model when you are ready.

Optional · Node.js 22+ · Your own computer · Ollama model download for live runs

GUIDED SETUP · 1 OF 4

Create your project

Download the setup file into a new folder. Run the commands below, then open the generated README in your editor.

The setup file creates seven readable project files in a new folder. It never installs packages automatically or overwrites an existing project.

First, run the offline checks
node setup-ai-lab.mjs
cd stemtiq-local-agent-lab
npm install
npm run check
npm test

These files run on your computer. The browser’s Run button executes agent.js in the classroom simulator. Install Ollama and download the local model only when you choose to follow the README.

One read-only tool · Up to 4 model turns / 3 tool calls · 30-second run abort · No booking or shell tools

Official documentation and checks

Pinned packages, TypeScript, offline graph tests, and the missing-service message were checked. Live model output has not been verified.

Explore the separate OpenAI SDK example Requires an API key in your local environment

THE NEXT STEP

Build with the OpenAI Agents SDK.

Explore a separate example that uses a real agent SDK. Read the code here, then run it in your own environment with an API key. This browser lab never asks for one.

Agent + run
Configure the real model and let the SDK manage the tool loop.
tool + Zod
Define an executable tool and validate its inputs.
maxTurns
Bound model turns; still check outputs and permissions.
Local project setup
# Use Node.js 22 or later in a separate folder.
# Real runs require an OpenAI API account/key and may incur API charges.
npm init -y
npm pkg set type=module
npm install @openai/agents@0.18.0 zod@4
npm install --save-dev typescript tsx @types/node@22
# Save the downloaded example as real-agent.ts.
# Set OPENAI_API_KEY privately in your terminal environment before running.
# Optional: set OPENAI_MODEL to a compatible model available to your API project.
npx tsx real-agent.ts