1、A practical guide to building agentsContentsWhat is an agent?4When should you build an agent?5Agent design foundations7Guardrails24Conclusion322Practical guide to building agentsIntroductionLarge language models are becoming increasingly capable of handling complex,multi-step tasks.Advances in reaso
2、ning,multimodality,and tool use have unlocked a new category of LLM-powered systems known as agents.This guide is designed for product and engineering teams exploring how to build their first agents,distilling insights from numerous customer deployments into practical and actionable best practices.I
3、t includes frameworks for identifying promising use cases,clear patterns for designing agent logic and orchestration,and best practices to ensure your agents run safely,predictably,and effectively.After reading this guide,youll have the foundational knowledge you need to confidently start building y
4、our first agent.3A practical guide to building agentsWhat is an agent?While conventional software enables users to streamline and automate workflows,agents are able to perform the same workflows on the users behalf with a high degree of independence.Agents are systems that independently accomplish t
5、asks on your behalf.A workflow is a sequence of steps that must be executed to meet the users goal,whether thats resolving a customer service issue,booking a restaurant reservation,committing a code change,or generating a report.Applications that integrate LLMs but dont use them to control workflow
6、executionthink simple chatbots,single-turn LLMs,or sentiment classifiersare not agents.More concretely,an agent possesses core characteristics that allow it to act reliably and consistently on behalf of a user:01It leverages an LLM to manage workflow execution and make decisions.It recognizes when a