{"id":12817,"date":"2025-07-03T20:10:25","date_gmt":"2025-07-03T12:10:25","guid":{"rendered":"https:\/\/ihower.tw\/blog\/?p=12817"},"modified":"2025-09-06T21:53:09","modified_gmt":"2025-09-06T13:53:09","slug":"context-engineering","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/12817-context-engineering","title":{"rendered":"\u4ec0\u9ebc\u662f Context Engineering \u4e0a\u4e0b\u6587\u5de5\u7a0b?"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><a href=\"https:\/\/ihower.tw\/opt-in\/gai\">\u6b61\u8fce\u8a02\u95b1 \ud83d\udcec<\/a>&nbsp;\u611b\u597d AI Engineer \u96fb\u5b50\u5831&nbsp;<a href=\"https:\/\/ihower.tw\/blog\/category\/aie\">\u904e\u5f80\u671f\u6578\u9ede\u9019<\/a>&nbsp;\ud83d\udcda<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"849\" data-attachment-id=\"12845\" data-permalink=\"https:\/\/ihower.tw\/blog\/12817-context-engineering\/image-17\" data-orig-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1.png\" data-orig-size=\"2160,1790\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-300x249.png\" data-large-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-1024x849.png\" src=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-1024x849.png\" alt=\"\" class=\"wp-image-12845\" style=\"width:864px;height:auto\" srcset=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-1024x849.png 1024w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-300x249.png 300w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-768x636.png 768w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-1536x1273.png 1536w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-2048x1697.png 2048w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-1-1568x1299.png 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-right\"><\/p>\n\n\n\n<p>Context Engineering \u9019\u500b\u8a5e\u6700\u8fd1\u5728 AI \u6280\u8853\u5708\u88ab\u63d0\u51fa\uff0c\u5305\u62ec <a href=\"https:\/\/x.com\/tobi\/status\/1935533422589399127\">Tobi L\u00fctke<\/a> (Shopify CEO)\u3001\u5927\u795e <a href=\"https:\/\/x.com\/karpathy\/status\/1937902205765607626\">Andrej Karpathy<\/a>\u3001<a href=\"https:\/\/x.com\/hwchase17\/status\/1937194145074020798\">Harrison Chase<\/a> (LangChain \u5275\u8fa6\u4eba) \u3001<a href=\"https:\/\/x.com\/jerryjliu0\/status\/1938271900104614046\">Jerry Liu<\/a> (Llamaindex \u5275\u8fa6\u4eba)\u3001<a href=\"https:\/\/x.com\/simonw\/status\/1938745355916714448\">Simon Willison<\/a> \u7b49\u5927\u5927\u90fd\u5728\u8a0e\u8ad6+1\u3002\u904e\u53bb\u5927\u5bb6\u719f\u77e5\u7684\u662f Prompt Engineering\uff0c\u4f46\u73fe\u5728\u767c\u73fe\u9019\u8a5e\u5df2\u7d93\u4e0d\u5920\u6db5\u84cb\u76ee\u524d\u5927\u5bb6\u5728\u505a\u7684\u4e8b\u60c5\uff0c\u800c\u4e14\u66f4\u591a\u4eba\u8aa4\u8a8d\u70ba\u9019\u53ea\u662f\u64b0\u5beb\u975c\u614b\u7684\u63d0\u793a\u8a5e\u800c\u5df2\uff0c\u800c\u5ffd\u7565\u4e86\u80cc\u5f8c\u6240\u9700\u8981\u7684\u5de5\u7a0b\u6280\u8853\u3002\u6280\u8853\u793e\u7fa4\u9700\u8981\u4e00\u500b\u65b0\u8853\u8a9e\u80fd\u66f4\u5ee3\u6cdb\u7d71\u7a31\u6240\u6709 Context \u7684\u52d5\u614b\u7ba1\u7406\uff0c\u5305\u62ec System\/User prompt\u3001RAG\u3001Memory\u3001Tool Calling\u3001\u7d50\u69cb\u5316\u8f38\u51fa\u3001Agent\u3001Multi-Agents \u7b49\u7b49\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ec0\u9ebc\u662f Context Engineering?<\/h2>\n\n\n\n<p>\u958b\u767c AI \u61c9\u7528\u9700\u8981\u5efa\u69cb\u4e00\u500b\u7cfb\u7d71\uff0c<strong>\u52d5\u614b\u6839\u64da\u7576\u524d\u4efb\u52d9\u548c\u72c0\u614b\uff0c\u63d0\u4f9b\u6b63\u78ba\u7684\u8cc7\u8a0a\u548c\u5de5\u5177\u7d66 LLM \u5927\u6a21\u578b<\/strong>\uff0c\u8b93\u5b83\u6709\u8db3\u5920\u7684\u689d\u4ef6\u5b8c\u6210\u4efb\u52d9\uff0c\u9019\u5c31\u53eb\u505a Context Engineering \u4e0a\u4e0b\u6587\u5de5\u7a0b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/x.com\/tobi\/status\/1935533422589399127\">Tobi L\u00fctke<\/a> (Shopify CEO) \u8aaa\uff1a\u300c\u6211\u771f\u7684\u559c\u6b61 context engineering \u9019\u500b\u8a5e\u52dd\u904e prompt engineering\u3002\u5b83\u66f4\u597d\u5730\u63cf\u8ff0\u4e86\u6838\u5fc3\u6280\u80fd: \u63d0\u4f9b\u6240\u6709\u4e0a\u4e0b\u6587\u8b93 LLM \u80fd\u5408\u7406\u89e3\u6c7a\u4efb\u52d9\u7684\u85dd\u8853\u3002\u300d<\/p>\n\n\n\n<p>LangChain \u5728 <a href=\"https:\/\/blog.langchain.com\/the-rise-of-context-engineering\/\">&#8220;The rise of &#8220;context engineering&#8221; <\/a>\u6587\u7ae0\u4e2d\u8aaa\uff1a\u300cContext engineering \u662f\u5efa\u69cb\u52d5\u614b\u7cfb\u7d71\uff0c\u4ee5\u6b63\u78ba\u7684\u683c\u5f0f\u63d0\u4f9b\u6b63\u78ba\u7684\u8cc7\u8a0a\u548c\u5de5\u5177\uff0c\u4f7f LLM \u80fd\u5920\u5408\u7406\u5730\u5b8c\u6210\u4efb\u52d9\u3002\u300d<\/p>\n\n\n\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=LCEmiRjPEtQ&amp;t=620s\">Andrej Karpathy<\/a> \u8aaa: \u300cLLM \u5c31\u50cf\u65b0\u578b\u4f5c\u696d\u7cfb\u7d71\uff0c\u6a21\u578b\u662f CPU\uff0c\u800c Context window \u5c31\u662f RAM\u3002Context engineering \u662f\u7cbe\u5de7\u5730\u628a\u5c0d\u7684\u8cc7\u8a0a\u5728\u5c0d\u7684\u6642\u6a5f\u585e\u9032 context window \u7684\u5fae\u5999\u85dd\u8853\u8207\u79d1\u5b78\u3002\u300d<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Context \u5305\u542b\u4ec0\u9ebc\uff1f<\/h2>\n\n\n\n<p>\u53c3\u8003 <a href=\"https:\/\/www.philschmid.de\/context-engineering\">Philipp Schmid \u7684 The New Skill in AI is Not Prompting, It&#8217;s Context Engineering <\/a>\u4ee5\u53ca Llamaindex \u7684 <a href=\"https:\/\/www.llamaindex.ai\/blog\/context-engineering-what-it-is-and-techniques-to-consider\">Context Engineering &#8211; What it is, and techniques to consider<\/a> \u5169\u7bc7\u6587\u7ae0\uff0c\u5217\u8209 Context \u4e0d\u50c5\u50c5\u662f\u4f60\u50b3\u9001\u7d66 LLM \u7684\u90a3\u6bb5 prompt\uff0c\u800c\u662f\u6a21\u578b\u5728\u56de\u61c9\u4e4b\u524d\u6240\u770b\u5230\u7684\u6240\u6709\u5167\u5bb9\uff0c\u9019\u5305\u62ec<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Instructions \/ System Prompt<\/strong>: \u5b9a\u7fa9\u6a21\u578b\u884c\u70ba\u7684\u521d\u59cb\u6307\u4ee4\u548c\u98a8\u683c<\/li>\n\n\n\n<li><strong>User Prompt \/ User Input<\/strong>: \u4f7f\u7528\u8005\u7684\u8acb\u6c42\u3001\u554f\u984c\u6216\u8f38\u5165<\/li>\n\n\n\n<li><strong>State \/ History<\/strong>: \u7576\u524d\u5c0d\u8a71\u7684\u804a\u5929\u6b77\u53f2\uff0c\u5305\u542b\u6240\u6709\u4f7f\u7528\u8005\u548c\u6a21\u578b\u7684\u56de\u61c9\uff0c\u9019\u53c8\u53eb\u505a\u300c\u77ed\u671f\u8a18\u61b6\u300d<\/li>\n\n\n\n<li><strong>Long-Term Memory<\/strong>: \u8de8\u5c0d\u8a71\u7684\u6301\u4e45\u77e5\u8b58\u5eab\uff0c\u5305\u542b\u5b78\u7fd2\u5230\u7684\u4f7f\u7528\u8005\u504f\u597d\u3001\u904e\u53bb\u5c0d\u8a71\u6458\u8981\u3001\u88ab\u544a\u77e5\u8981\u8a18\u4f4f\u7684\u4e8b\u5be6\uff0c\u9019\u53c8\u53eb\u505a\u300c\u9577\u671f\u8a18\u61b6\u300d<\/li>\n\n\n\n<li><strong>Retrieved Information (RAG)<\/strong>: \u5916\u90e8\u7684\u6700\u65b0\u77e5\u8b58\uff0c\u5f9e\u6587\u4ef6\u3001\u8cc7\u6599\u5eab\u6216 API \u6aa2\u7d22\u7684\u76f8\u95dc\u8cc7\u8a0a<\/li>\n\n\n\n<li><strong>Available Tools<\/strong>: \u6240\u6709\u53ef\u547c\u53eb\u7684\u51fd\u6578\u6216\u5de5\u5177\u5b9a\u7fa9<\/li>\n\n\n\n<li><strong>Responses from tools<\/strong>: \u5de5\u5177\u57f7\u884c\u7684\u7d50\u679c<\/li>\n\n\n\n<li><strong>Structured Output<\/strong>: \u5b9a\u7fa9\u6a21\u578b\u56de\u61c9\u683c\u5f0f\uff0c\u4f8b\u5982 JSON \u6216 XML<\/li>\n\n\n\n<li><strong>Global State \/ Workflow Context<\/strong>: \u5728\u591a\u6b65\u9a5f\u9a5f Agent \u6216 Workflow \u4e2d\uff0c\u66ab\u5b58\u5168\u57df\u8b8a\u6578\u3001\u4efb\u52d9\u9032\u5ea6\u3001\u5148\u524d\u7d50\u679c\u7b49\u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e0a\u8ff0\u7d44\u5408\u69cb\u6210\u4e86\u76ee\u524d\u5e7e\u4e4e\u6240\u6709 AI \u61c9\u7528\u4e2d\u6703\u51fa\u73fe\u7684 context \u5167\u5bb9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Context Engineering \u7684\u56db\u7a2e\u65b9\u5f0f<\/h2>\n\n\n\n<p>Lance Martin (LangChain \u6838\u5fc3\u958b\u767c\u8005) \u5beb\u4e86\u4e00\u7bc7 <a href=\"https:\/\/rlancemartin.github.io\/2025\/06\/23\/context_engineering\/\">Context Engineering for Agents \u6587\u7ae0<\/a>\uff0c\u5c07\u4e0a\u4e0b\u6587\u5de5\u7a0b\u6703\u7528\u5230\u7684\u65b9\u5f0f\u6b78\u7d0d\u70ba\u56db\u985e\uff0c\u6211\u7c21\u55ae\u7e3d\u7d50\u548c\u88dc\u5145\u5982\u4e0b\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u5beb\u5165 Context: <\/h4>\n\n\n\n<p>\u52d5\u614b\u5c07\u8cc7\u8a0a\u4fdd\u5b58\u5728 context window \u4e4b\u5916\uff0c\u4f8b\u5982\u8de8\u5c0d\u8a71\u8a18\u61b6\u7528\u6236\u504f\u597d\uff0c\u5f62\u6210\u9577\u671f\u8a18\u61b6(Memory)\u7684\u6548\u679c\u3002<a href=\"https:\/\/help.openai.com\/en\/collections\/8471548-memory\">ChatGPT<\/a> \u5c31\u5f88\u559c\u6b61\u505a\u9577\u671f\u8a18\u61b6\u7684\u529f\u80fd\uff0c\u66f4\u591a Agent Memory \u8cc7\u6599\u53ef\u4ee5\u53c3\u8003<a href=\"https:\/\/ihower.tw\/notes\/AI-Engineer\/Agent\/Agent+Memory\">\u6211\u7684\u7b46\u8a18<\/a>\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u9078\u64c7 Context<\/h4>\n\n\n\n<p>\u5c07\u76f8\u95dc\u5167\u5bb9\u62c9\u9032 context window\uff0c\u9019\u5305\u62ec\u5f9e Memory \u62c9\u51fa\u9700\u8981\u7684\u56de\u61b6\u3001\u6839\u64da\u7576\u4e0b\u4efb\u52d9\u52d5\u614b\u6311\u9078\u5de5\u5177\u3001\u900f\u904e RAG \u6aa2\u7d22\u62ff\u5230\u7684\u76f8\u95dc\u8cc7\u6599 \u3002\u66f4\u591a RAG \u8cc7\u6599\u53ef\u4ee5\u53c3\u8003<a href=\"https:\/\/ihower.tw\/notes\/rag-guideline\">\u6211\u7684\u7b46\u8a18<\/a>\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. \u58d3\u7e2e Context<\/h4>\n\n\n\n<p>\u7531\u65bc\u6a21\u578b\u6709 context window \u9650\u5236\uff0c\u5728\u8d85\u904e\u67d0\u500b\u95a5\u503c\u6642\uff0c\u6211\u5011\u53ea\u4fdd\u7559\u57f7\u884c\u4efb\u52d9\u6240\u9700\u7684 tokens\u3002\u4f8b\u5982 Claude Code \u5728\u8d85\u904e 95% context window \u6642\u57f7\u884c\u6703 auto-compact\uff0c\u5c07\u76ee\u524d\u72c0\u614b\u7e3d\u7d50\u5b58\u4e0b\u4f86\uff0c\u518d\u91cd\u65b0\u958b\u59cb\u3002\u6216\u662f\u5176\u4ed6\u4fee\u526a\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. \u9694\u96e2 context<\/h4>\n\n\n\n<p>\u5c07 context \u62c6\u5206\u4ee5\u5354\u52a9\u4efb\u52d9\u57f7\u884c\uff0c\u901a\u5e38\u51fa\u73fe\u5728 Multi-Agents \u7684\u5be6\u4f5c\uff0c\u4f8b\u5982 OpenAI Agnets SDK \u7684 <a href=\"https:\/\/openai.github.io\/openai-agents-python\/tools\/#agents-as-tools\">Agents as Tools<\/a>\uff0c<a href=\"https:\/\/ihower.tw\/blog\/archives\/12776\">Anthropic \u7684 Multi-Agent Research<\/a> \u7b49\u7b49\uff0c\u90fd\u662f\u628a\u4efb\u52d9\u62c6\u5206\u5230\u53e6\u4e00\u500b Sub Agent \u53bb\u57f7\u884c\uff0c\u57f7\u884c\u5b8c\u6210\u56de\u4f86\u5c31\u53ea\u6703\u6709\u7d50\u679c\uff0c\u5982\u6b64\u53ef\u4ee5\u5927\u5e45\u7bc0\u7701 Lead Agent \u7684 context \u7528\u91cf\u3002<\/p>\n\n\n\n<p>\u4e0d\u904e\u9694\u96e2 context \u6703\u6709\u7121\u6cd5\u6709\u6548\u5171\u4eab\u8cc7\u8a0a\u7684\u554f\u984c\uff0c\u8a73\u898b <a href=\"https:\/\/ihower.tw\/blog\/archives\/12776\">Multi-Agent \u6216 Single-Agent \u67b6\u69cb\u8a0e\u8ad6<\/a> \u4e00\u6587\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u8a02\u683c\u5f0f<\/h2>\n\n\n\n<p>\u6700\u65e9\u63d0\u51fa Context Engineering \u8a5e\u5f59\u7684\uff0c\u53ef\u80fd\u662f <a href=\"https:\/\/github.com\/humanlayer\/12-factor-agents\/blob\/main\/content\/factor-03-own-your-context-window.md\">12-factor-agents \u7684 Own your context window<\/a> \u9019\u7bc7\u5167\u5bb9\u3002\u4f5c\u8005 Dex \u9019\u6a23\u8aaa\uff1a\u5728\u4efb\u4f55\u6642\u523b\uff0c\u4f60\u5c0d\u4ee3\u7406\u4eba\u4e2d\u7684 LLM \u7684\u8f38\u5165\u90fd\u662f\u300c\u9019\u662f\u76ee\u524d\u70ba\u6b62\u767c\u751f\u7684\u4e8b\u60c5\uff0c\u4e0b\u4e00\u6b65\u662f\u4ec0\u9ebc\u300d\u3002\u4e00\u5207\u90fd\u662f\u4e0a\u4e0b\u6587\u5de5\u7a0b\u3002LLM \u662f\u7121\u72c0\u614b\u51fd\u6578\uff0c\u5c07\u8f38\u5165\u8f49\u63db\u70ba\u8f38\u51fa\u3002\u8981\u7372\u5f97\u6700\u4f73\u8f38\u51fa\uff0c\u4f60\u9700\u8981\u7d66\u5b83\u5011\u6700\u4f73\u7684\u8f38\u5165\u3002<\/p>\n\n\n\n<p>Dex \u751a\u81f3\u63d0\u51fa\uff0c\u4e0d\u4e00\u5b9a\u9700\u8981\u7167\u6a21\u578b\u5ee0\u5546\u8a2d\u8a08\u597d\u7684 message-based \u683c\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5efa\u7acb\u5c08\u70ba\u4f60\u7684\u4f7f\u7528\u60c5\u5883\u6700\u4f73\u5316\u7684 context \u683c\u5f0f\uff0c\u4f8b\u5982\u628a context \u7528 XML  \u683c\u5f0f\u90fd\u585e\u5230\u55ae\u4e00 user prompt \u88e1\u9762\u3002\u9019\u6a23\u7684\u597d\u8655\u662f\u7372\u5f97\u6700\u5927\u7684\u8cc7\u8a0a\u5bc6\u5ea6\uff1a\u76f8\u540c\u8a0a\u606f\uff0c\u4f7f\u7528\u66f4\u5c11 Tokens\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-scaled.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" data-attachment-id=\"12854\" data-permalink=\"https:\/\/ihower.tw\/blog\/12817-context-engineering\/image-18\" data-orig-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-scaled.png\" data-orig-size=\"2560,1440\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-300x169.png\" data-large-file=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-1024x576.png\" src=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-1024x576.png\" alt=\"\" class=\"wp-image-12854\" style=\"width:746px;height:auto\" srcset=\"https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-1024x576.png 1024w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-300x169.png 300w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-768x432.png 768w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-1536x864.png 1536w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-2048x1152.png 2048w, https:\/\/ihower.tw\/blog\/wp-content\/uploads\/2025\/07\/image-2-1568x882.png 1568w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u9019\u662f Dex \u7684 Context Engineering \u5716\u793a\u7248\u672c\uff0c\u6ce8\u610f\u5230\u6587\u7ae0\u6700\u4e0a\u9762\u4f86\u81ea Philipp Schmid \u7684\u5716\u793a\u76f8\u6bd4\uff0c\u5c11\u4e86 Tools\u3002\u9019\u662f\u56e0\u70ba Dex \u8a8d\u70ba <a href=\"https:\/\/github.com\/humanlayer\/12-factor-agents\/blob\/main\/content\/factor-04-tools-are-structured-outputs.md\">Tools are just structured outputs<\/a>\uff0c\u5de5\u5177\u6c92\u4ec0\u9ebc\u7279\u5225\uff0c\u53ea\u8981 LLM \u8f38\u51fa JSON\uff0c\u5c31\u80fd\u4ea4\u7d66\u78ba\u5b9a\u6027\u7a0b\u5f0f\u78bc\u57f7\u884c\u3002\u56e0\u6b64\u4ed6\u6c92\u6709\u7528\u6a21\u578b\u5ee0\u5546\u63d0\u4f9b\u7684 function calling \u683c\u5f0f\uff0c\u800c\u662f\u7528\u81ea\u8a02\u7684\u683c\u5f0f\u4f86\u505a\u5de5\u5177\u547c\u53eb\u3002<\/p>\n\n\n\n<p>\u6211\u611f\u89ba Dex \u7684 <a href=\"https:\/\/github.com\/humanlayer\/12-factor-agents\">12-Factor Agents &#8211; Principles for building reliable LLM applications<\/a> \u5c31\u50cf\u662f Agent \u958b\u767c\u7684\u7b2c\u4e00\u6027\u539f\u7406\uff0c\u6c92\u6709\u63a1\u7528\u4efb\u4f55 LLM \u958b\u767c\u6846\u67b6\uff0c\u7d66\u4e86\u6211\u5f88\u591a\u555f\u767c\uff0c\u975e\u5e38\u503c\u5f97\u4e00\u770b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u70ba\u4f55 Context Engineering \u91cd\u8981?<\/h2>\n\n\n\n<p>LLM \u5c31\u50cf\u4e00\u4f4d\u88ab\u95dc\u5728\u623f\u9593\u88e1\u7684\u5929\u624d\uff0c\u7121\u6cd5\u4e3b\u52d5\u5b78\u7fd2\u6216\u64cd\u4f5c\u4e16\u754c\uff0c\u4e5f\u6c92\u8fa6\u6cd5\u5b58\u53d6\u5373\u6642\u8cc7\u8a0a\u6216\u4f7f\u7528\u96fb\u8166\u3002\u5927\u6a21\u578b\u7684\u300c\u539f\u59cb\u667a\u529b\u300d\u4e0d\u7b49\u65bc\u300c\u667a\u6167\u8edf\u9ad4\u7cfb\u7d71\u300d\u3002\u5927\u6a21\u578b LLM \u7684\u300c\u667a\u529b\u300d\u53ea\u662f\u57fa\u77f3\uff0c\u8981\u628a\u5b83\u8f49\u5316\u6210\u771f\u6b63\u6709\u6548\u7684\u667a\u6167\u7cfb\u7d71\uff0c\u9084\u9700\u8981\u5169\u500b\u95dc\u9375:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ud83d\udd27 \u5de5\u5177\u6574\u5408: \u8b93\u6a21\u578b\u80fd\u5be6\u969b\u64cd\u4f5c\u3001\u67e5\u8cc7\u6599\u3001\u8a18\u61b6\u8207\u56de\u61c9<\/li>\n\n\n\n<li>\ud83d\udce6 \u6b63\u78ba\u7684\u4e0a\u4e0b\u6587(context): \u4f9d\u7167\u4efb\u52d9\u52d5\u614b\u63d0\u4f9b\u6a21\u578b\u9700\u8981\u77e5\u9053\u7684\u8cc7\u8a0a<\/li>\n<\/ul>\n\n\n\n<p>\u4e0a\u4e0b\u6587\u7ba1\u7406\u662f\u6253\u9020\u5f37\u5927 Agent \u6642\uff0c\u6211\u5011 AI \u5de5\u7a0b\u5e2b\u6700\u9700\u8981\u6295\u5165\u5fc3\u529b\u7684\u5730\u65b9\u3002Context \u4e26\u975e\u514d\u8cbb\uff0c\u6bcf\u500b token \u90fd\u662f\u6210\u672c\uff0c\u4e5f\u90fd\u6703\u5f71\u97ff\u6a21\u578b\u884c\u70ba\u3002<\/p>\n\n\n\n<p>\u9019\u5c31\u662f Context Engineering: <strong>\u52d5\u614b\u8655\u7406\u300cLLM \u5728\u7576\u524d\u4efb\u52d9\u4e2d\u6240\u9700\u8981\u7684\u6240\u6709\u8cc7\u8a0a\u548c\u5de5\u5177\u300d<\/strong>\u3002\u5efa\u7acb\u5f37\u5927\u53ef\u9760\u7684 AI \u7cfb\u7d71\u8d8a\u4f86\u8d8a\u4e0d\u662f\u627e\u5230\u67d0\u500b\u795e\u5947\u7684 prompt \u6216\u63db\u66f4\u53b2\u5bb3\u7684\u6a21\u578b\uff0c\u800c\u5728\u65bc\u5728\u6b63\u78ba\u7684\u6642\u9593\uff0c\u63d0\u4f9b\u6b63\u78ba\u7684 context \u548c\u5de5\u5177\u3002<\/p>\n\n\n\n<p>\u5f8c\u7e8c\u66f4\u591a\u8cc7\u6599\u53ef\u4ee5\u53c3\u8003\u6211\u7684\u7b46\u8a18: <a href=\"https:\/\/ihower.tw\/notes\/context-engineering\">Context Engineering \u4e0a\u4e0b\u6587\u5de5\u7a0b<\/a>\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u60f3\u7cfb\u7d71\u6027\u5b78\u7fd2 Context Engineering? \u6b61\u8fce\u53c3\u8003\u6211\u7684\u8ab2\u7a0b \ud83d\udc49&nbsp;<a href=\"https:\/\/aihao.tw\/llm\">\u5927\u8a9e\u8a00\u6a21\u578b LLM \u61c9\u7528\u958b\u767c\u5de5\u4f5c\u574a<\/a><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u6b61\u8fce\u8a02\u95b1 \ud83d\udcec&nbsp;\u611b\u597d AI Engineer \u96fb\u5b50\u5831&nbsp;\u904e\u5f80\u671f\u6578\u9ede\u9019&nbsp;\ud83d\udcda Conte &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/12817-context-engineering\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u4ec0\u9ebc\u662f Context Engineering \u4e0a\u4e0b\u6587\u5de5\u7a0b?\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[80],"tags":[],"class_list":["post-12817","post","type-post","status-publish","format-standard","hentry","category-llm","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-3kJ","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/12817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/comments?post=12817"}],"version-history":[{"count":69,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/12817\/revisions"}],"predecessor-version":[{"id":13217,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/12817\/revisions\/13217"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=12817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=12817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=12817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}