id: b2ace06180994956ad693997d53664cb
parent_id: 
item_type: 1
item_id: e5864ec9d2544821a1c3401e18c3b9d8
item_updated_time: 1764372339018
title_diff: "[{\"diffs\":[[1,\"普通人也能用的AI炒股神器，CrewAI+MCP保姆级教学！\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":30}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\n<head>\\\n  <title>普通人也能用的AI炒股神器，CrewAI+MCP保姆级教学！</title>\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\n  <meta name=\\\"reminder-order\\\" content=\\\"2025/8/29 2:29\\\"/>\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\n  <style>\\\n\\tbody, td {\\\n\\t  font-family: 微软雅黑;\\\n\\t  font-size: 12pt;\\\n\\t}\\\n  </style>\\\n</head>\\\n<body>\\\n<a name=\\\"47796\\\"></a>\\\n<h1>普通人也能用的AI炒股神器，CrewAI+MCP保姆级教学！</h1>\\\n\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"https://mp.weixin.qq.com/s?__biz=MzIwMDE2MzkwMg==&amp;mid=2653356803&amp;idx=1&amp;sn=7582beaf82496aeedc3c7eee9acd149a&amp;chksm=8c7e353fadbac85f24f2c12f935530481bfe5fcb9e65114948555f2255385c63232cd3b65803&amp;mpshare=1&amp;scene=1&amp;srcid=11021KQewVuVJe1DNFBG5aJs&amp;sharer_shareinfo=feba2830f887f034db0eea5570747296&amp;sharer_shareinfo_first=feba2830f887f034db0eea5570747296#rd\\\"><span>https://mp.weixin.qq.com/s?__biz=MzIwMDE2MzkwMg==&amp;mid=265335...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><h1 style=\\\"margin:0;-webkit-tap-highlight-color:transparent\\\"> 普通人也能用的AI炒股神器，CrewAI+MCP保姆级教学！</h1><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"position:relative;-webkit-tap-highlight-color:transparent\\\">原创</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> AI Agent </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><a style=\\\"position:relative;-webkit-tap-highlight-color:transparent\\\"> AI Agent 领域 </a></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><em style=\\\"-webkit-tap-highlight-color:transparent\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">当今瞬息万变的市场中，数秒内就能创造数十亿美元的财富，因此等待数小时进行股票分析已经不再可行。想象一下，你只需输入“绘制X股票的收益图”，就能立即收到一张清晰的图表，无需手动收集数据、编写代码或调试。本指南将介绍如何使用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">CrewAI</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 和 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 构建一个</span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">个人市场分析师</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">。完成本指南后，你将拥有一个能够将自然语言查询转化为可操作的股票洞察的助手。</span></p><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目标</span></span></h2><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">我们使用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 驱动的金融分析师利用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">AI 代理</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">来简化金融数据分析。它弥合了复杂的金融数据源与用户查询之间的鸿沟，提供实时、情境感知的洞察。这种方法不仅节省时间、减少人为错误，还确保了更好的安全性、互操作性和透明度。</span></p><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">系统概览</span></span></h2><span style=\\\"-webkit-tap-highlight-color:transparent;text-align:center\\\"><img src=\\\":/13d7797fd3c14cea97a7e10aad4e9ee7\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;height:auto !important\\\"/></span><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"></h2><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">用户查询</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：一个自然语言请求，例如：“给我看特斯拉过去一年的股票表现。”</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP 代理</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：调用</span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">金融分析师团队（Financial Analyst Crew）</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">——一组专业的代理。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">代理协作</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：它们解析查询，生成 Python 代码，执行代码，并验证结果。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">输出</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：用户立即收到一张带有可操作洞察的清晰图表。</span></span></li></ul><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">构建个人市场分析师示例</span></span></h2><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">前提条件</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">以下是一些必需的 Python 包：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">pip install crewai crewai-tools pydantic yfinance python-dotenv</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">使用MCP构建AI驱动的金融分析师</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">我们将构建两个主要组件：</span></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">金融分析师团队（The Financial Analyst Crew）</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：由 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">CrewAI</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 代理支持，它们读取用户查询，创建并运行 Python 代码以可视化股票数据。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP 服务器文件（The MCP Server File）</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：一个 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">模型上下文协议（Model Context Protocol）</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 服务器，它将此功能作为 AI 工具呈现，以便可以直接插入到你的 AI 工作流中。</span></span></li></ul><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">下面我们来详细分解。</span></p><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">金融分析师团队 (The Financial Analyst Crew)</span></span></h2><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">这里是真正智能发生的地方。我们使用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">CrewAI</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 来协调具有不同角色的多个代理：</span></p><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">步骤1：定义输出结构</span></span></h3><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> pydantic </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> BaseModel</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">class</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#e6c07b;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">QueryAnalysisOutput</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">(BaseModel)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">:</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    symbols: list[str]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    timeframe: str</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    action: str</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">这个 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Pydantic</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 模型确保了从用户查询中进行结构化提取。</span></p><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">步骤2：配置 LLM</span></span></h3><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> crewai </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> Crew, Agent, Process, Task</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> langchain_openai </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> ChatOpenAI</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> langchain.llms </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> LLM</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#5c6370;font-style:italic;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 请注意，这里的 LLM 只是一个示例，可能需要根据实际使用的库进行调整</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">llm = LLM(</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    model=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;openai/gpt-4o&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    temperature=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#d19a66;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">0.7</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">步骤3：创建代理</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">代理1：查询解析器（Query Parser）</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">角色：股票数据分析师</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目标：提取股票详细信息并获取所需数据</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">将自然语言转化为结构化的 JSON</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">query_parser_agent = Agent(</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    role=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;Stock Data Analyst&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    goal=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;Extract stock details and fetch required data...&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    output_pydantic=QueryAnalysisOutput</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">代理2：代码编写器（Code Writer）</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">角色：高级 Python 开发人员</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目标：编写 Python 代码以可视化股票数据</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">使用 </span><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">yfinance</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">（获取股票数据）、</span><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">pandas</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">（数据处理）和 </span><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">matplotlib</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">（绘图）</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">code_writer_agent = Agent(</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    role=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;Senior Python Developer&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    goal=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;Write Python code to visualize stock data...&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">代理3：代码执行器（Code Executor）</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">角色：高级代码执行专家</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目标：执行生成的代码，并修复可能出现的错误</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">可以将任务委托给代码编写器进行修复</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">code_execution_agent = Agent(</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    role=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;Senior Code Execution Expert&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    allow_code_execution=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#56b6c2;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">True</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    allow_delegation=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#56b6c2;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">True</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">步骤4：团队处理流程</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">我们将按照以下顺序使用这些代理：</span></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">解析查询</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">编写 Python 代码</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">执行并验证结果</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">crew = Crew(</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    agents=[query_parser_agent, code_writer_agent, code_execution_agent],</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    tasks=[query_parsing_task, code_writer_task, code_execution_task],</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    process=Process.sequential</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">步骤5：主函数</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">该函数负责编排整个多代理系统，并返回最终可执行的 Python 代码。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">def</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#61aeee;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run_financial_analysis</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">(query)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">:</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    result = crew.kickoff(inputs={</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;query&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: query})</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">return</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> result.raw</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">现在我们将创建 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP 服务器文件</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：</span></p><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">创建接口</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：这个接口允许 AI 助手调用我们的函数。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> mcp.server.fastmcp </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> FastMCP</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">from</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> finance_crew </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">import</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> run_financial_analysis</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#5c6370;font-style:italic;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># FastMCP：一个轻量级的 MCP 服务器框架，用于将函数作为 AI 工具暴露。</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#5c6370;font-style:italic;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># run_financial_analysis：上述代码中负责所有繁重工作的主函数。</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h4 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(0,0,0);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">创建 MCP 实例</span></strong></span></h4><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">我们将 MCP 工具集命名为 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">“financial-analyst”</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">。这就像一个应用程序的名称。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">mcp = FastMCP(</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;financial-analyst&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">定义工具</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">工具1：analyze_stock()</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">接受一个自然语言查询。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">将其传递给金融分析师团队（我们的代理）。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">返回一个可以获取和可视化所请求股票数据的 Python 脚本字符串。</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#61aeee;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">@mcp.tool()</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">def</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#61aeee;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">analyze_stock</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">(query: str)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -&gt; str:</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    ...</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    result = run_financial_analysis(query)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">return</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> result</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">工具2：save_code()</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">将生成的 Python 代码保存到 </span><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">stock_analysis.py</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 文件中。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">确保文件有效且可执行。</span></span></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#61aeee;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">@mcp.tool()</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">def</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#61aeee;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">save_code</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">(code: str)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -&gt; str:</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">with</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> open(</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'stock_analysis.py'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'w'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">) </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">as</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> f:</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">        f.write(code)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">工具3：run_code_and_show_plot()</span></strong></p><ul style=\\\"margin:0;-webkit-tap-highlight-color:transparent;list-style-type:disc;margin-top:8px;margin-bottom:8px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:25px;padding-right:0;color:rgb(0,0,0)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">直接执行保存的脚本。</span></span></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;margin-top:5px;margin-bottom:5px;color:rgb(1,1,1);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;font-weight:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">实时生成所需的股票可视化图。</span></span></li></ul><h3 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,136,235);line-height:1.5em;letter-spacing:0;text-align:left;font-weight:bold;display:block\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">主函数</span></span></h3><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">该函数在本地通过 </span><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">stdio</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 运行 MCP 服务器，随时可以集成到任何支持 MCP 的 AI 平台。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;border-radius:5px;box-shadow:rgba(0,0,0,0.55) 0 2px 10px;text-align:left;margin-top:10px;margin-bottom:10px;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;display:block;background:none;height:30px;width:100%;background-size:40px;background-repeat:no-repeat;background-color:#282c34;margin-bottom:-7px;border-radius:5px;background-position:10px 10px;background-image:url(https://mmbiz.qpic.cn/mmbiz_svg/VNDQtnw16icIdlxFp2HsYvianlicpFcDo7S69ob1YiafVh3x8JxpticsXic9BtNJj7edyk2GXD3GibHKFNd5cOiathKpsmF9GhjoTupj/640?wx_fmt=svg&amp;from=appmsg)\\\"></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:#c678dd;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">if</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> __name__ == </span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;__main__&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">:</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    mcp.run(transport=</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:#98c379;line-height:26px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'stdio'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">效果展示</span></span></h2><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">有了这个设置，输入类似“绘制苹果过去6个月的股票表现”这样的查询，就能生成一个可直接使用的图表，无需手动编码。</span></p><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><h2 style=\\\"margin:0;-webkit-tap-highlight-color:transparent;margin-top:30px;margin-bottom:15px;margin-left:0;margin-right:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(0,0,0);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:none;display:block;flex-direction:unset;float:unset;height:auto;justify-content:unset;line-height:1.5em;overflow-x:unset;overflow-y:unset;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;text-align:left;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:18px;color:rgb(14,138,235);line-height:1.8em;letter-spacing:0;padding-top:0;padding-bottom:0;padding-left:10px;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:solid;border-right-style:none;border-top-width:1px;border-bottom-width:1px;border-left-width:5px;border-right-width:1px;border-top-color:rgb(0,0,0);border-bottom-color:rgb(0,0,0);border-left-color:rgb(14,136,235);border-right-color:rgb(0,0,0);border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;align-items:unset;background-attachment:scroll;background-clip:border-box;background-color:unset;background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;box-shadow:none;display:block;font-weight:bold;flex-direction:unset;float:unset;height:auto;justify-content:unset;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;overflow-x:unset;overflow-y:unset;text-align:left;text-indent:0;text-shadow:none;transform:none;width:auto;-webkit-box-reflect:unset\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">总结</span></span></h2><p style=\\\"margin:0;-webkit-tap-highlight-color:transparent;color:rgb(0,0,0);font-size:15px;line-height:1.8em;letter-spacing:0;text-align:left;text-indent:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:8px;padding-bottom:8px;padding-left:0;padding-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">使用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">CrewAI</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 构建一个 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(14,136,235);font-weight:bold;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position-x:0;background-position-y:0;background-repeat:no-repeat;background-size:auto;width:auto;height:auto;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;padding-left:0;padding-right:0;border-top-style:none;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-width:3px;border-bottom-width:3px;border-left-width:3px;border-right-width:3px;border-top-color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.4);border-left-color:rgba(0,0,0,0.4);border-right-color:rgba(0,0,0,0.4);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">MCP</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 驱动的金融分析师，展示了多代理系统如何改变金融分析。通过结合结构化查询解析、自动化 Python 代码生成和实时执行，我们消除了手动编码和调试的瓶颈。这个项目强调了 AI 代理如何高效处理复杂工作流，并为以用户为中心的金融分析树立了新的基准。</span></p></span></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":107569}]"
metadata_diff: {"new":{"id":"e5864ec9d2544821a1c3401e18c3b9d8","parent_id":"6546421c9ba54d9f918a94e36c85faee","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764372274729,"user_updated_time":1764372333664,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":1764372339018},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T23:34:29.435Z
created_time: 2025-11-28T23:34:29.435Z
type_: 13