عاملهای هوش مصنوعی: برنامهریزی و چرخهٔ عمل
هوش مصنوعی برای همه: هوش مصنوعی چطور باهوش شد؟
- An operational definition of an agent as a system that selects actions toward a goal using feedback from its environment.
- How current language-model agents relate to earlier AI agents without necessarily using reinforcement learning.
- A dynamic loop of observing, selecting a next step, calling a tool, and updating task state.
- Planning and replanning when a document is missing or a tool returns an error.
- Agent memory as stored application state rather than automatic parameter learning.
- Fixed workflows versus systems with model-selected next steps, including hybrids.
- Compounding errors, unnecessary actions, loop failures, and uncertain definitions of completion.
هدف، بازخورد، انتخاب عمل
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="45" y="150" width="150" height="90" rx="14" class="tm-surface"/><text x="120" y="185" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">هدف</text><text x="120" y="213" class="tm-text2" font-size="15" text-anchor="middle" direction="rtl">راهنمای پمپ</text><rect x="310" y="150" width="180" height="90" rx="14" class="tm-accent"/><text x="400" y="185" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">انتخاب عمل</text><text x="400" y="213" class="tm-text2" font-size="15" text-anchor="middle" direction="rtl">رفتن به فهرست</text><rect x="605" y="150" width="150" height="90" rx="14" class="tm-surface"/><text x="680" y="185" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">محیط</text><text x="680" y="213" class="tm-text2" font-size="15" text-anchor="middle" direction="rtl">مخزن فایلها</text><path d="M195 195 L300 195" class="tm-line" marker-end="url(#arrow)"/><path d="M490 195 L595 195" class="tm-line" marker-end="url(#arrow)"/><rect x="310" y="300" width="180" height="70" rx="14" class="tm-gold"/><text x="400" y="330" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">بازخورد</text><text x="400" y="353" class="tm-text2" font-size="14" text-anchor="middle" direction="rtl">نتیجهٔ خالی</text><path d="M680 240 C680 325 510 335 500 335" class="tm-line" marker-end="url(#arrow)"/><path d="M310 335 C210 335 180 290 180 245" class="tm-line-accent tm-flow" marker-end="url(#arrow)"/></svg>
```
اصلاح مسیر پس از جستوجوی ناموفق
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="35" y="45" width="190" height="90" rx="12" class="tm-surface"/><text x="130" y="80" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">هدف: راهنمای پمپ Q7</text><text x="130" y="108" class="tm-text2" font-size="15" text-anchor="middle" direction="rtl">مدل سند باید جور باشد</text><rect x="315" y="45" width="175" height="90" rx="12" class="tm-accent"/><text x="402" y="82" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">جستوجو با Q7</text><text x="402" y="110" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">و راهنمای نگهداری</text><rect x="580" y="45" width="180" height="90" rx="12" class="tm-gold"/><text x="670" y="83" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">نتیجه خالی</text><text x="670" y="110" class="tm-text2" font-size="14" text-anchor="middle" direction="rtl">نبودن سند ثابت نیست</text><path d="M225 90 H305" class="tm-line" marker-end="url(#arrow)"/><path d="M490 90 H570" class="tm-line" marker-end="url(#arrow)"/><rect x="80" y="220" width="205" height="90" rx="12" class="tm-accent"/><text x="182" y="255" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">فهرست تجهیزات</text><text x="182" y="283" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">نام کامل تجهیز</text><rect x="330" y="220" width="190" height="90" rx="12" class="tm-green"/><text x="425" y="255" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">پمپ گردش آب</text><text x="425" y="283" class="tm-text" font-size="14" text-anchor="middle" direction="rtl">سری آ</text><rect x="565" y="220" width="195" height="90" rx="12" class="tm-soft"/><text x="662" y="255" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">جستوجو با نام</text><text x="662" y="283" class="tm-text" font-size="14" text-anchor="middle" direction="rtl">راهنمای نگهداری</text><path d="M670 135 V180 H182 V210" class="tm-line-accent" marker-end="url(#arrow)"/><path d="M285 265 H320" class="tm-line" marker-end="url(#arrow)"/><path d="M520 265 H555" class="tm-line" marker-end="url(#arrow)"/><rect x="315" y="350" width="300" height="65" rx="12" class="tm-green tm-enter"/><text x="465" y="390" class="tm-text" font-size="17" text-anchor="middle" direction="rtl">نامزد: راهنمای نگهداری سری آ</text><path d="M662 310 V335 H465 V340" class="tm-line-green" marker-end="url(#arrow)"/></svg>
```
وضعیت کار و اصلاح مسیر
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="a" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10 z" class="tm-arrow"/></marker></defs><rect class="tm-surface" x="40" y="65" width="190" height="72" rx="12"/><text class="tm-text" font-size="18" text-anchor="middle" x="135" y="96" direction="rtl">سند نامزد</text><text class="tm-muted" font-size="14" text-anchor="middle" x="135" y="120" direction="rtl">محتوا تأیید نشده</text><rect class="tm-accent" x="300" y="65" width="190" height="72" rx="12"/><text class="tm-text" font-size="18" text-anchor="middle" x="395" y="96" direction="rtl">باز کردن فایل</text><text class="tm-text" font-size="14" text-anchor="middle" x="395" y="120" direction="rtl">خطا ← متن</text><path d="M230 101 H294" class="tm-line-accent" marker-end="url(#a)"/><rect class="tm-soft" x="555" y="65" width="200" height="72" rx="12"/><text class="tm-text" font-size="18" text-anchor="middle" x="655" y="96" direction="rtl">وضعیت کار</text><text class="tm-muted" font-size="14" text-anchor="middle" x="655" y="120" direction="rtl">اطلاعات تازه ذخیره میشود</text><path d="M490 101 H549" class="tm-line" marker-end="url(#a)"/><rect class="tm-gold" x="40" y="250" width="220" height="75" rx="12"/><text class="tm-text" font-size="17" text-anchor="middle" x="150" y="282" direction="rtl">جستوجوی دوباره</text><text class="tm-muted" font-size="14" text-anchor="middle" x="150" y="306" direction="rtl">همان دسترسی: دلیل تازهای نیست</text><rect class="tm-green" x="330" y="250" width="205" height="75" rx="12"/><text class="tm-text" font-size="17" text-anchor="middle" x="432" y="282" direction="rtl">وضعیت برنامه</text><text class="tm-muted" font-size="14" text-anchor="middle" x="432" y="306" direction="rtl">هدف، خطا، سند</text><rect class="tm-surface" x="590" y="250" width="165" height="75" rx="12"/><text class="tm-text" font-size="17" text-anchor="middle" x="672" y="282" direction="rtl">پارامترهای LLM</text><text class="tm-text" font-size="14" text-anchor="middle" x="672" y="306" direction="rtl">بدون تغییر</text><path d="M260 287 H324" class="tm-line-accent" marker-end="url(#a)"/><path d="M535 287 H584" class="tm-line" marker-end="url(#a)"/></svg>
```
چه کسی قدم بعدی را انتخاب میکند؟
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><text x="205" y="45" class="tm-text" font-size="20" text-anchor="middle" direction="rtl">workflow ثابت</text><text x="595" y="45" class="tm-text" font-size="20" text-anchor="middle">agent</text><rect x="65" y="85" width="280" height="60" rx="10" class="tm-surface"/><text x="205" y="122" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">نتیجه خالی</text><rect x="65" y="190" width="280" height="60" rx="10" class="tm-surface"/><text x="205" y="227" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">خواندن فهرست تجهیزات</text><rect x="65" y="295" width="280" height="60" rx="10" class="tm-surface"/><text x="205" y="332" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">جستوجوی نام کامل</text><path d="M205 145 L205 185" class="tm-line" marker-end="url(#arrow)"/><path d="M205 250 L205 290" class="tm-line" marker-end="url(#arrow)"/><text x="205" y="395" class="tm-muted" font-size="15" text-anchor="middle" direction="rtl">قدمها از پیش تعیین شده</text><rect x="455" y="85" width="280" height="60" rx="10" class="tm-surface"/><text x="595" y="122" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">نتیجه خالی</text><rect x="455" y="190" width="280" height="60" rx="10" class="tm-accent"/><text x="595" y="227" class="tm-text" font-size="16" text-anchor="middle" direction="rtl">مدل وضعیت را میبیند</text><path d="M595 145 L595 185" class="tm-line" marker-end="url(#arrow)"/><text x="595" y="285" class="tm-muted" font-size="15" text-anchor="middle" direction="rtl">مدل انتخاب میکند</text><text x="595" y="315" class="tm-text2" font-size="15" text-anchor="middle" direction="rtl">فهرست تجهیزات یا پرسش از کاربر</text><rect x="455" y="340" width="280" height="50" rx="10" class="tm-accent tm-enter"/><text x="595" y="371" class="tm-text" font-size="15" text-anchor="middle" direction="rtl">قدم بعدی وابسته به شواهد</text><text x="400" y="435" class="tm-text-accent" font-size="17" text-anchor="middle" direction="rtl">تفاوت: کنترل مسیر</text></svg>
```
شرطهای پایان حلقه
```svg
<svg viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg"><defs><marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto"><path d="M0,0 L0,6 L9,3 z" class="tm-arrow"/></marker></defs><rect x="40" y="55" width="210" height="70" rx="12" class="tm-soft"/><text x="145" y="85" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">جستوجوی خالی</text><text x="145" y="108" text-anchor="middle" class="tm-muted" font-size="13" direction="rtl">برداشت نادرست</text><rect x="295" y="55" width="210" height="70" rx="12" class="tm-soft"/><text x="400" y="85" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">راهنمای عمومی</text><text x="400" y="108" text-anchor="middle" class="tm-muted" font-size="13" direction="rtl">ادعای نادرست</text><rect x="550" y="55" width="210" height="70" rx="12" class="tm-soft"/><text x="655" y="85" text-anchor="middle" class="tm-text" font-size="16" direction="rtl">خطاها روی هم</text><text x="655" y="108" text-anchor="middle" class="tm-muted" font-size="13" direction="rtl">جمع میشوند</text><path d="M250 90 L295 90" class="tm-line" marker-end="url(#arrow)"/><path d="M505 90 L550 90" class="tm-line" marker-end="url(#arrow)"/><rect x="40" y="180" width="720" height="80" rx="12" class="tm-soft"/><text x="400" y="210" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">پایان موفق</text><text x="400" y="238" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">فایل خوانا + شناسهٔ تجهیز تأییدشده + محل فایلِ مستند</text><rect x="40" y="300" width="720" height="95" rx="12" class="tm-accent"/><text x="400" y="330" text-anchor="middle" class="tm-text" font-size="17" direction="rtl">توقف ناموفق</text><text x="400" y="357" text-anchor="middle" class="tm-text2" font-size="15" direction="rtl">سه اقدام پیاپی بدون اطلاعات تازه</text><text x="400" y="380" text-anchor="middle" class="tm-muted" font-size="14" direction="rtl">یا نبود مسیر دسترسی مجاز</text></svg>
```
بازگشت به دوره