🌐 فراتر از مرزها؛ مسیر بین‌المللی CardDev

Agent planning and feedback

Chapters
10 Flashcards
9 Gallery cards
29 Audio
10 Prompts
10 Glossary

Imagine telling a model: "Search Wikipedia for Calgary, summarize each page and save it all in one file." A model with no planner does the search and stops right there, or fires everything in parallel and errors midway. Because the tasks are dependent, each step's output is the next step's input. That is where planning turns from a theoretical idea into a condition for execution. 🗺️ From tools to planner 🧰 Tool management: give few, necessary tools and isolate permissions; a rogue agent really does delete files 🧗 Sequential planning: the agent does the work behind the scenes in one cycle; models like Claude and OpenAI Assistants have this natively 🏗️ A custom planner: a prompt that takes the function list and goal and produces a JSON plan; a local engine runs it, cutting tokens and cost 🍓 Reasoning-centric models (like Strawberry): planning and reasoning inside the network itself, with the notion of test-time compute 🔬 Four components in applications | Component | What to weigh | |---|---| | 🎼 Planning | Vital for personal assistants and autonomous agents; less for customer bots | | 🧠 Reasoning | A cost in speed; essential in research | | 🏁 Evaluation | Continuous monitoring, not ceremony | | 🎨 Feedback | With the right answer, the model builds feedback for itself | 💡 Put feedback at the tail end of the pipeline so the correction loop does not become endless. And test an external planner on a model with native planning rather than assuming. 🧭 A decision even seniors must make Planning, reasoning, evaluation and feedback can each be switched on and off, and each has a cost: planning raises token use, reasoning slows things, evaluation needs criteria and badly managed feedback creates an endless loop. So the right architecture turns each component on only where it earns its keep: a voice assistant switches reasoning off for simple questions, while pharmaceutical research keeps it fully on.

Chapter

1

Cover of AI Agents in Action
Manning Publications

Chapter 11 of AI Agents in Action: Agent planning and feedback

Book release

Published

Chapter 11 progress
Book progress

Reading time

00:37

Gallery

Yes

Audio status

Preview

Analysis

AI