{"id":90558,"date":"2024-12-30T20:00:44","date_gmt":"2024-12-30T16:30:44","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/"},"modified":"2024-12-30T20:00:44","modified_gmt":"2024-12-30T16:30:44","slug":"cross-framework-llm-tool-integration-with-ag2-jlp","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/","title":{"rendered":"\u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631 Cross-Framework LLM \u0628\u0627 AG2"},"content":{"rendered":"<div data-article-id=\"2181540\" id=\"article-body\">\n<p>\u0646\u0648\u06cc\u0633\u0646\u062f\u0647: \u0631\u0627\u0628\u0631\u062a \u062c\u0627\u0645\u0628\u0631\u0633\u06cc\u0686<\/p>\n<hr\/>\n<p><strong>TL; DR<\/strong><\/p>\n<p>AG2 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f <strong>\u0627\u0628\u0632\u0627\u0631<\/strong> \u0627\u0632 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0645\u0627\u0646\u0646\u062f <strong>LangChain<\/strong>\u060c <strong>CrewAI<\/strong>\u060c \u0648 <strong>PydanticAI<\/strong>.<\/p>\n<ul>\n<li>\n<p><strong>\u0627\u0628\u0632\u0627\u0631 LangChain<\/strong>: \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u067e\u0631\u0633 \u0648 \u062c\u0648\u06cc API \u0648 \u0627\u0633\u06a9\u0631\u0627\u067e\u06cc \u0648\u0628 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a.<\/p>\n<\/li>\n<li>\n<p><strong>\u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI<\/strong>: \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628\u060c \u062c\u0633\u062a\u062c\u0648 \u0648 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>\u0627\u0628\u0632\u0627\u0631 PydanticAI<\/strong>: \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0632\u0645\u06cc\u0646\u0647 \u0648 \u067e\u0631\u062f\u0627\u0632\u0634 \u0633\u0627\u062e\u062a\u0627\u0631 \u06cc\u0627\u0641\u062a\u0647 \u062f\u0627\u062f\u0647 \u0631\u0627 \u0627\u0636\u0627\u0641\u0647 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<\/ul>\n<p><\/p>\n<p><strong>\u0628\u0627 AG2 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0631\u0627 \u062a\u0631\u06a9\u06cc\u0628 \u06a9\u0631\u062f\u0647 \u0648 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0646\u0645\u0627\u06cc\u0646\u062f\u06af\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f.<\/strong><\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a\u060c \u0646\u062d\u0648\u0647 \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0627\u0632 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0631\u0627 \u062a\u0648\u0636\u06cc\u062d \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f <strong>\u0627\u0628\u0632\u0627\u0631 LangChain<\/strong>\u060c <strong>\u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI<\/strong>\u060c \u0648 <strong>\u0627\u0628\u0632\u0627\u0631 PydanticAI<\/strong>&#8211; \u0628\u0647 AG2.<\/p>\n<p>\u0632\u06cc\u0631\u0627\u060c \u0648\u0627\u0642\u0639\u0627\u064b\u060c \u062c\u0627\u062f\u0648 \u0632\u0645\u0627\u0646\u06cc \u0627\u062a\u0641\u0627\u0642 \u0645\u06cc \u0627\u0641\u062a\u062f \u06a9\u0647 \u0647\u0645\u0647 \u0622\u0646\u0647\u0627 \u0631\u0627 \u062a\u0631\u06a9\u06cc\u0628 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc\u06cc \u0627\u0632 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0631 AG2 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0647 \u0646\u0645\u0627\u06cc\u0646\u062f\u06af\u0627\u0646 \u062e\u0648\u062f \u0642\u062f\u0631\u062a \u0648 \u0627\u0646\u0639\u0637\u0627\u0641 \u0628\u06cc\u0634\u062a\u0631\u06cc \u0645\u06cc \u062f\u0647\u062f. \u0627\u06cc\u0646 \u0648\u0628\u0644\u0627\u06af \u0628\u0631 \u0627\u0633\u0627\u0633 \u0645\u0641\u0627\u0647\u06cc\u0645 \u062a\u062d\u062a \u067e\u0648\u0634\u0634 \u0627\u0633\u062a <strong>\u0646\u0648\u062a \u0628\u0648\u06a9 \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631<\/strong>.<\/p>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a\u060c \u0646\u062d\u0648\u0647 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644 \u0647\u0627\u060c \u062a\u0637\u0628\u06cc\u0642 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 AG2 \u0648 \u0627\u0639\u062a\u0628\u0627\u0631\u0633\u0646\u062c\u06cc \u0627\u062f\u063a\u0627\u0645 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u062b\u0627\u0644 \u0647\u0627\u06cc \u0639\u0645\u0644\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u0641\u0647\u0645\u06cc\u062f.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter-rtl ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u0641\u0647\u0631\u0633\u062a \u0645\u0637\u0627\u0644\u0628<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%A7%D8%AF%D8%BA%D8%A7%D9%85_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1%D9%87%D8%A7%DB%8C_LangChain\" >\u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc LangChain<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C\" >\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA\" >\u0648\u0627\u0631\u062f\u0627\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84\" >\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1\" >\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA\" >\u0634\u0631\u0648\u0639 \u0686\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%AE%D8%B1%D9%88%D8%AC%DB%8C\" >\u062e\u0631\u0648\u062c\u06cc<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1%D9%87%D8%A7%DB%8C_CrewAI\" >\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C-2\" >\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA-2\" >\u0648\u0627\u0631\u062f\u0627\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84-2\" >\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1-2\" >\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA-2\" >\u0634\u0631\u0648\u0639 \u0686\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%AE%D8%B1%D9%88%D8%AC%DB%8C-2\" >\u062e\u0631\u0648\u062c\u06cc<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1_PydanticAI\" >\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631 PydanticAI<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C-3\" >\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA-3\" >\u0648\u0627\u0631\u062f\u0627\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84-3\" >\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1-3\" >\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA-3\" >\u0634\u0631\u0648\u0639 \u0686\u062a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%AE%D8%B1%D9%88%D8%AC%DB%8C-3\" >\u062e\u0631\u0648\u062c\u06cc<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D8%B1%D8%A7%D8%AE%D9%84%D8%A7%D8%B5%D9%87\" >\u0631\u0627\u062e\u0644\u0627\u0635\u0647<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/nabfollower.com\/blog\/cross-framework-llm-tool-integration-with-ag2-jlp\/#%D9%BE%DB%8C%D8%AF%D8%A7_%DA%A9%D8%B1%D8%AF%D9%86_%D8%A7%DB%8C%D9%86_%D9%85%D9%81%DB%8C%D8%AF_%D8%A7%D8%B3%D8%AA%D8%9F\" >\u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a\u061f<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%D8%A7%D8%AF%D8%BA%D8%A7%D9%85_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1%D9%87%D8%A7%DB%8C_LangChain\"><\/span>\n<p>  <strong>\u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc LangChain<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>LangChain \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u0645\u062d\u0628\u0648\u0628 \u0628\u0627 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631 \u0628\u0627 LLM \u0627\u0633\u062a. \u0637\u06cc\u0641 \u0648\u0633\u06cc\u0639\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0631\u0627 \u062f\u0627\u0631\u062f \u06a9\u0647 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646 \u0622\u0646\u0647\u0627 \u0631\u0627 \u062f\u0631 AG2 \u0627\u062f\u063a\u0627\u0645 \u06a9\u0631\u062f. \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0644\u06cc\u0633\u062a \u06a9\u0627\u0645\u0644 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f\u060c \u0628\u0647 \u0622\u0646 \u0645\u0631\u0627\u062c\u0639\u0647 \u06a9\u0646\u06cc\u062f <strong>LangChain Community Tools<\/strong>. \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0633\u0631\u0639\u062a \u0645\u0648\u0627\u0631\u062f\u06cc \u0645\u0627\u0646\u0646\u062f \u067e\u0631\u0633 \u0648 \u062c\u0648\u0647\u0627\u06cc API\u060c \u0627\u0633\u06a9\u0631\u0627\u067e\u06cc\u0646\u06af \u0648\u0628 \u0648 \u062a\u0648\u0644\u06cc\u062f \u0645\u062a\u0646 \u0631\u0627 \u0628\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a AG2 \u062e\u0648\u062f \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C\"><\/span>\n<p>  <strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc LangChain \u0628\u0627 AG2 \u06a9\u0627\u0631 \u06a9\u0646\u0646\u062f\u060c \u0628\u0627\u06cc\u062f \u0686\u0646\u062f \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>pip <span class=\"nb\">install <\/span>ag2[interop-langchain]\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0645\u0627 \u0627\u0632 LangChain \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f <strong>\u0627\u0628\u0632\u0627\u0631 \u0648\u06cc\u06a9\u06cc \u067e\u062f\u06cc\u0627<\/strong>\u060c \u06a9\u0647 \u0628\u0647 \u0628\u0633\u062a\u0647 \u0648\u06cc\u06a9\u06cc \u067e\u062f\u06cc\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f. \u0627\u06cc\u0646\u062c\u0648\u0631\u06cc \u0646\u0635\u0628\u0634 \u06a9\u0646:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>pip <span class=\"nb\">install <\/span>wikipedia\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA\"><\/span>\n<p>  <strong>\u0648\u0627\u0631\u062f\u0627\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u062d\u0627\u0644\u0627 \u0628\u06cc\u0627\u06cc\u06cc\u062f \u0645\u0627\u0698\u0648\u0644 \u0647\u0627 \u0648 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u0645.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"kn\">import<\/span> <span class=\"n\">os<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">langchain_community.tools<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">WikipediaQueryRun<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">langchain_community.utilities<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">WikipediaAPIWrapper<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">AssistantAgent<\/span><span class=\"p\">,<\/span> <span class=\"n\">UserProxyAgent<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen.interop<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Interoperability<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84\"><\/span>\n<p>  <strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u06cc\u0627\u06cc\u06cc\u062f \u0639\u0648\u0627\u0645\u0644 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u0645\u0644 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0646\u06cc\u0645.<\/p>\n<ul>\n<li>\n<p><code>config_list<\/code>  \u062c\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc LLM \u0645\u0627\u0646\u0646\u062f \u0645\u062f\u0644 \u0648 \u06a9\u0644\u06cc\u062f API \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p><code>UserProxyAgent<\/code>  \u0648\u0631\u0648\u062f\u06cc \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0639\u0627\u0645\u0644 \u0648\u0627\u0642\u0639\u06cc \u0627\u0646\u0633\u0627\u0646\u06cc \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f (\u062a\u0646\u0638\u06cc\u0645 \u0628\u0647 <code>NEVER<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>AssistantAgent<\/code>  \u0646\u0645\u0627\u06cc\u0646\u062f\u0647 AI \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0627 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a LLM \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">config_list<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">model<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">gpt-4o<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">api_key<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">os<\/span><span class=\"p\">.<\/span><span class=\"n\">environ<\/span><span class=\"p\">[<\/span><span class=\"sh\">\"<\/span><span class=\"s\">OPENAI_API_KEY<\/span><span class=\"sh\">\"<\/span><span class=\"p\">]}]<\/span>\n<span class=\"n\">user_proxy<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">UserProxyAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">User<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">human_input_mode<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">NEVER<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n<span class=\"p\">)<\/span>\n\n<span class=\"n\">chatbot<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">AssistantAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">chatbot<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">llm_config<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">config_list<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">config_list<\/span><span class=\"p\">},<\/span>\n<span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1\"><\/span>\n<p>  <strong>\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0627\u06cc\u0646\u062c\u0627 \u062c\u0627\u06cc\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u0627 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u0631\u0627 \u0628\u0647 \u0647\u0645 \u0648\u0635\u0644 \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<ul>\n<li>\n<p>\u0627\u0628\u062a\u062f\u0627 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u06a9\u0631\u062f\u06cc\u0645 <strong>\u0648\u06cc\u06a9\u06cc \u067e\u062f\u06cc\u0627 APIWrapper<\/strong>\u060c \u06a9\u0647 \u0646\u062a\u06cc\u062c\u0647 \u0628\u0631\u062a\u0631 \u0648\u06cc\u06a9\u06cc \u067e\u062f\u06cc\u0627 (\u0628\u0627 \u0645\u062d\u062f\u0648\u062f\u06cc\u062a \u06a9\u0627\u0631\u0627\u06a9\u062a\u0631) \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0633\u067e\u0633\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645 <strong>WikipediaQueryRun<\/strong> \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u067e\u0631\u0633 \u0648 \u062c\u0648\u0647\u0627\u06cc \u0648\u06cc\u06a9\u06cc \u067e\u062f\u06cc\u0627<\/p>\n<\/li>\n<li>\n<p><code>Interoperability<\/code>  \u0628\u0647 \u062a\u0628\u062f\u06cc\u0644 \u0627\u0628\u0632\u0627\u0631 LangChain \u0628\u0647 \u0641\u0631\u0645\u062a AG2 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p>\u062f\u0631 \u0646\u0647\u0627\u06cc\u062a\u060c \u0627\u0628\u0632\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0628\u0627 \u0647\u0631 \u062f\u0648 \u062b\u0628\u062a \u0645\u06cc \u06a9\u0646\u06cc\u0645 <code>user_proxy<\/code> \u0648 <code>chatbot<\/code>.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">api_wrapper<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">WikipediaAPIWrapper<\/span><span class=\"p\">(<\/span><span class=\"n\">top_k_results<\/span><span class=\"o\">=<\/span><span class=\"mi\">1<\/span><span class=\"p\">,<\/span> <span class=\"n\">doc_content_chars_max<\/span><span class=\"o\">=<\/span><span class=\"mi\">1000<\/span><span class=\"p\">)<\/span>\n<span class=\"n\">langchain_tool<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">WikipediaQueryRun<\/span><span class=\"p\">(<\/span><span class=\"n\">api_wrapper<\/span><span class=\"o\">=<\/span><span class=\"n\">api_wrapper<\/span><span class=\"p\">)<\/span>\n\n<span class=\"n\">interop<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">Interoperability<\/span><span class=\"p\">()<\/span>\n<span class=\"n\">ag2_tool<\/span> <span class=\"o\">=<\/span> <span class=\"n\">interop<\/span><span class=\"p\">.<\/span><span class=\"nf\">convert_tool<\/span><span class=\"p\">(<\/span><span class=\"n\">tool<\/span><span class=\"o\">=<\/span><span class=\"n\">langchain_tool<\/span><span class=\"p\">,<\/span> <span class=\"nb\">type<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">langchain<\/span><span class=\"sh\">\"<\/span><span class=\"p\">)<\/span>\n\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_execution<\/span><span class=\"p\">(<\/span><span class=\"n\">user_proxy<\/span><span class=\"p\">)<\/span>\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_llm<\/span><span class=\"p\">(<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA\"><\/span>\n<p>  <strong>\u0634\u0631\u0648\u0639 \u0686\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0648\u0642\u062a\u06cc \u0647\u0645\u0647 \u0686\u06cc\u0632 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u0645 \u067e\u06cc\u0627\u0645\u06cc \u0628\u0647 \u0631\u0628\u0627\u062a \u0686\u062a \u0628\u0641\u0631\u0633\u062a\u06cc\u0645 \u0648 \u0622\u0646 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 \u0648\u06cc\u06a9\u06cc\u200c\u067e\u062f\u06cc\u0627 \u0628\u0631\u0627\u06cc \u0648\u0627\u06a9\u0634\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0645\u0631\u0628\u0648\u0637\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">message<\/span> <span class=\"o\">=<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">Tell me about the history of the United States<\/span><span class=\"sh\">\"<\/span>\n<span class=\"n\">user_proxy<\/span><span class=\"p\">.<\/span><span class=\"nf\">initiate_chat<\/span><span class=\"p\">(<\/span><span class=\"n\">recipient<\/span><span class=\"o\">=<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">,<\/span> <span class=\"n\">message<\/span><span class=\"o\">=<\/span><span class=\"n\">message<\/span><span class=\"p\">,<\/span> <span class=\"n\">max_turns<\/span><span class=\"o\">=<\/span><span class=\"mi\">2<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%AE%D8%B1%D9%88%D8%AC%DB%8C\"><\/span>\n<p>  <strong>\u062e\u0631\u0648\u062c\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0686\u062a \u0634\u0631\u0648\u0639 \u0645\u06cc \u0634\u0648\u062f\u060c \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u062e\u0631\u0648\u062c\u06cc \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight console\"><code><span class=\"go\">User (to chatbot):\n\nTell me about the history of the United States\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\n***** Suggested tool call (call_hhy2G43ymytUFmJlDsK9J0tk): wikipedia *****\nArguments:\n{\"tool_input\":{\"query\":\"history of the United States\"}}\n**************************************************************************\n\n--------------------------------------------------------------------------------\n\n<\/span><span class=\"gp\">&gt;<\/span><span class=\"o\">&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/span> EXECUTING FUNCTION wikipedia...\n<span class=\"go\">User (to chatbot):\n\n***** Response from calling tool (call_hhy2G43ymytUFmJlDsK9J0tk) *****\nPage: History of the United States\n<\/span><span class=\"gp\">Summary: The history of the lands that became the United States began with the arrival of the first people in the Americas around 15,000 BC. After European colonization of North America began in the late 15th century, wars and epidemics decimated Indigenous societies. By the 1760s, the thirteen British colonies were established. The Southern Colonies built an agricultural system on slave labor, enslaving millions from Africa. After defeating France, the British Parliament imposed a series of taxes;<\/span><span class=\"w\"> <\/span>resistance to these taxes, especially the Boston Tea Party <span class=\"k\">in <\/span>1773, led to Parliament issuing the Intolerable Acts designed to end self-government.\n<span class=\"go\">In 1776, the United States declared its independence. Led by General George Washington, it won the Revolutionary War in 1783. The Constitution was adopted in 1789, and a Bill of Rights was added in 1791 to guarantee inalienable rights. Washington, the first president, and his adviser Alexander Hamilton created a\n**********************************************************************\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\nThe history of the United States begins with the arrival of the first peoples in the Americas around 15,000 BC. This pre-Columbian era was followed by European colonization, beginning in the late 15th century, which dramatically altered the indigenous societies through wars and epidemics.\n\nBy the 1760s, thirteen British colonies were established along the Atlantic seaboard. In the Southern Colonies, an agricultural economy heavily reliant on enslaved labor from Africa was developed. The British victory over France in the Seven Years' War led Parliament to impose various taxes on the colonies. Resistance to these taxes, exemplified by the Boston Tea Party in 1773, prompted the Parliament to enact the Intolerable Acts, seeking to curtail colonial self-governance.\n\nThe United States declared independence in 1776. Under the leadership of General George Washington, the American Revolutionary War concluded successfully in 1783. Subsequently, the U.S. Constitution was adopted in 1789, with the Bill of Rights added in 1791 to ensure inalienable rights. During this early period, President George Washington and his advisor Alexander Hamilton played significant roles in forming the young nation's governmental and economic foundations.\n\nThis overview covers the early formation and foundational moments of what became the United States, setting the stage for the country's subsequent expansion and development. TERMINATE\n\n--------------------------------------------------------------------------------\n<\/span><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1%D9%87%D8%A7%DB%8C_CrewAI\"><\/span>\n<p>  <strong>\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CrewAI \u0627\u0646\u0648\u0627\u0639 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u06cc \u0631\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628\u060c \u062c\u0633\u062a\u062c\u0648\u060c \u062a\u0641\u0633\u06cc\u0631 \u06a9\u062f \u0648 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0646\u062f. \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u062f\u0631 \u0686\u0627\u0631\u0686\u0648\u0628 AG2 \u0627\u062f\u063a\u0627\u0645 \u0645\u06cc \u0634\u0648\u0646\u062f \u0648 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u0646\u062f \u0639\u0648\u0627\u0645\u0644 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 \u0627\u0631\u062a\u0642\u0627 \u062f\u0647\u06cc\u062f. \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0644\u06cc\u0633\u062a \u06a9\u0627\u0645\u0644 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u062f\u0631 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u06a9\u0627\u0648\u0634 \u06a9\u0646\u06cc\u062f <strong>\u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI<\/strong> \u0645\u062e\u0632\u0646<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C-2\"><\/span>\n<p>  <strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u0633\u062a\u0647 \u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0646\u06cc\u0627\u0632 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI \u062f\u0631 \u0686\u0627\u0631\u0686\u0648\u0628 AG2 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u062a\u0636\u0645\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u0647\u0645\u0647 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u062f\u0648 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u0646\u0635\u0628 \u0634\u062f\u0647 \u0628\u0627\u0634\u0646\u062f.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>pip <span class=\"nb\">install <\/span>ag2[interop-crewai]\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA-2\"><\/span>\n<p>  <strong>\u0648\u0627\u0631\u062f\u0627\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0645\u0627\u0698\u0648\u0644 \u0647\u0627 \u0648 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"kn\">import<\/span> <span class=\"n\">os<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">crewai_tools<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">ScrapeWebsiteTool<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">AssistantAgent<\/span><span class=\"p\">,<\/span> <span class=\"n\">UserProxyAgent<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen.interop<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Interoperability<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84-2\"><\/span>\n<p>  <strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0639\u0648\u0627\u0645\u0644 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u0645\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<ul>\n<li>\n<p><code>config_list<\/code>  \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc LLM \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u062f\u0644 \u0648 \u06a9\u0644\u06cc\u062f API \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><code>UserProxyAgent<\/code>  \u0648\u0631\u0648\u062f\u06cc \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0639\u0627\u0645\u0644 \u0648\u0627\u0642\u0639\u06cc \u0627\u0646\u0633\u0627\u0646\u06cc \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f (\u062a\u0646\u0638\u06cc\u0645 \u0628\u0647 <code>NEVER<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>AssistantAgent<\/code>  \u0646\u0645\u0627\u06cc\u0646\u062f\u0647 AI \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0627 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a LLM \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">config_list<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">model<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">gpt-4o<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">api_key<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">os<\/span><span class=\"p\">.<\/span><span class=\"n\">environ<\/span><span class=\"p\">[<\/span><span class=\"sh\">\"<\/span><span class=\"s\">OPENAI_API_KEY<\/span><span class=\"sh\">\"<\/span><span class=\"p\">]}]<\/span>\n<span class=\"n\">user_proxy<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">UserProxyAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">User<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">human_input_mode<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">NEVER<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n<span class=\"p\">)<\/span>\n\n<span class=\"n\">chatbot<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">AssistantAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">chatbot<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">llm_config<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">config_list<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">config_list<\/span><span class=\"p\">},<\/span>\n<span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1-2\"><\/span>\n<p>  <strong>\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0627\u0628\u0632\u0627\u0631 CrewAI \u0631\u0627 \u0628\u0627 AG2 \u0627\u062f\u063a\u0627\u0645 \u06a9\u0646\u06cc\u062f.<\/p>\n<ul>\n<li>\n<p><code>Interoperability<\/code>  \u0627\u0628\u0632\u0627\u0631 CrewAI \u0631\u0627 \u0628\u0647 \u0641\u0631\u0645\u062a \u0633\u0627\u0632\u06af\u0627\u0631 \u0628\u0627 AG2 \u062a\u0628\u062f\u06cc\u0644 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>ScrapeWebsiteTool<\/strong> \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0647\u0627\u06cc \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0627\u0628\u0632\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627 \u0648 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 LLM \u0647\u0627 \u062b\u0628\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">interop<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">Interoperability<\/span><span class=\"p\">()<\/span>\n<span class=\"n\">crewai_tool<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">ScrapeWebsiteTool<\/span><span class=\"p\">()<\/span>\n<span class=\"n\">ag2_tool<\/span> <span class=\"o\">=<\/span> <span class=\"n\">interop<\/span><span class=\"p\">.<\/span><span class=\"nf\">convert_tool<\/span><span class=\"p\">(<\/span><span class=\"n\">tool<\/span><span class=\"o\">=<\/span><span class=\"n\">crewai_tool<\/span><span class=\"p\">,<\/span> <span class=\"nb\">type<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">crewai<\/span><span class=\"sh\">\"<\/span><span class=\"p\">)<\/span>\n\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_execution<\/span><span class=\"p\">(<\/span><span class=\"n\">user_proxy<\/span><span class=\"p\">)<\/span>\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_llm<\/span><span class=\"p\">(<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA-2\"><\/span>\n<p>  <strong>\u0634\u0631\u0648\u0639 \u0686\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0634\u0631\u0648\u0639 \u06af\u0641\u062a\u06af\u0648 \u0628\u06cc\u0646 <code>UserProxyAgent<\/code> \u0648 <code>AssistantAgent<\/code> \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 CrewAI.<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">message<\/span> <span class=\"o\">=<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">Scrape the website https:\/\/ag2.ai\/<\/span><span class=\"sh\">\"<\/span>\n<span class=\"n\">chat_result<\/span> <span class=\"o\">=<\/span> <span class=\"n\">user_proxy<\/span><span class=\"p\">.<\/span><span class=\"nf\">initiate_chat<\/span><span class=\"p\">(<\/span><span class=\"n\">recipient<\/span><span class=\"o\">=<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">,<\/span> <span class=\"n\">message<\/span><span class=\"o\">=<\/span><span class=\"n\">message<\/span><span class=\"p\">,<\/span> <span class=\"n\">max_turns<\/span><span class=\"o\">=<\/span><span class=\"mi\">2<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%AE%D8%B1%D9%88%D8%AC%DB%8C-2\"><\/span>\n<p>  <strong>\u062e\u0631\u0648\u062c\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0631\u0627 <code>chatbot<\/code> \u0646\u062a\u0627\u06cc\u062c \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0639\u0645\u0644\u06cc\u0627\u062a \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight console\"><code><span class=\"go\">User (to chatbot):\n\nScrape the website https:\/\/ag2.ai\/\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\n***** Suggested tool call (call_ZStuwmexfN7j56uJKOi6BCid): Read_website_content *****\nArguments:\n{\"args\":{\"website_url\":\"https:\/\/ag2.ai\/\"}}\n*************************************************************************************\n\n--------------------------------------------------------------------------------\n\n<\/span><span class=\"gp\">&gt;<\/span><span class=\"o\">&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/span> EXECUTING FUNCTION Read_website_content...\n<span class=\"go\">Using Tool: Read website content\nUser (to chatbot):\n\n***** Response from calling tool (call_ZStuwmexfN7j56uJKOi6BCid) *****\n\nAgentOS\nJoin our growing community of over 20,000 agent builders Join our growing community of over 20,000 agent builders The Open-Source AgentOS Build production-ready multi-agent systems in minutes, not months. Github Discord The End-to-End Platform for Multi-Agent Automation The End-to-End Platform for Multi-Agent Automation Flexible Agent Construction and Orchestration Create specialized agents that work together seamlessly. AG2 makes it easy to define roles, configure behaviors, and orchestrate collaboration - all through simple, intuitive code. \u2192 Assistant agents for problem-solving \u2192 Executor agents for taking action \u2192 Critic agents for validation \u2192 Group chat managers for coordination Built-in Conversation Patterns Built-in Conversation Patterns Stop wrestling with agent coordination. AG2 handles message routing, state management, and conversation flow automatically. \u2192 Two-agent conversations \u2192 Group chats with dynamic speaker selection \u2192 Sequential chats with context carryover \u2192 Nested conversations for modularity Seamless Human-AI collaboration Seamless Human-AI collaboration Seamlessly integrate human oversight and input into your agent workflows. \u2192 Configurable human input modes \u2192 Flexible intervention points \u2192 Optional human approval workflows \u2192 Interactive conversation interfaces \u2192 Context-aware human handoff Roadmap AG2 STUDIO \u2192 Visual agent system design \u2192 Real-time testing and debugging \u2192 One-click deployment to production \u2192 Perfect for prototyping and MVPs AG2 STUDIO \u2192 Visual agent system design \u2192 Real-time testing and debugging \u2192 One-click deployment to production \u2192 Perfect for prototyping and MVPs AG2 STUDIO \u2192 Visual agent system design \u2192 Real-time testing and debugging \u2192 One-click deployment to production \u2192 Perfect for prototyping and MVPs AG2 MARKETPLACE \u2192 Share and monetize your agents \u2192 Discover pre-built solution templates \u2192 Quick-start your agent development \u2192 Connect with other builders AG2 MARKETPLACE \u2192 Share and monetize your agents \u2192 Discover pre-built solution templates \u2192 Quick-start your agent development \u2192 Connect with other builders AG2 MARKETPLACE \u2192 Share and monetize your agents \u2192 Discover pre-built solution templates \u2192 Quick-start your agent development \u2192 Connect with other builders SCALING TOOLS \u2192 Zero to production deployment guides \u2192 Usage analytics and cost optimization \u2192 Team collaboration features \u2192 Enterprise-ready security controls SCALING TOOLS \u2192 Zero to production deployment guides \u2192 Usage analytics and cost optimization \u2192 Team collaboration features \u2192 Enterprise-ready security controls SCALING TOOLS \u2192 Zero to production deployment guides \u2192 Usage analytics and cost optimization \u2192 Team collaboration features \u2192 Enterprise-ready security controls AG2 STUDIO \u2192 Visual agent system design \u2192 Real-time testing and debugging \u2192 One-click deployment to production \u2192 Perfect for prototyping and MVPs AG2 STUDIO \u2192 Visual agent system design \u2192 Real-time testing and debugging \u2192 One-click deployment to production \u2192 Perfect for prototyping and MVPs AG2 MARKETPLACE \u2192 Share and monetize your agents \u2192 Discover pre-built solution templates \u2192 Quick-start your agent development \u2192 Connect with other builders AG2 MARKETPLACE \u2192 Share and monetize your agents \u2192 Discover pre-built solution templates \u2192 Quick-start your agent development \u2192 Connect with other builders SCALING TOOLS \u2192 Zero to production deployment guides \u2192 Usage analytics and cost optimization \u2192 Team collaboration features \u2192 Enterprise-ready security controls SCALING TOOLS \u2192 Zero to production deployment guides \u2192 Usage analytics and cost optimization \u2192 Team collaboration features \u2192 Enterprise-ready security controls Whether you're a solo founder prototyping the next big AI product, or an enterprise team deploying at scale we're building AG2 for you. This is AgentOS - making multi-agent development accessible to everyone. Github Join Our Growing Community Join Our Growing Community \u2192 20,000+ active agent builders \u2192 Daily technical discussions \u2192 Weekly community calls \u2192 Open RFC process \u2192 Regular contributor events (Coming soon) Discord Problem Features Roadmap Community Documentation Problem Features Roadmap Community Documentation Problem Features Roadmap Community Documentation\n\n**********************************************************************\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\nThe website \"https:\/\/ag2.ai\/\" promotes a platform named AgentOS, which is designed for building multi-agent systems efficiently. Key highlights from the website are:\n\n- **Community**: They have a growing community of over 20,000 agent builders.\n\n- **End-to-End Platform**: AG2 is described as an end-to-end platform for multi-agent automation. It supports flexible agent construction and orchestration, helping to define roles, configure behaviors, and orchestrate collaboration.\n\n- **Agent Types**: It includes assistant agents for problem-solving, executor agents for taking action, critic agents for validation, and group chat managers for coordination.\n\n- **Built-in Conversation Patterns**: AG2 offers capabilities for message routing, state management, and conversation flow management, supporting various conversation types like two-agent conversations, group chats, and nested conversations.\n\n- **Human-AI Collaboration**: The platform facilitates seamless integration of human oversight and input, with options for human intervention and approval workflows.\n\n- **AG2 Studio**: This feature provides visual agent system design, real-time testing, debugging, and one-click deployment, suited for prototyping and MVPs.\n\n- **AG2 Marketplace**: Provides a place to share, monetize agents, discover pre-built solution templates, and connect with other builders.\n\n- **Scaling Tools**: Includes guides for deployment, analytics, cost optimization, team collaboration features, and enterprise-ready security controls.\n\n- **Community and Documentation**: They encourage connecting through GitHub and Discord and have regular community calls and events planned.\n\nThis comprehensive platform seems to aim at both individual developers and enterprise teams looking to deploy multi-agent systems effectively and collaboratively. TERMINATE\n\n--------------------------------------------------------------------------------\n<\/span><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u062e\u0644\u0627\u0635\u0647 \u0627\u06cc \u062f\u0642\u06cc\u0642 \u0627\u0632 \u062a\u0639\u0627\u0645\u0644 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"nf\">print<\/span><span class=\"p\">(<\/span><span class=\"n\">chat_result<\/span><span class=\"p\">.<\/span><span class=\"n\">summary<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight console\"><code><span class=\"go\">The website \"https:\/\/ag2.ai\/\" promotes a platform named AgentOS, which is designed for building multi-agent systems efficiently. Key highlights from the website are:\n\n- **Community**: They have a growing community of over 20,000 agent builders.\n\n- **End-to-End Platform**: AG2 is described as an end-to-end platform for multi-agent automation. It supports flexible agent construction and orchestration, helping to define roles, configure behaviors, and orchestrate collaboration.\n\n- **Agent Types**: It includes assistant agents for problem-solving, executor agents for taking action, critic agents for validation, and group chat managers for coordination.\n\n- **Built-in Conversation Patterns**: AG2 offers capabilities for message routing, state management, and conversation flow management, supporting various conversation types like two-agent conversations, group chats, and nested conversations.\n\n- **Human-AI Collaboration**: The platform facilitates seamless integration of human oversight and input, with options for human intervention and approval workflows.\n\n- **AG2 Studio**: This feature provides visual agent system design, real-time testing, debugging, and one-click deployment, suited for prototyping and MVPs.\n\n- **AG2 Marketplace**: Provides a place to share, monetize agents, discover pre-built solution templates, and connect with other builders.\n\n- **Scaling Tools**: Includes guides for deployment, analytics, cost optimization, team collaboration features, and enterprise-ready security controls.\n\n- **Community and Documentation**: They encourage connecting through GitHub and Discord and have regular community calls and events planned.\n\nThis comprehensive platform seems to aim at both individual developers and enterprise teams looking to deploy multi-agent systems effectively and collaboratively.\n<\/span><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1_PydanticAI\"><\/span>\n<p>  <strong>\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631 PydanticAI<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>PydanticAI<\/strong> \u06cc\u06a9 \u0686\u0627\u0631\u0686\u0648\u0628 \u062c\u062f\u06cc\u062f\u062a\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631 \u0628\u0627 LLM \u0628\u0647 \u0627\u0631\u0645\u063a\u0627\u0646 \u0645\u06cc \u0622\u0648\u0631\u062f. \u0627\u06af\u0631\u0686\u0647 \u0647\u0646\u0648\u0632 \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0645\u0627\u0646\u0646\u062f \u0633\u0627\u06cc\u0631 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0647\u0627 \u0631\u0627 \u0646\u062f\u0627\u0631\u062f\u060c \u0627\u0645\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0645\u0641\u06cc\u062f\u06cc \u0645\u0627\u0646\u0646\u062f <strong>\u062a\u0632\u0631\u06cc\u0642 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc<\/strong>. \u0627\u06cc\u0646 \u0648\u06cc\u0698\u06af\u06cc \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06cc\u06a9 &#8220;Context&#8221; \u0631\u0627 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u062a\u0632\u0631\u06cc\u0642 \u06a9\u0646\u06cc\u062f\u060c \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u0639\u0628\u0648\u0631 \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627 \u06cc\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0636\u0639\u06cc\u062a \u0628\u062f\u0648\u0646 \u0627\u062a\u06a9\u0627 \u0628\u0647 LLM \u06a9\u0645\u06a9 \u06a9\u0646\u062f. \u0627\u06af\u0631\u0686\u0647 \u0647\u0646\u0648\u0632 \u062f\u0631 \u062d\u0627\u0644 \u062a\u06a9\u0627\u0645\u0644 \u0627\u0633\u062a\u060c \u0634\u0645\u0627 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0628\u0632\u0627\u0631 PydanticAI \u0631\u0627 \u062f\u0631 AG2 \u0627\u062f\u063a\u0627\u0645 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0639\u0627\u0645\u0644 \u0631\u0627 \u062a\u0642\u0648\u06cc\u062a \u06a9\u0646\u06cc\u062f\u060c \u0628\u0647 \u0648\u06cc\u0698\u0647 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0634\u0627\u0645\u0644 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0633\u0627\u062e\u062a\u0627\u0631\u06cc\u0627\u0641\u062a\u0647 \u0648 \u0645\u0646\u0637\u0642 \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0632\u0645\u06cc\u0646\u0647 \u0627\u0633\u062a.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%D9%86%D8%B5%D8%A8_%D9%88_%D8%B1%D8%A7%D9%87_%D8%A7%D9%86%D8%AF%D8%A7%D8%B2%DB%8C-3\"><\/span>\n<p>  <strong>\u0646\u0635\u0628 \u0648 \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0647 \u0627\u0628\u0632\u0627\u0631 PydanticAI \u0628\u0627 AG2 \u06a9\u0627\u0631 \u06a9\u0646\u062f\u060c \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight shell\"><code>pip <span class=\"nb\">install <\/span>ag2[interop-pydantic-ai]\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%88%D8%A7%D8%B1%D8%AF%D8%A7%D8%AA-3\"><\/span>\n<p>  <strong>\u0648\u0627\u0631\u062f\u0627\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0645\u0627\u0698\u0648\u0644 \u0647\u0627 \u0648 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0644\u0627\u0632\u0645 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<ul>\n<li>\n<p><strong>\u0622\u0646\u0647\u0627 \u0645\u062f\u0644 \u0647\u0633\u062a\u0646\u062f<\/strong>: \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0633\u0627\u062e\u062a\u0627\u0631 \u062f\u0627\u062f\u0647 \u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u0648 \u062e\u0631\u0648\u062c\u06cc \u0627\u0628\u0632\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>RunContext<\/strong>: \u0632\u0645\u06cc\u0646\u0647 \u0631\u0627 \u062f\u0631 \u062d\u06cc\u0646 \u0627\u062c\u0631\u0627\u06cc \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>PydanticAITool<\/strong>: \u0646\u0634\u0627\u0646 \u062f\u0647\u0646\u062f\u0647 \u0627\u0628\u0632\u0627\u0631\u06cc \u062f\u0631 \u0686\u0627\u0631\u0686\u0648\u0628 PydanticAI \u0627\u0633\u062a.<\/p>\n<\/li>\n<li>\n<p><code>AssistantAgent<\/code>  \u0648 <code>UserProxyAgent<\/code>: \u0639\u0648\u0627\u0645\u0644\u06cc \u06a9\u0647 \u0627\u0631\u062a\u0628\u0627\u0637 \u0631\u0627 \u062f\u0631 \u0686\u0627\u0631\u0686\u0648\u0628 AG2 \u062a\u0633\u0647\u06cc\u0644 \u0645\u06cc \u06a9\u0646\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><code>Interoperability<\/code>: \u0627\u06cc\u0646 \u0645\u0627\u0698\u0648\u0644 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u067e\u0644 \u0639\u0645\u0644 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631 PydanticAI \u0628\u0627 \u0645\u0639\u0645\u0627\u0631\u06cc AG2 \u0631\u0627 \u0622\u0633\u0627\u0646 \u062a\u0631 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"kn\">import<\/span> <span class=\"n\">os<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">typing<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Optional<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">pydantic<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">BaseModel<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">pydantic_ai<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">RunContext<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">pydantic_ai.tools<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Tool<\/span> <span class=\"k\">as<\/span> <span class=\"n\">PydanticAITool<\/span>\n\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">AssistantAgent<\/span><span class=\"p\">,<\/span> <span class=\"n\">UserProxyAgent<\/span>\n<span class=\"kn\">from<\/span> <span class=\"n\">autogen.interop<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">Interoperability<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%DA%A9%D8%B1%D8%A8%D9%86%D8%AF%DB%8C_%D8%B9%D8%A7%D9%85%D9%84-3\"><\/span>\n<p>  <strong>\u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0639\u0627\u0645\u0644<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0639\u0648\u0627\u0645\u0644 \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0639\u0627\u0645\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<ul>\n<li>\n<p><code>config_list<\/code>  \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0647\u0627\u06cc LLM \u0627\u0632 \u062c\u0645\u0644\u0647 \u0645\u062f\u0644 \u0648 \u06a9\u0644\u06cc\u062f API \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><code>UserProxyAgent<\/code>  \u0648\u0631\u0648\u062f\u06cc \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u062f\u0648\u0646 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u062a\u0639\u0627\u0645\u0644 \u0648\u0627\u0642\u0639\u06cc \u0627\u0646\u0633\u0627\u0646\u06cc \u0634\u0628\u06cc\u0647 \u0633\u0627\u0632\u06cc \u0645\u06cc \u06a9\u0646\u062f (\u062a\u0646\u0638\u06cc\u0645 \u0628\u0647 <code>NEVER<\/code>).<\/p>\n<\/li>\n<li>\n<p><code>AssistantAgent<\/code>  \u0646\u0645\u0627\u06cc\u0646\u062f\u0647 AI \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u0628\u0627 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a LLM \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">config_list<\/span> <span class=\"o\">=<\/span> <span class=\"p\">[{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">model<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">gpt-4o<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span> <span class=\"sh\">\"<\/span><span class=\"s\">api_key<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">os<\/span><span class=\"p\">.<\/span><span class=\"n\">environ<\/span><span class=\"p\">[<\/span><span class=\"sh\">\"<\/span><span class=\"s\">OPENAI_API_KEY<\/span><span class=\"sh\">\"<\/span><span class=\"p\">]}]<\/span>\n<span class=\"n\">user_proxy<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">UserProxyAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">User<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">human_input_mode<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">NEVER<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n<span class=\"p\">)<\/span>\n\n<span class=\"n\">chatbot<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">AssistantAgent<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">chatbot<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span>\n    <span class=\"n\">llm_config<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"sh\">\"<\/span><span class=\"s\">config_list<\/span><span class=\"sh\">\"<\/span><span class=\"p\">:<\/span> <span class=\"n\">config_list<\/span><span class=\"p\">},<\/span>\n<span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%DB%8C%DA%A9%D9%BE%D8%A7%D8%B1%DA%86%D9%87_%D8%B3%D8%A7%D8%B2%DB%8C_%D8%A7%D8%A8%D8%B2%D8%A7%D8%B1-3\"><\/span>\n<p>  <strong>\u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0627\u0628\u0632\u0627\u0631<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0628\u0631\u0627\u06cc \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631 PydanticAI \u062f\u0631 AG2:<\/p>\n<ul>\n<li>\n<p>\u0627\u0628\u062a\u062f\u0627 a \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0646\u06cc\u062f <code>Player<\/code> \u0645\u062f\u0644 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 <strong>\u0622\u0646\u0647\u0627 \u0645\u062f\u0644 \u0647\u0633\u062a\u0646\u062f<\/strong> \u0628\u0631\u0627\u06cc \u0633\u0627\u062e\u062a\u0627\u0631 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc<\/p>\n<\/li>\n<li>\n<p>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f <strong>RunContext<\/strong> \u0628\u0631\u0627\u06cc \u062a\u0632\u0631\u06cc\u0642 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0647\u0627 (\u0645\u0627\u0646\u0646\u062f <code>Player<\/code> \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644) \u0628\u0647 \u0637\u0648\u0631 \u0627\u06cc\u0645\u0646 \u0648\u0627\u0631\u062f \u0627\u0628\u0632\u0627\u0631 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0631\u0627 <code>get_player<\/code> \u062a\u0627\u0628\u0639 \u0639\u0645\u0644\u06a9\u0631\u062f \u0627\u0628\u0632\u0627\u0631 \u0631\u0627 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062a\u0632\u0631\u06cc\u0642 \u0634\u062f\u0647 \u0631\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0645\u06cc \u06a9\u0646\u062f <code>ctx.deps<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u0633\u067e\u0633\u060c \u0627\u0628\u0632\u0627\u0631 \u0631\u0627 \u0628\u0647 \u06cc\u06a9 \u0641\u0631\u0645\u062a \u0633\u0627\u0632\u06af\u0627\u0631 \u0628\u0627 AG2 \u062a\u0628\u062f\u06cc\u0644 \u06a9\u0646\u06cc\u062f <code>Interoperability<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u062b\u0628\u062a \u0627\u0628\u0632\u0627\u0631 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627 \u0648 \u062a\u0639\u0627\u0645\u0644 \u0628\u0627 \u0647\u0631 \u062f\u0648 <code>user_proxy<\/code> \u0648 <code>chatbot<\/code>.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"k\">class<\/span> <span class=\"nc\">Player<\/span><span class=\"p\">(<\/span><span class=\"n\">BaseModel<\/span><span class=\"p\">):<\/span>\n    <span class=\"n\">name<\/span><span class=\"p\">:<\/span> <span class=\"nb\">str<\/span>\n    <span class=\"n\">age<\/span><span class=\"p\">:<\/span> <span class=\"nb\">int<\/span>\n\n\n<span class=\"k\">def<\/span> <span class=\"nf\">get_player<\/span><span class=\"p\">(<\/span><span class=\"n\">ctx<\/span><span class=\"p\">:<\/span> <span class=\"n\">RunContext<\/span><span class=\"p\">[<\/span><span class=\"n\">Player<\/span><span class=\"p\">],<\/span> <span class=\"n\">additional_info<\/span><span class=\"p\">:<\/span> <span class=\"n\">Optional<\/span><span class=\"p\">[<\/span><span class=\"nb\">str<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"bp\">None<\/span><span class=\"p\">)<\/span> <span class=\"o\">-&gt;<\/span> <span class=\"nb\">str<\/span><span class=\"p\">:<\/span>  <span class=\"c1\"># type: ignore[valid-type]\n<\/span>    <span class=\"sh\">\"\"\"<\/span><span class=\"s\">Get the player<\/span><span class=\"sh\">'<\/span><span class=\"s\">s name.\n\n    Args:\n        additional_info: Additional information which can be used.\n    <\/span><span class=\"sh\">\"\"\"<\/span>\n    <span class=\"k\">return<\/span> <span class=\"sa\">f<\/span><span class=\"sh\">\"<\/span><span class=\"s\">Name: <\/span><span class=\"si\">{<\/span><span class=\"n\">ctx<\/span><span class=\"p\">.<\/span><span class=\"n\">deps<\/span><span class=\"p\">.<\/span><span class=\"n\">name<\/span><span class=\"si\">}<\/span><span class=\"s\">, Age: <\/span><span class=\"si\">{<\/span><span class=\"n\">ctx<\/span><span class=\"p\">.<\/span><span class=\"n\">deps<\/span><span class=\"p\">.<\/span><span class=\"n\">age<\/span><span class=\"si\">}<\/span><span class=\"s\">, Additional info: <\/span><span class=\"si\">{<\/span><span class=\"n\">additional_info<\/span><span class=\"si\">}<\/span><span class=\"sh\">\"<\/span>  <span class=\"c1\"># type: ignore[attr-defined]\n<\/span>\n\n<span class=\"n\">interop<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">Interoperability<\/span><span class=\"p\">()<\/span>\n<span class=\"n\">pydantic_ai_tool<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">PydanticAITool<\/span><span class=\"p\">(<\/span><span class=\"n\">get_player<\/span><span class=\"p\">,<\/span> <span class=\"n\">takes_ctx<\/span><span class=\"o\">=<\/span><span class=\"bp\">True<\/span><span class=\"p\">)<\/span>\n\n<span class=\"c1\"># player will be injected as a dependency\n<\/span><span class=\"n\">player<\/span> <span class=\"o\">=<\/span> <span class=\"nc\">Player<\/span><span class=\"p\">(<\/span><span class=\"n\">name<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">Luka<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span> <span class=\"n\">age<\/span><span class=\"o\">=<\/span><span class=\"mi\">25<\/span><span class=\"p\">)<\/span>\n<span class=\"n\">ag2_tool<\/span> <span class=\"o\">=<\/span> <span class=\"n\">interop<\/span><span class=\"p\">.<\/span><span class=\"nf\">convert_tool<\/span><span class=\"p\">(<\/span><span class=\"n\">tool<\/span><span class=\"o\">=<\/span><span class=\"n\">pydantic_ai_tool<\/span><span class=\"p\">,<\/span> <span class=\"nb\">type<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">pydanticai<\/span><span class=\"sh\">\"<\/span><span class=\"p\">,<\/span> <span class=\"n\">deps<\/span><span class=\"o\">=<\/span><span class=\"n\">player<\/span><span class=\"p\">)<\/span>\n\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_execution<\/span><span class=\"p\">(<\/span><span class=\"n\">user_proxy<\/span><span class=\"p\">)<\/span>\n<span class=\"n\">ag2_tool<\/span><span class=\"p\">.<\/span><span class=\"nf\">register_for_llm<\/span><span class=\"p\">(<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%B4%D8%B1%D9%88%D8%B9_%DA%86%D8%AA-3\"><\/span>\n<p>  <strong>\u0634\u0631\u0648\u0639 \u0686\u062a<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0647\u0645\u0647 \u0686\u06cc\u0632 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u0686\u062a \u0628\u06cc\u0646 \u0622\u0646 \u0647\u0627 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f <code>UserProxyAgent<\/code> \u0648 <code>AssistantAgent<\/code>:<\/p>\n<ul>\n<li>\n<p>\u0631\u0627 <code>user_proxy<\/code> \u067e\u06cc\u0627\u0645\u06cc \u0628\u0647 <code>chatbot<\/code>.<\/p>\n<\/li>\n<li>\n<p>\u06a9\u0627\u0631\u0628\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u0627\u0632\u06cc\u06a9\u0646 \u0631\u0627 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u0645\u06cc \u06a9\u0646\u062f \u0648 &#8220;\u062f\u0631\u0648\u0627\u0632\u0647 \u0628\u0627\u0646&#8221; \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0632\u0645\u06cc\u0646\u0647 \u0627\u0636\u0627\u0641\u06cc \u062f\u0631\u062c \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p>\u0631\u0627 <code>Player<\/code> \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0637\u0648\u0631 \u0627\u06cc\u0645\u0646 \u0628\u0647 \u0627\u0628\u0632\u0627\u0631 \u062a\u0632\u0631\u06cc\u0642 \u0645\u06cc \u0634\u0648\u0646\u062f \u0648 \u0631\u0628\u0627\u062a \u0686\u062a \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062f\u0631 \u0637\u0648\u0644 \u0686\u062a \u0628\u0647 \u0622\u0646 \u062f\u0633\u062a\u0631\u0633\u06cc \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f \u0648 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f.<\/p>\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight python\"><code><span class=\"n\">user_proxy<\/span><span class=\"p\">.<\/span><span class=\"nf\">initiate_chat<\/span><span class=\"p\">(<\/span>\n    <span class=\"n\">recipient<\/span><span class=\"o\">=<\/span><span class=\"n\">chatbot<\/span><span class=\"p\">,<\/span> <span class=\"n\">message<\/span><span class=\"o\">=<\/span><span class=\"sh\">\"<\/span><span class=\"s\">Get player, for additional information use <\/span><span class=\"sh\">'<\/span><span class=\"s\">goal keeper<\/span><span class=\"sh\">'\"<\/span><span class=\"p\">,<\/span> <span class=\"n\">max_turns<\/span><span class=\"o\">=<\/span><span class=\"mi\">3<\/span>\n<span class=\"p\">)<\/span>\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3><span class=\"ez-toc-section\" id=\"%D8%AE%D8%B1%D9%88%D8%AC%DB%8C-3\"><\/span>\n<p>  <strong>\u062e\u0631\u0648\u062c\u06cc<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight console\"><code><span class=\"go\">User (to chatbot):\n\nGet player, for additional information use 'goal keeper'\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\n***** Suggested tool call (call_lPXIohFiJfnjmgwDnNFPQCzc): get_player *****\nArguments:\n{\"additional_info\":\"goal keeper\"}\n***************************************************************************\n\n--------------------------------------------------------------------------------\n\n<\/span><span class=\"gp\">&gt;<\/span><span class=\"o\">&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/span> EXECUTING FUNCTION get_player...\n<span class=\"go\">User (to chatbot):\n\n***** Response from calling tool (call_lPXIohFiJfnjmgwDnNFPQCzc) *****\nName: Luka, Age: 25, Additional info: goal keeper\n**********************************************************************\n\n--------------------------------------------------------------------------------\nchatbot (to User):\n\nThe player's name is Luka, who is a 25-year-old goalkeeper. TERMINATE\n<\/span><\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"%D8%B1%D8%A7%D8%AE%D9%84%D8%A7%D8%B5%D9%87\"><\/span>\n<p>  <strong>\u0631\u0627<\/strong><strong>\u062e\u0644\u0627\u0635\u0647<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a\u060c \u0646\u062d\u0648\u0647 \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0627\u0632 \u0686\u0646\u062f\u06cc\u0646 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 (LangChain\u060c CrewAI \u0648 PydanticAI) \u0631\u0627 \u062f\u0631 \u0686\u0627\u0631\u0686\u0648\u0628 AG2 \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc\u0645 \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u0647\u0645\u06a9\u0627\u0631\u06cc \u0628\u06cc\u0646 \u0686\u0627\u0631\u0686\u0648\u0628\u06cc \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u0627\u062f\u063a\u0627\u0645 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0639\u0648\u0627\u0645\u0644 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u060c \u0645\u0627\u0646\u0646\u062f \u067e\u0631\u0633\u200c\u0648\u062c\u0648 API\u060c \u0627\u0633\u06a9\u0631\u0627\u067e\u06cc\u0646\u06af \u0648\u0628 \u0648 \u067e\u0631\u062f\u0627\u0632\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u06cc \u0633\u0627\u062e\u062a\u200c\u06cc\u0627\u0641\u062a\u0647 \u062a\u0642\u0648\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<ul>\n<li>\n<p><strong>LangChain<\/strong> \u0637\u06cc\u0641 \u06af\u0633\u062a\u0631\u062f\u0647 \u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631 \u0628\u0627 API \u0647\u0627 \u0648 \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f \u06a9\u0647 \u06af\u0633\u062a\u0631\u0634 \u0639\u0645\u0644\u06a9\u0631\u062f AG2 \u0631\u0627 \u0622\u0633\u0627\u0646 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>CrewAI<\/strong> \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062a\u0646\u0648\u0639\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062c\u0633\u062a\u062c\u0648\u060c \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628 \u0648 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0628\u0647 \u0627\u0631\u0645\u063a\u0627\u0646 \u0645\u06cc\u200c\u0622\u0648\u0631\u062f \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u062a\u0639\u0627\u0645\u0644 \u0642\u0648\u06cc \u0628\u0627 \u0639\u0627\u0645\u0644 \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<\/li>\n<li>\n<p><strong>PydanticAI<\/strong> \u062a\u0632\u0631\u06cc\u0642 \u0648\u0627\u0628\u0633\u062a\u06af\u06cc \u0648 \u0645\u0646\u0637\u0642 \u0645\u0628\u062a\u0646\u06cc \u0628\u0631 \u0632\u0645\u06cc\u0646\u0647 \u0631\u0627 \u0645\u0639\u0631\u0641\u06cc \u0645\u06cc \u06a9\u0646\u062f \u0648 \u0627\u0645\u06a9\u0627\u0646 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0627\u0631\u0622\u0645\u062f \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0628\u062f\u0648\u0646 \u062a\u06a9\u06cc\u0647 \u0628\u0631 LLM \u0647\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0628\u0627 \u0645\u0639\u0645\u0627\u0631\u06cc \u0627\u0646\u0639\u0637\u0627\u0641 \u067e\u0630\u06cc\u0631 AG2 \u0648 \u0642\u062f\u0631\u062a \u0627\u06cc\u0646 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9 \u0647\u0627\u060c \u062a\u0648\u0633\u0639\u0647 \u062f\u0647\u0646\u062f\u06af\u0627\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u0646\u062f \u0639\u0648\u0627\u0645\u0644\u06cc \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u0646\u062f \u06a9\u0647 \u062a\u0648\u0627\u0646\u0645\u0646\u062f\u062a\u0631 \u0648 \u0633\u0627\u0632\u06af\u0627\u0631\u062a\u0631 \u0628\u0627\u0634\u0646\u062f. \u0628\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0645\u0631\u0627\u062d\u0644 \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0628\u0631\u0627\u06cc \u0647\u0631 \u0641\u0631\u06cc\u0645 \u0648\u0631\u06a9\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0639\u0645\u0644\u06a9\u0631\u062f \u0646\u0645\u0627\u06cc\u0646\u062f\u06af\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u062f\u0647\u06cc\u062f\u060c \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0627\u06cc \u0622\u0646\u0647\u0627 \u0631\u0627 \u06af\u0633\u062a\u0631\u0634 \u062f\u0647\u06cc\u062f \u0648 \u062a\u0639\u0627\u0645\u0644\u0627\u062a \u067e\u0648\u06cc\u0627\u062a\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0628\u0627\u06cc\u062f \u062f\u0631\u06a9 \u0628\u0647\u062a\u0631\u06cc \u0627\u0632 \u0646\u062d\u0648\u0647 \u0627\u062f\u063a\u0627\u0645 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u0627\u0632 \u0686\u0627\u0631\u0686\u0648\u0628 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u062f\u0631 AG2 \u0648 \u0646\u062d\u0648\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u0648\u062b\u0631 \u0627\u0632 \u0627\u06cc\u0646 \u0627\u0628\u0632\u0627\u0631\u0647\u0627 \u062f\u0631 \u067e\u0631\u0648\u0698\u0647 \u0647\u0627\u06cc \u062e\u0648\u062f \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f.<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=B_NTwUoJrew\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=B_NTwUoJrew<\/a><br \/>\n<\/iframe>\n <\/p>\n<h2><span class=\"ez-toc-section\" id=\"%D9%BE%DB%8C%D8%AF%D8%A7_%DA%A9%D8%B1%D8%AF%D9%86_%D8%A7%DB%8C%D9%86_%D9%85%D9%81%DB%8C%D8%AF_%D8%A7%D8%B3%D8%AA%D8%9F\"><\/span>\n<p>  <strong>\u067e\u06cc\u062f\u0627 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a\u061f<\/strong><br \/>\n<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u0631\u0627 <strong>\u062a\u06cc\u0645 AG2<\/strong> \u0628\u0647 \u0633\u062e\u062a\u06cc \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u062d\u062a\u0648\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u062f\u060c \u0628\u0647 \u063a\u06cc\u0631 \u0627\u0632 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u067e\u0644\u062a\u0641\u0631\u0645 \u0642\u062f\u0631\u062a\u0645\u0646\u062f\u060c \u0645\u0646\u0628\u0639 \u0628\u0627\u0632 \u0648 \u0633\u0631\u062a\u0627\u0633\u0631 \u0628\u0631\u0627\u06cc \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0686\u0646\u062f \u0639\u0627\u0645\u0644\u06cc.<\/p>\n<p>\u0633\u0627\u062f\u0647 \u062a\u0631\u06cc\u0646 \u0631\u0627\u0647 \u0628\u0631\u0627\u06cc \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0646 \u062d\u0645\u0627\u06cc\u062a \u062e\u0648\u062f\u060c \u0633\u062a\u0627\u0631\u0647 \u06a9\u0631\u062f\u0646 \u0627\u0633\u062a <strong>\u0645\u062e\u0632\u0646 AG2<\/strong>\u060c \u0628\u0644\u06a9\u0647 \u0628\u0631\u0627\u06cc \u0645\u0634\u0627\u0631\u06a9\u062a \u06cc\u0627 \u0635\u0631\u0641\u0627\u064b \u0628\u0631\u0627\u06cc \u0627\u0645\u062a\u062d\u0627\u0646 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0622\u0646 \u0646\u06af\u0627\u0647\u06cc \u0628\u06cc\u0646\u062f\u0627\u0632\u06cc\u062f.<\/p>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0627\u06af\u0631 \u0645\u0648\u0627\u0631\u062f \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u062c\u0627\u0644\u0628\u06cc \u0628\u0631\u0627\u06cc \u0642\u0627\u0628\u0644\u06cc\u062a \u0647\u0645\u06a9\u0627\u0631\u06cc \u0627\u0628\u0632\u0627\u0631 \u062f\u0627\u0631\u06cc\u062f\u060c \u0628\u0647 \u0645\u0627 \u0627\u0637\u0644\u0627\u0639 \u062f\u0647\u06cc\u062f\u061f \u06cc\u0627 \u0634\u0627\u06cc\u062f \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u062f \u0648\u06cc\u0698\u06af\u06cc \u0647\u0627 \u06cc\u0627 \u067e\u06cc\u0634\u0631\u0641\u062a \u0647\u0627\u06cc \u0628\u06cc\u0634\u062a\u0631\u06cc \u0628\u0628\u06cc\u0646\u06cc\u062f\u061f \u0628\u0647 \u0645\u0627 \u0628\u067e\u06cc\u0648\u0646\u062f\u06cc\u062f <strong>\u0627\u062e\u062a\u0644\u0627\u0641<\/strong> <strong>\u0633\u0631\u0648\u0631<\/strong> \u0628\u0631\u0627\u06cc \u0628\u062d\u062b<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0646\u0648\u06cc\u0633\u0646\u062f\u0647: \u0631\u0627\u0628\u0631\u062a \u062c\u0627\u0645\u0628\u0631\u0633\u06cc\u0686 TL; DR AG2 \u0628\u0647 \u0634\u0645\u0627 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f \u0627\u0628\u0632\u0627\u0631 \u0627\u0632 \u0641\u0631\u06cc\u0645\u0648\u0631\u06a9 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0645\u0627\u0646\u0646\u062f LangChain\u060c CrewAI\u060c \u0648 PydanticAI. \u0627\u0628\u0632\u0627\u0631 LangChain: \u0628\u0631\u0627\u06cc \u06a9\u0627\u0631\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f \u067e\u0631\u0633 \u0648 \u062c\u0648\u06cc API \u0648 \u0627\u0633\u06a9\u0631\u0627\u067e\u06cc \u0648\u0628 \u0645\u0641\u06cc\u062f \u0627\u0633\u062a. \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc CrewAI: \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u062e\u0631\u0627\u0634 \u062f\u0627\u062f\u0646 \u0648\u0628\u060c \u062c\u0633\u062a\u062c\u0648 \u0648 \u0645\u0648\u0627\u0631\u062f \u062f\u06cc\u06af\u0631 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc \u062f\u0647\u062f. \u0627\u0628\u0632\u0627\u0631 PydanticAI: &hellip;<\/p>\n","protected":false},"author":2,"featured_media":90560,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-90558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/90558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=90558"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/90558\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/90560"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=90558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=90558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=90558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}