6

પ્રકરણ છ

Agents
બનાવ

Calculator અને
coworker વચ્ચેનો ફરક.

Chatbot તારી વાત ની રાહ જુએ. Agent નહીં. એને goal આપ — "Mars colonization પર research કર અને report લખ" — અને એ કામ ને steps માં તોડે, સાચા tools pick કરે, એક પછી એક execute કરે, પોતાના results check કરે, અને job પૂરું ન થાય ત્યાં સુધી ચાલુ રાખે. Instructions ને respond કરવું અને goal pursue કરવું — આ ફરક calculator અને coworker વચ્ચેનો છે.

Agents એક loop પર ચાલે: goal receive કર, steps plan કર, tools વડે execute કર, results observe કર, progress evaluate કર, adjust કર. એ એક વાર plan કરીને blindly execute નથી કરતા — best agents ત્રીજો step ખોટો થાય ત્યારે gracefully recover કરે. પણ આ power ની dark side છે: agents ફક્ત ખોટા જવાબ નથી આપતા, એ એના પર act કરે, અને પછી broken result ને આગલા decision માટે વાપરે. Failures compound થાય.

Agent Loop

દરેક agent એ જ five-step cycle પર ચાલે. આ steps સમજવા — એ useful build કરવા અને API credits infinite loop માં બાળી નાખવા વચ્ચેનો ફરક છે.

G

Goal

Clear objective receive કર. "Mars research કર" goal નથી. "Mars colonization ના challenges ની 500-word summary, sources સાથે લખ" — આ goal છે.

P

Plan

Goal ને concrete steps માં તોડ. Good planners flexible plans બનાવે. Bad planners rigid scripts બનાવે જે first surprise પર તૂટી જાય.

T

Execute

દરેક step ને right tool વડે execute કર — search engines, code interpreters, file readers, APIs. Agents ફક્ત think નથી કરતા. એ act કરે.

M

Observe

શું થયું એ record કર અને results check કર. Memory વિના, agent એ જ failing action ને forever repeat કરે.

E

Evaluate

આ કામ કર્યું? Goal ની નજીક પહોંચ્યો? કંઈ ખોટું હોય તો plan adjust કર અને ફરી loop. Agent ને script થી આ જ અલગ કરે.

મુખ્ય વાત

Chatbot single turn છે. Agent આખી conversation છે — પોતાની જાત સાથે, tools સાથે, અને દુનિયા સાથે. Best agent builders autonomy maximize નથી કરતા. એ thoughtful checkpoints design કરે જ્યાં agent રોકાય અને human ને decide કરવા દે.

એક બનાવવાનો time. Tank agent design કર — એની capabilities pick કર, budget allocate કર, strategy લખ — પછી arena માં deploy કરીને autonomously fight થતી જો.

Agent Arena
Configure

Capabilities

5 pts left
Armor
2
Speed
2
Power
2
Rate
2
Range
2

Strategy (system prompt)

Close distance. Fire constantly. Prioritize damage over survival.

Opponent

Share this course
Goal બધી failure ને prevent કરવાનું નથી — failure ને recoverable બનાવવાનું છે.

આગળ: તું real agent વાપરીશ — જે તારો code વાંચે, changes લખે, tests run કરે, અને પોતાની ભૂલો ઠીક કરે. Claude Code ને મળ.

Agent Swarm

New tool unlocked!