The Real Fullstack

The Expensive Agent Loop

The task was “find invoice 4411 and email a summary”. Why did one run cost more than a month of the old script?

مهندس أول9 دقيقةمحاكي الخط الزمنيمختبر الأداء
ai-agentsllmpythonobservability

لم يُترجم هذا التحدي إلى العربية بعد. أنت تقرأ النسخة الإنجليزية.

المهمة:Keep a run under $0.10 and make it end usefully — with an answer or an explicit hand-over — instead of looping.السياق · أهداف التعلّم ▾

Larkspur's back-office agent can search documents, read files and send emails. A user typed “invoce 4411”. The search tool returned nothing, and the agent kept retrying the same query until it hit the 40-step limit, resending the growing conversation each time.

المهمة: Keep a run under $0.10 and make it end usefully — with an answer or an explicit hand-over — instead of looping.

أهداف التعلّم

  • Explain why agent costs grow quadratically with steps.
  • Detect repeated tool calls and force a change of strategy.
  • Use budgets and graceful escalation, not just step caps.
المحاكاةمحاكاة

شغّل المحاكاة لترى المخرجات.

تشغيل المحاكاة

شغّل المحاكاة لترى المخرجات.

تبسيط

Deterministic agent script; each step costs a base amount plus the accumulated history. نموذج تعليمي — الأرقام توضّح سلوكًا وليست قياسات أداء.

المفاهيم

تحديات ذات صلة

المراجع