CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Introduction to agents: roles, run cycle, determinism, idempotency

    ChatGPT Apps
    Level 12, Lesson 0
    In this lecture you will break down what an LLM agent is and how it differs from “direct” MCP‑tool calls from the ChatGPT App, what parts it consists of (LLM, instructions, tools, state), how message roles ( system/ user/ assistant/ tool) and the run cycle (agent loop) work. Separately, we will discuss production practices: how to increase predictability (determinism) via prompts/parameters/guardrails and why tools must be idempotent if an agent can retry calls.
    Available
  • Agent tools (Tools): schemas, routing, errors

    ChatGPT Apps
    Level 12, Lesson 1
    Looking at tools through an LLM agent’s lens: how tools differ from MCP-tools, how a tool is defined by a contract via name/ description/ parameters (JSON Schema), how semantic routing works (choosing a tool and forming arguments), and why errors should be “observable” ( Error as Observationretryable, rather than a raw 500 and a stack trace.
    Available
  • Agent memory and state: session vs persistent, checkpoints

    ChatGPT Apps
    Level 12, Lesson 2
    In this lecture we cover why agents need explicit memory outside the message history, how to design the session state layer (short‑lived conversation progress) and the persistent state layer (long‑term user data), and how to use checkpoints for recovery, debugging, and audit. Using GiftGenius as an example, we’ll show TypeScript types, wiring the run cycle with tools, and the practice of “memory hygiene” (context, token cost, privacy, PII, and TTL).
    Available
  • Multi-step processes: model auto-orchestration and loop control

    ChatGPT Apps
    Level 12, Lesson 3
    We unpack what a multi-step run is in agent systems and how it differs from a “one-off” tool call: how the model plans steps, when and why sequential and parallel tool calls appear, how to design a workflow (using GiftGenius as an example), where to draw the line between model freedom and strict orchestration, how to set limits ( maxSteps, timeoutMs), track repeated calls, and formalize completion criteria. At the end, we connect the Agents SDK with the Apps SDK → MCP → backend stack and go through common production design mistakes in multi-step processes.
    Available
  • Production and security: permissions, sandbox, secrets, monitoring

    ChatGPT Apps
    Level 12, Lesson 4
    In this lecture we cover the “production mindset” for AI agents: how to restrict privileges through an allow‑listed toolset ( allowedTools) and user roles, how to isolate execution (sandbox, limits on steps/time/tool calls), how to keep secrets server‑side only (via process.env and secret managers), how to minimise PII in context, and how to enable observability: structured logs, metrics, and basic tracing for each agent_run_id.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym