{"id":475652,"date":"2026-04-12T22:14:22","date_gmt":"2026-04-12T22:14:22","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=475652"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=475652","title":{"rendered":"\u0412\u044b\u0448\u0435\u043b \u0432 \u0440\u0435\u043b\u0438\u0437 Microsoft Agent Framework"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>Microsoft \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u0433\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043c\u0443\u043b\u044c\u0442\u0438-\u0430\u0433\u0435\u043d\u0441\u043a\u0438\u0445. \u042d\u0442\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f Semantic Kernel \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a AutoGen. <a href=\"https:\/\/github.com\/microsoft\/agent-framework\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/microsoft\/agent-framework<\/a><\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u0440\u043e\u0434\u0435 \u043d\u0435\u0442\u044f\u0436\u0435\u043b\u044b\u0439  \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438. \u0418\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u044b.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 HandOff \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"cs\">\/\/\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0430\u0433\u0435\u043d\u0442 researchervar researcher = new ChatClientAgent(chatClient,    new ChatClientAgentOptions    {        Name = \"Researcher\",        Description = \"Web search, real-time information, weather, news, and general knowledge.\",        ChatOptions = new ChatOptions        {            Instructions = \"Search the web for any real-time information\",            Tools = [ AIFunctionFactory.Create(webSearchTools.Search),]        }    });<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u0433\u0434\u0435 \u0430\u0433\u0435\u043d\u0442 triage \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u043e\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c, \u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e <\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"cs\">var workflow = AgentWorkflowBuilder    .CreateHandoffBuilderWith(triage)    .WithHandoffs(triage, [clerk, archivist, secretary, researcher])    .WithHandoff(researcher, triage, \"Hand back to Triage when done or if the request is not about search\/information.\")    .WithHandoff(...)    .EmitAgentResponseEvents(true)    .Build();<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b &#8212; \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0418\u0418 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435, \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0431\u043e\u0442\u0430, c \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043d\u0430 sqlite, \u0438 \u0431\u0430\u043d\u0434\u043e\u0439 \u043d\u0430 \u043f\u044f\u0442\u0435\u0440\u044b\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0431\u043e\u0434\u0440\u043e \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0430 Raspberry PI 3b. <\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1022612\/\">https:\/\/habr.com\/ru\/articles\/1022612\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u0433\u0435\u043d\u0442\u0441\u043a\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043c\u0443\u043b\u044c\u0442\u0438-\u0430\u0433\u0435\u043d\u0441\u043a\u0438\u0445. \u042d\u0442\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f Semantic Kernel \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a AutoGen. https:\/\/github.com\/microsoft\/agent-framework\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0432\u0440\u043e\u0434\u0435 \u043d\u0435\u0442\u044f\u0436\u0435\u043b\u044b\u0439  \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438. \u0418\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u043f\u0443\u043b \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u044b.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 HandOff \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e:\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438\/\/\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0430\u0433\u0435\u043d\u0442 researchervar researcher = new ChatClientAgent(chatClient,    new ChatClientAgentOptions    {        Name = &#171;Researcher&#187;,        Description = &#171;Web search, real-time information, weather, news, and general knowledge.&#187;,        ChatOptions = new ChatOptions        {            Instructions = &#171;Search the web for any real-time information&#187;,            Tools = [ AIFunctionFactory.Create(webSearchTools.Search),]        }    });\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0440\u043a\u0435\u0441\u0442\u0440\u0430\u0442\u043e\u0440, \u0433\u0434\u0435 \u0430\u0433\u0435\u043d\u0442 triage \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u043e\u0433\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c, \u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e var workflow = AgentWorkflowBuilder    .CreateHandoffBuilderWith(triage)    .WithHandoffs(triage, [clerk, archivist, secretary, researcher])    .WithHandoff(researcher, triage, &#171;Hand back to Triage when done or if the request is not about search\/information.&#187;)    .WithHandoff(&#8230;)    .EmitAgentResponseEvents(true)    .Build();\u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b &#8212; \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0418\u0418 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0437\u0430 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435, \u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0431\u043e\u0442\u0430, c \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043d\u0430 sqlite, \u0438 \u0431\u0430\u043d\u0434\u043e\u0439 \u043d\u0430 \u043f\u044f\u0442\u0435\u0440\u044b\u0445 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 \u0431\u043e\u0434\u0440\u043e \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0430 Raspberry PI 3b. \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1022612\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-475652","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475652"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475652\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}