SShortSingh.
Back to feed

How to Build an AI Agent from Scratch (It's Just a While Loop)

0
·9 views

Build an AI agent from scratch in TypeScript with only a model API and a loop. Covers tool calling, parallel tool calls, and a bug no framework can fix.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Building an AI workout coach in SwiftUI: one-tap logging during the set, GPT-4o analysis after

Most people who track their training in a notes app lose the one thing that matters: set-by-set context. The note does not remember what you lifted last week, and generic gym trackers bury the screen in charts without ever telling you what to do next. The brief for Body Forge was a coach in your pocket: clean tracking during the set, real analysis after it, and programmes that adapt as you progress. Here is how the native iOS app is put together. The workout screen is built for one hand and a sweaty thumb.

0
ProgrammingDEV Community ·

A RAG consultant for an immigration law firm: what it answers and what it hands to the lawyer

An immigration lawyer in Warsaw was spending hours a day on the same questions. Which documents do I need for a karta pobytu? How long does it take? Her site was a brochure: it brought no leads from Google, and every first message was answered by hand. We rebuilt the site and put a consultant inside it that answers from the firm's own material.

0
ProgrammingDEV Community ·

FastAPI Request/Response Logging for AI Feature Attribution: Tracking Which Claude Call Cost Which Tenant

FastAPI Request/Response Logging for AI Feature Attribution: Tracking Which Claude Call Cost Which Tenant When your SaaS starts charging tenants for AI features, you enter a new debugging hell. A customer emails: "Why did my bill jump $340 last Tuesday?" You grep your logs. You find 50 Claude API calls that day. But which endpoint triggered them? Which user?