{"id":29688,"date":"2025-04-01T03:08:24","date_gmt":"2025-03-31T19:08:24","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=29688"},"modified":"2025-04-01T03:08:24","modified_gmt":"2025-03-31T19:08:24","slug":"optexity","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/de\/optexity\/","title":{"rendered":"Optexity\uff1a\u7528\u4eba\u7c7b\u6f14\u793a\u8bad\u7ec3AI\u6267\u884c\u7f51\u9875\u64cd\u4f5c\u7684\u5f00\u6e90\u9879\u76ee"},"content":{"rendered":"<p>Optexity \u662f\u4e00\u4e2a\u5728 GitHub \u4e0a\u5f00\u6e90\u7684\u9879\u76ee\uff0c\u7531 Optexity \u56e2\u961f\u5f00\u53d1\u3002\u5b83\u7684\u6838\u5fc3\u662f\u7528\u4eba\u7c7b\u6f14\u793a\u6570\u636e\u8bad\u7ec3 AI \u5b8c\u6210\u8ba1\u7b97\u673a\u4efb\u52a1\uff0c\u5c24\u5176\u662f\u7f51\u9875\u64cd\u4f5c\u3002\u9879\u76ee\u5305\u542b\u4e09\u4e2a\u4ee3\u7801\u5e93\uff1aComputerGYM\u3001AgentAI \u548c Playwright\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5f55\u5236\u64cd\u4f5c\u3001\u5904\u7406\u6570\u636e\u548c\u8bad\u7ec3\u6a21\u578b\uff0c\u8ba9 AI \u5b66\u4f1a\u70b9\u51fb\u6309\u94ae\u6216\u586b\u5199\u8868\u5355\u7b49\u4efb\u52a1\u3002\u6240\u6709\u4ee3\u7801\u514d\u8d39\uff0c\u7528\u6237\u53ef\u4ee5\u4e0b\u8f7d\u548c\u4fee\u6539\u3002\u672a\u6765\u8fd8\u4f1a\u652f\u6301\u81ea\u6211\u63a2\u7d22\u3001\u8f6f\u4ef6\u6587\u6863\u548c YouTube \u89c6\u9891\u8bad\u7ec3\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-29689\" title=\"Optexity\uff1a\u7528\u4eba\u7c7b\u6f14\u793a\u8bad\u7ec3AI\u6267\u884c\u7f51\u9875\u64cd\u4f5c\u7684\u5f00\u6e90\u9879\u76ee-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/eb9c4fed00f17c1.jpg\" alt=\"Optexity\uff1a\u7528\u4eba\u7c7b\u6f14\u793a\u8bad\u7ec3AI\u6267\u884c\u7f51\u9875\u64cd\u4f5c\u7684\u5f00\u6e90\u9879\u76ee-1\" width=\"877\" height=\"493\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/eb9c4fed00f17c1.jpg 1280w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/eb9c4fed00f17c1-768x432.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/eb9c4fed00f17c1-18x10.jpg 18w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u652f\u6301\u5f55\u5236\u4eba\u7c7b\u64cd\u4f5c\u6f14\u793a\uff0c\u8bad\u7ec3 AI \u5b8c\u6210\u7f51\u9875\u4efb\u52a1\u3002<\/li>\n<li>\u63d0\u4f9b MiniWoB++ \u7b49\u4efb\u52a1\u73af\u5883\uff0c\u5305\u542b\u70b9\u51fb\u548c\u8868\u5355\u64cd\u4f5c\u3002<\/li>\n<li>\u5904\u7406\u6f14\u793a\u6570\u636e\uff0c\u751f\u6210\u8bad\u7ec3\u7528\u683c\u5f0f\u3002<\/li>\n<li>\u652f\u6301 Gemini\u3001vLLM \u7b49\u6a21\u578b\uff0c\u53ef\u7528 LLaMA-Factory \u5fae\u8c03\u3002<\/li>\n<li>\u5f00\u6e90\u4ee3\u7801\u53ef\u4e0b\u8f7d\uff0c\u65b9\u4fbf\u7528\u6237\u81ea\u5b9a\u4e49\u529f\u80fd\u3002<\/li>\n<li>\u96c6\u6210 Playwright\uff0c\u63d0\u5347\u7f51\u9875\u81ea\u52a8\u5316\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>\u8981\u7528 Optexity\uff0c\u9700\u8981\u5148\u51c6\u5907\u73af\u5883\u3002\u4ee5\u4e0b\u662f\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li><strong>\u4e0b\u8f7d\u4ee3\u7801<\/strong><br \/>\n\u5728\u7ec8\u7aef\u8f93\u5165\uff1a<\/li>\n<\/ol>\n<pre><code>mkdir optexity\r\ncd optexity\r\ngit clone https:\/\/github.com\/Optexity\/ComputerGYM.git\r\ngit clone https:\/\/github.com\/Optexity\/AgentAI.git\r\ngit clone https:\/\/github.com\/Optexity\/playwright.git\r\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u4e0b\u8f7d\u4e09\u4e2a\u4ee3\u7801\u5e93\u3002<\/p>\n<ol start=\"2\">\n<li><strong>\u914d\u7f6e\u73af\u5883<\/strong><br \/>\n\u7528 Conda \u521b\u5efa\u73af\u5883\uff1a<\/li>\n<\/ol>\n<pre><code>conda create -n optexity python=3.10 nodejs\r\nconda activate optexity\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong><br \/>\n\u5b89\u88c5 ComputerGYM \u548c AgentAI\uff1a<\/li>\n<\/ol>\n<pre><code>pip install -e ComputerGYM\r\npip install -e AgentAI\r\n<\/code><\/pre>\n<p>\u518d\u5b89\u88c5 Playwright\uff1a<\/p>\n<pre><code>cd playwright\r\ngit checkout playwright_optexity\r\nnpm install\r\nnpm run build\r\nplaywright install\r\ncd ..\r\n<\/code><\/pre>\n<h3>\u4e3b\u8981\u529f\u80fd\u64cd\u4f5c<\/h3>\n<h4>\u5f55\u5236\u6f14\u793a<\/h4>\n<ol>\n<li>\u521b\u5efa\u00a0<code>demonstration_config.yaml<\/code>\uff0c\u53c2\u8003\u00a0<code>demonstration_config_example.yaml<\/code>\uff0c\u5199\u4e0b\u4efb\u52a1\u76ee\u6807\uff08\u6bd4\u5982\u201c\u70b9\u51fb\u6309\u94ae\u201d\uff09\u3002<\/li>\n<li>\u8fd0\u884c\u5f55\u5236\uff1a<\/li>\n<\/ol>\n<pre><code>.\/ComputerGYM\/computergym\/demonstrations\/demonstrate.sh ComputerGYM\/computergym\/demonstrations\/demonstration_config.yaml\r\n<\/code><\/pre>\n<p>\u7cfb\u7edf\u4f1a\u8bb0\u5f55\u4f60\u7684\u9f20\u6807\u548c\u952e\u76d8\u64cd\u4f5c\u3002<\/p>\n<h4>\u5904\u7406\u6570\u636e<\/h4>\n<p>\u5f55\u5236\u540e\u5904\u7406\u6570\u636e\uff1a<\/p>\n<pre><code>python ComputerGYM\/computergym\/demonstrations\/process_demonstration.py --yaml ComputerGYM\/computergym\/demonstrations\/demonstration_config.yaml --seed 5\r\n<\/code><\/pre>\n<p>\u8fd9\u4f1a\u628a\u64cd\u4f5c\u8f6c\u4e3a AI \u53ef\u8bfb\u683c\u5f0f\u3002<\/p>\n<h4>\u751f\u6210\u8bad\u7ec3\u6570\u636e<\/h4>\n<p>\u7528 AgentAI \u751f\u6210\u8bad\u7ec3\u6587\u4ef6\uff1a<\/p>\n<pre><code>python AgentAI\/agentai\/sft\/prepare_training_data.py --agent_config AgentAI\/agentai\/train_configs\/hubspot_agent.yaml\r\n<\/code><\/pre>\n<p>\u6587\u4ef6\u4fdd\u5b58\u5728\u00a0<code>train_data<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u9002\u914d LLaMA-Factory\u3002<\/p>\n<h4>\u8bad\u7ec3\u6a21\u578b<\/h4>\n<p>\u7528 LLaMA-Factory \u8bad\u7ec3\uff0c\u5177\u4f53\u770b\u5176\u6587\u6863\u3002\u8bad\u7ec3\u540e\u6a21\u578b\u90e8\u7f72\u5728\u00a0<code>http:\/\/localhost:8000<\/code>\u3002<\/p>\n<h4>\u6d4b\u8bd5 AI<\/h4>\n<p>\u6d4b\u8bd5 AI \u6548\u679c\uff0c\u6bd4\u5982\u5728 HubSpot \u6539\u8d27\u5e01\uff1a<\/p>\n<pre><code>python AgentAI\/agentai\/main.py --url \"https:\/\/app.hubspot.com\" --port 8000 --log_to_console --goal \"change currency to SGD\" --storage_state cache_dir\/auth.json --model <a href=\"https:\/\/www.kdjingpai.com\/de\/vllm\/\">vllm<\/a>\r\n<\/code><\/pre>\n<p>\u7ed3\u679c\u4f1a\u663e\u793a\u5728\u7ec8\u7aef\u3002<\/p>\n<h3>\u7279\u8272\u529f\u80fd\u64cd\u4f5c<\/h3>\n<h4>\u4eba\u7c7b\u6f14\u793a\u8bad\u7ec3<\/h4>\n<p>Optexity \u7684\u4eae\u70b9\u662f\u7528\u4eba\u7c7b\u64cd\u4f5c\u6559 AI\u3002\u4f60\u5f55\u4e00\u6b21\u64cd\u4f5c\uff0cAI \u5c31\u80fd\u5b66\u4f1a\u91cd\u590d\u3002\u5f55\u5236\u548c\u5904\u7406\u7b80\u5355\uff0c\u65b0\u624b\u4e5f\u80fd\u7528\u3002<\/p>\n<h4>\u6d4b\u8bd5\u539f\u59cb\u6a21\u578b<\/h4>\n<p>\u60f3\u76f4\u63a5\u8bd5 <a href=\"https:\/\/www.kdjingpai.com\/de\/geminibardgubu\/\">Gemini<\/a> \u6a21\u578b\uff1f\u8fd0\u884c\uff1a<\/p>\n<pre><code>EXPORT GEMINI_API_KEY=&lt;\u4f60\u7684\u5bc6\u94a5&gt;\r\npython AgentAI\/agentai\/main.py --url \"https:\/\/app.hubspot.com\" --port 8000 --log_to_console --goal \"change currency to SGD\" --storage_state cache_dir\/auth.json --model gemini\r\n<\/code><\/pre>\n<p>\u5bc6\u94a5\u53ef\u5728\u00a0<code>https:\/\/aistudio.google.com\/apikey<\/code>\u00a0\u514d\u8d39\u83b7\u53d6\u3002<\/p>\n<h4>MiniWoB++ \u96c6\u6210<\/h4>\n<p>MiniWoB++ \u63d0\u4f9b\u70b9\u51fb\u548c\u8868\u5355\u7b49\u4efb\u52a1\u3002\u8fd0\u884c\u65f6\uff0cAI \u4f1a\u5c1d\u8bd5\u5b8c\u6210\u76ee\u6807\uff0c\u7ec8\u7aef\u663e\u793a\u6210\u529f\u7387\u3002<\/p>\n<h4>\u5f00\u6e90\u6269\u5c55<\/h4>\n<p>\u4e09\u4e2a\u4ee3\u7801\u5e93\u90fd\u5f00\u6e90\u3002\u4f60\u53ef\u4ee5\u6539\u4ee3\u7801\u52a0\u529f\u80fd\uff0c\u6bd4\u5982\u65b0\u4efb\u52a1\uff0c\u6216\u8c03\u6574 Playwright \u903b\u8f91\uff0c\u63d0\u4ea4\u5230 GitHub \u8fd8\u80fd\u6210\u4e3a\u5b98\u65b9\u4e00\u90e8\u5206\u3002<\/p>\n<h3>\u64cd\u4f5c\u6d41\u7a0b\u603b\u7ed3<\/h3>\n<ol>\n<li>\u5b89\u88c5\u4ee3\u7801\u5e93\u548c\u73af\u5883\u3002<\/li>\n<li>\u5f55\u5236\u6f14\u793a\uff0c\u5904\u7406\u6570\u636e\u3002<\/li>\n<li>\u751f\u6210\u8bad\u7ec3\u6570\u636e\u5e76\u8bad\u7ec3\u6a21\u578b\u3002<\/li>\n<li>\u6d4b\u8bd5 AI\uff0c\u8c03\u6574\u53c2\u6570\u3002<\/li>\n<\/ol>\n<p>\u6b65\u9aa4\u6e05\u6670\uff0c\u51e0\u5206\u949f\u5c31\u80fd\u4e0a\u624b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>AI \u7814\u7a76<\/strong><br \/>\n\u7814\u7a76\u8005\u7528\u5b83\u6d4b\u8bd5 AI \u5728\u7f51\u9875\u4efb\u52a1\u4e0a\u7684\u8868\u73b0\u3002<\/li>\n<li><strong>\u7f51\u9875\u81ea\u52a8\u5316<\/strong><br \/>\n\u5f00\u53d1\u8005\u7528 AI \u81ea\u52a8\u5b8c\u6210\u91cd\u590d\u64cd\u4f5c\u3002<\/li>\n<li><strong>\u6559\u80b2\u5b9e\u8df5<\/strong><br \/>\n\u5b66\u751f\u7528\u5b83\u5b66\u4e60 AI \u8bad\u7ec3\u8fc7\u7a0b\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>QA<\/h2>\n<ol>\n<li><strong>\u9700\u8981\u7f16\u7a0b\u57fa\u7840\u5417\uff1f<\/strong><br \/>\n\u9700\u8981\u4e00\u70b9 Python \u548c\u7ec8\u7aef\u77e5\u8bc6\uff0c\u4f46\u6559\u7a0b\u8be6\u7ec6\uff0c\u5bb9\u6613\u5b66\u3002<\/li>\n<li><strong>LLaMA-Factory \u6709\u4ec0\u4e48\u7528\uff1f<\/strong><br \/>\n\u5b83\u662f\u5fae\u8c03\u5de5\u5177\uff0c\u628a\u6f14\u793a\u6570\u636e\u8f6c\u4e3a\u8bad\u7ec3\u683c\u5f0f\u3002<\/li>\n<li><strong>\u5fc5\u987b\u7528\u6f14\u793a\u8bad\u7ec3\u5417\uff1f<\/strong><br \/>\n\u4e0d\u5fc5\u987b\uff0c\u53ef\u4ee5\u76f4\u63a5\u6d4b\u8bd5\u539f\u59cb\u6a21\u578b\uff0c\u4f46\u6f14\u793a\u8bad\u7ec3\u6548\u679c\u66f4\u597d\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Optexity \u662f\u4e00\u4e2a\u5728 GitHub \u4e0a\u5f00\u6e90\u7684\u9879\u76ee\uff0c\u7531 Optexity \u56e2\u961f\u5f00\u53d1\u3002\u5b83\u7684\u6838\u5fc3\u662f\u7528\u4eba\u7c7b\u6f14\u793a\u6570\u636e\u8bad\u7ec3 AI \u5b8c\u6210\u8ba1\u7b97\u673a\u4efb\u52a1\uff0c\u5c24\u5176\u662f\u7f51\u9875\u64cd\u4f5c\u3002\u9879\u76ee\u5305\u542b\u4e09\u4e2a\u4ee3\u7801\u5e93\uff1aComputerGYM\u3001AgentAI \u548c Playwright&#8230;<\/p>\n","protected":false},"author":1,"featured_media":62179,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,365,373],"class_list":["post-29688","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-damoxingweidiao","tag-zhuomianzidonghuazhian"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/29688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/comments?post=29688"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/29688\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media\/62179"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media?parent=29688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/categories?post=29688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/tags?post=29688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}