{"id":486591,"date":"2026-07-08T09:12:00","date_gmt":"2026-07-08T09:12:00","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=486591"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=486591","title":{"rendered":"\u041a\u0430\u043a \u044f \u043d\u0430\u0443\u0447\u0438\u043b \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0432 Excalidraw \u2014 \u0430\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0437\u0430 100 \u0441\u0442\u0440\u043e\u043a"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2><\/h2>\n<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b \u044f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b ChatGPT \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443. \u0417\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043e\u043d \u0441\u0434\u0435\u043b\u0430\u043b? \u041d\u0430\u043f\u0438\u0441\u0430\u043b ASCII-\u0430\u0440\u0442:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/124\/6b9\/947\/1246b994781fa2bd702c5282656b24c0.png\" width=\"194\" height=\"153\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/124\/6b9\/947\/1246b994781fa2bd702c5282656b24c0.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/124\/6b9\/947\/1246b994781fa2bd702c5282656b24c0.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041c\u0438\u043b\u043e, \u043d\u043e \u043d\u0435 \u0442\u043e.<\/p>\n<p>\u042f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443: \u0441 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430\u043c\u0438, \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438, \u0446\u0432\u0435\u0442\u0430\u043c\u0438, \u0437\u0443\u043c\u043e\u043c \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0440\u0443\u043a\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u0447\u0430\u0442\u0430 \u0438 \u043d\u0435 ASCII, \u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 canvas.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0437\u044f\u0442\u044c LangChain, MCP, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 agent framework \u0438 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0432\u0441\u0451 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043b\u043e\u044f\u043c\u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439. \u041d\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0435: <strong>\u0447\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b LLM \u0441\u0442\u0430\u043b\u0430 \u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043c\u0438\u0440\u0430?<\/strong><\/p>\n<p>\u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u0438\u043c \u201c\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u043c\u0438\u0440\u043e\u043c\u201d \u0441\u0442\u0430\u043b Excalidraw canvas.<\/p>\n<p>\u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0430\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441 \u043d\u0443\u043b\u044f. \u0412\u0430\u0436\u043d\u043e\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0435 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u044f\u0434\u0440\u043e \u0430\u0433\u0435\u043d\u0442\u0430 \u2014 \u043e\u043a\u043e\u043b\u043e 100 \u0441\u0442\u0440\u043e\u043a. \u0412\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, model layer, WebSocket, UI \u0438 \u043a\u0443\u0447\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u041d\u043e \u0441\u0430\u043c\u0430 \u201c\u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c\u201d \u0436\u0438\u0432\u0451\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435. \u0411\u0435\u0437 LangChain, \u0431\u0435\u0437 MCP, \u0431\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u201c\u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438\u201d.<\/p>\n<p>\u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u043e\u0440\u0433\u0447\u0430\u0440\u0442. \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0433\u043e\u043d\u043e\u0432 \u043e\u043d \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0435\u0433\u043e, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0443\u0434\u0430\u043b\u0438\u043b \u0438\u0445, \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u043b \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430\u043c\u0438 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0437\u0430\u043b \u201c\u0433\u043e\u0442\u043e\u0432\u043e\u201d.<\/p>\n<p>\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c.<\/p>\n<h3>\u0418\u0434\u0435\u044f: \u043d\u0435 \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u0430 \u0434\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/h3>\n<p>\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0447\u0430\u0442 \u0441 LLM \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>user prompt -&gt; LLM -&gt; text answer<\/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<p>\u0410\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442: <strong>\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b<\/strong>.<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/274\/848\/374\/27484837453e1622eb0f3e59441060d5.png\" width=\"386\" height=\"407\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/274\/848\/374\/27484837453e1622eb0f3e59441060d5.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/274\/848\/374\/27484837453e1622eb0f3e59441060d5.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u201c\u043d\u0430\u0440\u0438\u0441\u0443\u0439 \u043c\u043d\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443\u201d \u0438 \u043d\u0435 \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0430 \u043a\u0430\u043a-\u0442\u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041c\u044b \u0434\u0430\u0451\u043c \u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p><code>get_scene<\/code> \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435;<\/p>\n<\/li>\n<li>\n<p><code>batch_create_elements<\/code> \u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u0447\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443;<\/p>\n<\/li>\n<li>\n<p><code>update_element<\/code> \u2014 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442;<\/p>\n<\/li>\n<li>\n<p><code>done<\/code> \u2014 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u0438. \u041f\u043e\u043b\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0438\u0436\u0435.<\/p>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u0442 \u0441\u0430\u043c\u0430. \u041e\u043d\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442: \u201c\u0432\u044b\u0437\u043e\u0432\u0438 <code>batch_create_elements<\/code> \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438\u201d. \u0410 \u0443\u0436\u0435 \u043c\u043e\u0439 \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u044d\u0442\u043e\u0442 \u0432\u044b\u0437\u043e\u0432 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 canvas.<\/p>\n<h3>\u042f\u0434\u0440\u043e \u0430\u0433\u0435\u043d\u0442\u0430<\/h3>\n<p>\u0412 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432\u0435\u0441\u044c \u0430\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"typescript\">import { runTool, TOOLS } from '.\/tools.js'export async function agent(prompt: string, sessionId = 'default') {   const log: string[] = []  const messages: any[] = [    { role: 'system', content: systemPrompt },    { role: 'user', content: prompt },  ]  for (let turn = 0; turn &lt; 20; turn++) {    const response = await fetch(LLM_URL, {      method: 'POST',      headers: {        Authorization: `Bearer ${LLM_KEY}`,         'Content-Type': 'application\/json',       },      body: JSON.stringify({        model: LLM_MODEL,        messages,        tools: TOOLS.map((tool) =&gt; ({          type: 'function',          function: {             name: tool.name,            description: tool.description,             parameters: tool.parameters,          },        })),        tool_choice: 'auto',      }),    })    const data = await response.json()    const msg = data.choices[0].message    \/\/ msg \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, tool_calls \u0438\u043b\u0438 \u0438 \u0442\u043e \u0438 \u0434\u0440\u0443\u0433\u043e\u0435    messages.push(msg)        if (isDone(msg)) {        return { turns: turn, log }     }       for (const toolCall of msg.tool_calls || []) {       const args = JSON.parse(toolCall.function.arguments || '{}')      const result = await runTool(toolCall.function.name, args, sessionId)      messages.push({            role: 'tool',           tool_call_id: toolCall.id,        content: JSON.stringify(result),      })    }  }  return { turns: 20, log }}<\/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>\u042d\u0442\u043e \u043d\u0435 production-ready \u0432\u0435\u0440\u0441\u0438\u044f \u2014 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0435\u0449\u0451 \u0435\u0441\u0442\u044c timeout, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HTTP-\u0441\u0442\u0430\u0442\u0443\u0441\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a LLM \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 JSON. \u041d\u043e \u0441\u0443\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0430\u044f.<\/p>\n<p>\u0422\u0440\u0438 \u0448\u0430\u0433\u0430 \u0432 \u0446\u0438\u043a\u043b\u0435:<\/p>\n<ol>\n<li>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c LLM \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438: \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, tool calls \u0438\u043b\u0438 \u043e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u0440\u0430\u0437\u0443.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c tool calls \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u0438 \u0435\u0441\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u044f \u201c\u043c\u0430\u0433\u0438\u044f\u201d \u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h3>\u041a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0437\u043d\u0430\u0451\u0442, \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b<\/h3>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a JSON Schema. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre><code class=\"typescript\">{    name: 'create_element',   description: 'Create a new Excalidraw element. For arrows, use startElementId\/endElementId to bind to shapes.',  parameters: {        type: 'object',    properties: {       type: {         enum: ['rectangle', 'ellipse', 'diamond', 'arrow', 'text', 'line']       },      x: { type: 'number' },      y: { type: 'number' },      width: { type: 'number' },      height: { type: 'number' },      text: { type: 'string' },      backgroundColor: { type: 'string' },       strokeColor: { type: 'string' },      startElementId: { type: 'string' },      endElementId: { type: 'string' },    },    required: ['type', 'x', 'y'],  },}<\/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>LLM \u0432\u0438\u0434\u0438\u0442 \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"json\">{    \"type\": \"rectangle\",    \"x\": 320,  \"y\": 80,  \"width\": 160,  \"height\": 70,  \"text\": \"CEO\",  \"backgroundColor\": \"#a5d8ff\"}<\/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>\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u0437\u043d\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 Excalidraw \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043b\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0430 \u0443\u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b canvas.<\/p>\n<h3>\u041a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u201c\u0432\u0438\u0434\u0438\u0442\u201d \u0445\u043e\u043b\u0441\u0442<\/h3>\n<p>\u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u043c\u043e\u0434\u0435\u043b\u044c <strong>\u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443<\/strong>.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0438\u0448\u0443 \u201c\u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442\u201d \u0438\u043b\u0438 \u201c\u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u201d, \u044d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0430 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u043d\u0430 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 canvas \u0433\u043b\u0430\u0437\u0430\u043c\u0438. \u041e\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u044b:<\/p>\n<pre><code>[rectangle] \"CEO\" at (350, 50)[rectangle] \"VP Engineering\" at (130, 230)[rectangle] \"VP Product\" at (570, 230)[arrow] from CEO to VP Engineering[arrow] from CEO to VP Product<\/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>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 <code>get_scene<\/code>. \u041a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e, \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u0435\u0442 \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.<\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 feedback loop:<\/p>\n<pre><code>draw -&gt; get_scene -&gt; analyze -&gt; fix -&gt; get_scene -&gt; done<\/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>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0448\u0430\u0433 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 JSON \u0432 \u0430\u0433\u0435\u043d\u0442\u0430. \u0411\u0435\u0437 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u201c\u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0435\u0442\u201d \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0421 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u044c\u044e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 batch_create_elements \u0432\u0430\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f<\/h3>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0445\u0432\u0430\u0442\u0438\u0442 \u043e\u0434\u043d\u043e\u0433\u043e <code>create_element<\/code>. \u041c\u043e\u0434\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443: \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0442\u0435\u043a\u0441\u0442, \u0441\u0442\u0440\u0435\u043b\u043a\u0430, \u0435\u0449\u0451 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0435\u0449\u0451 \u0441\u0442\u0440\u0435\u043b\u043a\u0430.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e:<\/p>\n<ul>\n<li>\n<p>\u043c\u043d\u043e\u0433\u043e round-trip\u2019\u043e\u0432 \u043a LLM;<\/p>\n<\/li>\n<li>\n<p>\u0431\u043e\u043b\u044c\u0448\u0435 \u0448\u0430\u043d\u0441\u043e\u0432 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f <code>batch_create_elements<\/code>: \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043e\u0434\u043d\u0438\u043c tool call \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"json\">{    \"elements\": [    { \"id\": \"ceo\", \"type\": \"rectangle\", \"x\": 350, \"y\": 50, \"text\": \"CEO\" },    { \"id\": \"eng\", \"type\": \"rectangle\", \"x\": 150, \"y\": 220, \"text\": \"VP Engineering\" },    { \"id\": \"prod\", \"type\": \"rectangle\", \"x\": 550, \"y\": 220, \"text\": \"VP Product\" },    { \"type\": \"arrow\", \"startElementId\": \"ceo\", \"endElementId\": \"eng\" },    { \"type\": \"arrow\", \"startElementId\": \"ceo\", \"endElementId\": \"prod\" }  ]}<\/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>\u042d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438, \u0430 \u0441\u043e \u0432\u0441\u0435\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0446\u0435\u043b\u0438\u043a\u043e\u043c: \u0441\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0441\u0432\u044f\u0437\u0438 \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<h3>\u0421\u0430\u043c\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: \u0441\u0442\u0440\u0435\u043b\u043a\u0438<\/h3>\n<p>\u041f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u0430\u0436\u0435 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0435\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c line \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 A \u0434\u043e \u0442\u043e\u0447\u043a\u0438 B, \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 Excalidraw, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u043a \u0444\u0438\u0433\u0443\u0440\u0430\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<\/p>\n<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0430\u0433\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043d\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0430 \u0438 \u043a\u043e\u043d\u0446\u0430, \u0430 <code>startElementId<\/code> \u0438 <code>endElementId<\/code>:<\/p>\n<pre><code class=\"json\">{    \"type\": \"arrow\",  \"startElementId\": \"ceo\",  \"endElementId\": \"vp-eng\"}<\/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>\u0410 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0436\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0442\u043e\u0447\u043a\u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0444\u0438\u0433\u0443\u0440 \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Excalidraw binding:<\/p>\n<pre><code class=\"typescript\">function edgePoint(el, targetX, targetY, gap) {  const cx = el.x + el.width \/ 2    const cy = el.y + el.height \/ 2   const dx = targetX - cx    const dy = targetY - cy  const hw = el.width \/ 2   const hh = el.height \/ 2   const scale = Math.abs(dx) * hh &gt; Math.abs(dy) * hw ? hw \/ Math.abs(dx): hh \/ Math.abs(dy)    return {    x: cx + dx * scale + (dx &gt; 0 ? gap : -gap),    y: cy + dy * scale + (dy &gt; 0 ? gap : -gap),   }}<\/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>\u0414\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u201c\u0446\u0435\u043d\u0442\u0440 \u0444\u0438\u0433\u0443\u0440\u044b -&gt; \u0446\u0435\u043b\u044c\u201d \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430. \u0414\u043b\u044f ellipse \u0438 diamond \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0435; \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u044f \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u044d\u0442\u0438 \u0432\u0435\u0442\u043a\u0438 \u0440\u0430\u0434\u0438 \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438. \u0418\u0434\u0435\u044f \u0442\u0430 \u0436\u0435: \u043d\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044e, \u0430 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435.<\/p>\n<p>\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: <strong>\u0445\u043e\u0440\u043e\u0448\u0438\u0439 tool \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043d\u0435 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/strong>.<\/p>\n<h3>\u0427\u0442\u043e \u0430\u0433\u0435\u043d\u0442 \u0443\u043c\u0435\u0435\u0442<\/h3>\n<p>\u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041e\u043d \u043c\u043e\u0436\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0430\u0447\u043a\u043e\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0446\u0435\u043d\u0443;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0443\u0434\u0430\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u044b\u0432\u0430\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p>\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043b\u0430\u0442\u044c snapshot \u0441\u0446\u0435\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c snapshot;<\/p>\n<\/li>\n<li>\n<p>\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c viewport;<\/p>\n<\/li>\n<li>\n<p>\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 design guide;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 <code>done<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f 4-5 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ol>\n<li>\n<p><code>get_scene<\/code> \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435;<\/p>\n<\/li>\n<li>\n<p><code>batch_create_elements<\/code> \u2014 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443;<\/p>\n<\/li>\n<li>\n<p><code>create_element<\/code> \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u043b\u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0443;<\/p>\n<\/li>\n<li>\n<p><code>update_element<\/code> \u2014 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442;<\/p>\n<\/li>\n<li>\n<p><code>done<\/code> \u2014 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ol>\n<p>\u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0443\u0440\u043e\u043a: \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 API. \u0415\u0439 \u043d\u0443\u0436\u0435\u043d \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.<\/p>\n<h3>\u0410\u0433\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0441\u0435\u0431\u044f \u0447\u0438\u043d\u0438\u0442<\/h3>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u0442\u0435\u0441\u0442\u0435 \u0441 \u0442\u0440\u0451\u0445\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u043e\u0440\u0433\u0447\u0430\u0440\u0442\u043e\u043c.<\/p>\n<p>\u042f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u0430\u0433\u0435\u043d\u0442\u0430 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \u0441\u0442\u0430\u043b\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0446\u0435\u043d\u0430: \u043f\u043e\u0441\u043b\u0435 <code>get_scene<\/code> \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0432\u0438\u0434\u0435\u043b\u0430, \u0447\u0442\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043d\u043e \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 <code>startElementId<\/code>\/<code>endElementId<\/code>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d\u0430 \u0440\u0435\u0448\u0438\u043b\u0430 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0445 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u0443\u0436\u0435 \u043a\u0430\u043a bound arrows.<\/p>\n<p>\u041b\u043e\u0433 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>\ud83e\udd16 Let me check the current scene  \ud83d\udee0 get_scene({})\ud83e\udd16 Canvas is empty. Creating org chart...    \ud83d\udee0 batch_create_elements({ 6 rectangles, 5 arrows })\ud83e\udd16 The arrows are wrong \u2014 they're not bound to shapes. Let me fix that.    \ud83d\udee0 delete_element({ id: \"arrow-1\" })    \ud83d\udee0 delete_element({ id: \"arrow-2\" })    \ud83d\udee0 delete_element({ id: \"arrow-3\" })    \ud83d\udee0 delete_element({ id: \"arrow-4\" })    \ud83d\udee0 delete_element({ id: \"arrow-5\" })\ud83e\udd16 Recreating arrows with proper bindings    \ud83d\udee0 create_element({ type: \"arrow\", startElementId: \"ceo\", endElementId: \"vp-eng\" })  \ud83d\udee0 create_element({ type: \"arrow\", startElementId: \"ceo\", endElementId: \"vp-prod\" })   \ud83d\udee0 create_element({ type: \"arrow\", ... })   \ud83d\udee0 create_element({ type: \"arrow\", ... })   \ud83d\udee0 create_element({ type: \"arrow\", ... })\ud83e\udd16 Let me verify the result  \ud83d\udee0 get_scene({})\ud83e\udd16 Done! Here's your org chart.<\/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>\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0442\u044c. \u042d\u0442\u043e \u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f \u0438 \u043d\u0435 \u043c\u0430\u0433\u0438\u044f.<\/p>\n<p>\u041d\u043e \u044d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0436\u043d\u0443\u044e \u0432\u0435\u0449\u044c: \u0435\u0441\u043b\u0438 \u0434\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043e\u043d\u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c:<\/p>\n<pre><code>\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c -&gt; \u0441\u0434\u0435\u043b\u0430\u0442\u044c -&gt; \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c -&gt; \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c -&gt; \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c<\/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>\u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u201cLLM \u0441 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438\u201d \u0438 \u201c\u0430\u0433\u0435\u043d\u0442\u043e\u043c\u201d. \u041d\u0435 \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432, \u0430 \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u0446\u0438\u043a\u043b\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438.<\/p>\n<h3>\u0413\u0434\u0435 \u043d\u0430\u0447\u0430\u043b\u0438\u0441\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0433\u0440\u0430\u0431\u043b\u0438<\/h3>\n<p>\u042f\u0434\u0440\u043e \u0430\u0433\u0435\u043d\u0442\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439.<\/p>\n<p>\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442 \u0438\u0437 agent loop \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u0435\u0441\u0442\u0430.<\/p>\n<h4>1. \u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u0446\u0435\u043d\u044b \u0432\u0430\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f<\/h4>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 canvas. \u041e\u043d\u0430 \u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code>get_scene<\/code>. \u0415\u0441\u043b\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u0435\u0434\u043d\u043e\u0435, \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u044f\u0442\u044c, \u0447\u0442\u043e \u043d\u0435 \u0442\u0430\u043a. \u0415\u0441\u043b\u0438 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0434\u043b\u0438\u043d\u043d\u043e\u0435 \u2014 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0441\u043e\u0440\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u0435\u043d, \u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 dump \u0432\u0441\u0435\u0433\u043e JSON Excalidraw.<\/p>\n<h4>2. Tool descriptions \u2014 \u044d\u0442\u043e \u0447\u0430\u0441\u0442\u044c UX<\/h4>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043d\u0443\u0436\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434\u0443. \u041e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>\u041f\u043b\u043e\u0445\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u043f\u043b\u043e\u0445\u043e\u0439 UI \u0434\u043b\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430. \u041c\u043e\u0434\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043f\u0443\u0442\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u0432\u0430\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u044f\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c: \u201cuse <code>startElementId<\/code>\/<code>endElementId<\/code> to bind to shapes\u201d. \u0411\u0435\u0437 \u044d\u0442\u043e\u0439 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e \u043f\u044b\u0442\u0430\u043b\u0430\u0441\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c\u0438.<\/p>\n<h4>3. Batch operations \u043f\u043e\u0447\u0442\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442 \u0440\u0438\u0441\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443, \u043e\u043d \u0442\u0440\u0430\u0442\u0438\u0442 \u043c\u043d\u043e\u0433\u043e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 <code>batch_create_elements<\/code> \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0432\u0430\u0436\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<h4>4. \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0436\u0438\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435<\/h4>\n<p>\u0415\u0441\u043b\u0438 canvas \u043e\u0442\u043a\u0440\u044b\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0430\u0433\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043b\u0435\u0436\u0430\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e frontend state \u2014 \u0432\u0441\u0451 \u0431\u044b\u0441\u0442\u0440\u043e \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f model layer: \u0441\u0435\u0441\u0441\u0438\u0438, \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, snapshots \u0438 WebSocket-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435 \u201c\u0430\u0433\u0435\u043d\u0442 \u0437\u0430 100 \u0441\u0442\u0440\u043e\u043a\u201d, \u043d\u043e \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0430\u0433\u0435\u043d\u0442\u0443 \u043d\u0435 \u0441 \u0447\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<h4>5. \u0411\u0435\u0437 \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 demo \u043e\u043f\u0430\u0441\u0435\u043d<\/h4>\n<p>\u0415\u0441\u043b\u0438 endpoint <code>\/api\/agent<\/code> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430\u0440\u0443\u0436\u0443, \u043b\u044e\u0431\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0442\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0430\u0448 LLM API key. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u0443\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u2014 \u044d\u0442\u043e \u0442\u0435\u043c\u0430 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u2014 \u043d\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<ul>\n<li>\n<p>token guard;<\/p>\n<\/li>\n<li>\n<p>rate limit;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u044b prompt;<\/p>\n<\/li>\n<li>\n<p>timeout \u043d\u0430 LLM-\u0437\u0430\u043f\u0440\u043e\u0441;<\/p>\n<\/li>\n<li>\n<p>\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u0441\u043a\u0443\u0447\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c, \u043d\u043e \u0431\u0435\u0437 \u043d\u0435\u0451 \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043d\u0430 VPS.<\/p>\n<h3>\u0411\u043e\u043d\u0443\u0441: \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0434\u0430\u0442\u044c \u0430\u0433\u0435\u043d\u0442\u0443 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0435\u0431\u044f<\/h3>\n<p>\u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 system prompt \u0444\u0440\u0430\u0437\u0443: \u201c\u0422\u044b \u2014 AI-\u0430\u0433\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0438\u0441\u0443\u0435\u0442 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b. \u0422\u0432\u043e\u0439 \u043a\u043e\u0434 \u043d\u0430 TypeScript \u043b\u0435\u0436\u0438\u0442 \u0432 <code>src\/agent.ts<\/code>\u201d.<\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0437\u0430\u0431\u0430\u0432\u043d\u044b\u0439. \u0410\u0433\u0435\u043d\u0442 \u043e\u0442\u0432\u0435\u0442\u0438\u043b \u043f\u043e-\u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438; \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0441\u043c\u044b\u0441\u043b:<\/p>\n<blockquote>\n<p>\u042f \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u043a\u0430\u043a AI-\u0430\u0433\u0435\u043d\u0442 \u0432 \u0446\u0438\u043a\u043b\u0435. \u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0438 \u044f \u0432\u044b\u0437\u044b\u0432\u0430\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b. \u041c\u043e\u0439 \u043a\u043e\u0434 \u043b\u0435\u0436\u0438\u0442 \u0432 <code>agent.ts<\/code>: \u044f \u043c\u043e\u0433 \u0431\u044b \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d, \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0440\u0438\u0441\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443.<\/p>\n<\/blockquote>\n<p>\u041e\u043d \u043d\u0435 \u0441\u0442\u0430\u043b \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043e \u0441\u0435\u0431\u0435, \u0430 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b \u0440\u0435\u0448\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>\u0412 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0441\u043c\u044b\u0441\u043b\u0435 \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u044f\u0442\u044c \u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435. \u041e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0434\u0432\u0438\u0433\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043a \u0446\u0435\u043b\u0438.<\/p>\n<h3>\u0427\u0442\u043e \u0432 \u0441\u0443\u0445\u043e\u043c \u043e\u0441\u0442\u0430\u0442\u043a\u0435<\/h3>\n<p>\u042d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043d\u0435 \u043f\u0440\u043e Excalidraw.<\/p>\n<p>Excalidraw \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430, \u0433\u0434\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0430\u0433\u0435\u043d\u0442\u0430 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0435\u043d \u0433\u043b\u0430\u0437\u0430\u043c\u0438. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0442 \u0436\u0435 \u043f\u043e\u0434\u0445\u043e\u0434 \u0434\u043b\u044f GitHub issues, \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, CI\/CD, CRM, \u043a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044f \u0438\u043b\u0438 \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u0435\u0449\u0451.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0442\u0430\u043a\u0438\u0435.<\/p>\n<h4>1. \u0410\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f<\/h4>\n<p>\u0412 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u043e:<\/p>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d2e\/002\/1b8\/d2e0021b80c9cf95b369a58ee7687667.png\" width=\"386\" height=\"407\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/d2e\/002\/1b8\/d2e0021b80c9cf95b369a58ee7687667.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d2e\/002\/1b8\/d2e0021b80c9cf95b369a58ee7687667.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0433\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0442.<\/p>\n<h4>2. \u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0432\u0430\u0436\u043d\u0435\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430<\/h4>\n<p>LangChain, MCP \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b. \u041d\u043e \u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0438\u0437-\u0437\u0430 \u043d\u0438\u0445. \u041e\u043d\u0430 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0435\u0441\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u044c.<\/p>\n<h4>3. \u041c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438, \u0435\u0441\u043b\u0438 \u0432\u0438\u0434\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h4>\n<p>\u041d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u041d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u043c\u043e\u0436\u0435\u0442.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 \u0441\u0432\u043e\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0443 \u043d\u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0448\u0430\u043d\u0441 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044e \u043b\u0443\u0447\u0448\u0435.<\/p>\n<h4>4. \u201c100 \u0441\u0442\u0440\u043e\u043a\u201d \u2014 \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u044f\u0434\u0440\u043e<\/h4>\n<p>\u0414\u0430, agent loop \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439. \u041d\u043e \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u043e\u043b\u044c\u0448\u0435: model layer, tools, WebSocket, UI, \u0444\u043e\u0440\u043c\u0430\u0442 Excalidraw-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430 \u0441\u0442\u0440\u0435\u043b\u043e\u043a, deploy \u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0418 \u044d\u0442\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u0410\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u2014 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439. \u041f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0433\u043e \u2014 \u043d\u0435\u0442.<\/p>\n<h3>\u041a\u043e\u0434<\/h3>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u043e\u0442\u043a\u0440\u044b\u0442 \u0437\u0434\u0435\u0441\u044c:<\/p>\n<p><a href=\"https:\/\/github.com\/mikhail-angelov\/excalidraw-agent\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/mikhail-angelov\/excalidraw-agent<\/a><\/p>\n<p>\u041e\u043d \u043e\u0441\u043d\u043e\u0432\u0430\u043d \u043d\u0430 <code>mcp_excalidraw<\/code> \u043e\u0442 yctimlin: \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0437\u044f\u0442\u044b \u0438\u0434\u0435\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 canvas, UI \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0410\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0441 \u043d\u0443\u043b\u044f, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c.<\/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\/1056842\/\">https:\/\/habr.com\/ru\/articles\/1056842\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b \u044f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b ChatGPT \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443. \u0417\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043e\u043d \u0441\u0434\u0435\u043b\u0430\u043b? \u041d\u0430\u043f\u0438\u0441\u0430\u043b ASCII-\u0430\u0440\u0442:\u041c\u0438\u043b\u043e, \u043d\u043e \u043d\u0435 \u0442\u043e.\u042f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443: \u0441 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430\u043c\u0438, \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438, \u0446\u0432\u0435\u0442\u0430\u043c\u0438, \u0437\u0443\u043c\u043e\u043c \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0440\u0443\u043a\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u0447\u0430\u0442\u0430 \u0438 \u043d\u0435 ASCII, \u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 canvas.\u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0437\u044f\u0442\u044c LangChain, MCP, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 agent framework \u0438 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u0432\u0441\u0451 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043b\u043e\u044f\u043c\u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439. \u041d\u043e \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0434\u0440\u0443\u0433\u043e\u0435: \u0447\u0442\u043e \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b LLM \u0441\u0442\u0430\u043b\u0430 \u0430\u0433\u0435\u043d\u0442\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u043c\u0438\u0440\u0430?\u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u0438\u043c \u201c\u0432\u043d\u0435\u0448\u043d\u0438\u043c \u043c\u0438\u0440\u043e\u043c\u201d \u0441\u0442\u0430\u043b Excalidraw canvas.\u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0430\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0441 \u043d\u0443\u043b\u044f. \u0412\u0430\u0436\u043d\u043e\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u0438\u0435: \u043d\u0435 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u044f\u0434\u0440\u043e \u0430\u0433\u0435\u043d\u0442\u0430 \u2014 \u043e\u043a\u043e\u043b\u043e 100 \u0441\u0442\u0440\u043e\u043a. \u0412\u043e\u043a\u0440\u0443\u0433 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440, model layer, WebSocket, UI \u0438 \u043a\u0443\u0447\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u044b\u0445 \u0434\u0435\u0442\u0430\u043b\u0435\u0439. \u041d\u043e \u0441\u0430\u043c\u0430 \u201c\u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c\u201d \u0436\u0438\u0432\u0451\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0446\u0438\u043a\u043b\u0435. \u0411\u0435\u0437 LangChain, \u0431\u0435\u0437 MCP, \u0431\u0435\u0437 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u201c\u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438\u201d.\u0421\u043f\u043e\u0439\u043b\u0435\u0440: \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u043e\u0440\u0433\u0447\u0430\u0440\u0442. \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u043e\u0433\u043e\u043d\u043e\u0432 \u043e\u043d \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0435\u0433\u043e, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0443\u0434\u0430\u043b\u0438\u043b \u0438\u0445, \u043f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u043b \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0430\u043c\u0438 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0430\u0437\u0430\u043b \u201c\u0433\u043e\u0442\u043e\u0432\u043e\u201d.\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c.\u0418\u0434\u0435\u044f: \u043d\u0435 \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u0430 \u0434\u0430\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0447\u0430\u0442 \u0441 LLM \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a:user prompt -&gt; LLM -&gt; text answer\u0410\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442: \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b.\u0422\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0438\u043c \u043c\u043e\u0434\u0435\u043b\u044c \u201c\u043d\u0430\u0440\u0438\u0441\u0443\u0439 \u043c\u043d\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443\u201d \u0438 \u043d\u0435 \u043d\u0430\u0434\u0435\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0430 \u043a\u0430\u043a-\u0442\u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041c\u044b \u0434\u0430\u0451\u043c \u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:get_scene \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435;batch_create_elements \u2014 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u0447\u043a\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0440\u0430\u0437\u0443;update_element \u2014 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442;done \u2014 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443.\u042d\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u0438. \u041f\u043e\u043b\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u043d\u0438\u0436\u0435.\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0440\u0438\u0441\u0443\u0435\u0442 \u0441\u0430\u043c\u0430. \u041e\u043d\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442: \u201c\u0432\u044b\u0437\u043e\u0432\u0438 batch_create_elements \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438\u201d. \u0410 \u0443\u0436\u0435 \u043c\u043e\u0439 \u043a\u043e\u0434 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u044d\u0442\u043e\u0442 \u0432\u044b\u0437\u043e\u0432 \u0438 \u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 canvas.\u042f\u0434\u0440\u043e \u0430\u0433\u0435\u043d\u0442\u0430\u0412 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0432\u0435\u0441\u044c \u0430\u0433\u0435\u043d\u0442\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:import { runTool, TOOLS } from &#8216;.\/tools.js&#8217;export async function agent(prompt: string, sessionId = &#8216;default&#8217;) {   const log: string[] = []  const messages: any[] = [    { role: &#8216;system&#8217;, content: systemPrompt },    { role: &#8216;user&#8217;, content: prompt },  ]  for (let turn = 0; turn &lt; 20; turn++) {    const response = await fetch(LLM_URL, {      method: &#8216;POST&#8217;,      headers: {        Authorization: `Bearer ${LLM_KEY}`,         &#8216;Content-Type&#8217;: &#8216;application\/json&#8217;,       },      body: JSON.stringify({        model: LLM_MODEL,        messages,        tools: TOOLS.map((tool) =&gt; ({          type: &#8216;function&#8217;,          function: {             name: tool.name,            description: tool.description,             parameters: tool.parameters,          },        })),        tool_choice: &#8216;auto&#8217;,      }),    })    const data = await response.json()    const msg = data.choices[0].message    \/\/ msg \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, tool_calls \u0438\u043b\u0438 \u0438 \u0442\u043e \u0438 \u0434\u0440\u0443\u0433\u043e\u0435    messages.push(msg)        if (isDone(msg)) {        return { turns: turn, log }     }       for (const toolCall of msg.tool_calls || []) {       const args = JSON.parse(toolCall.function.arguments || &#8216;{}&#8217;)      const result = await runTool(toolCall.function.name, args, sessionId)      messages.push({            role: &#8216;tool&#8217;,           tool_call_id: toolCall.id,        content: JSON.stringify(result),      })    }  }  return { turns: 20, log }}\u042d\u0442\u043e \u043d\u0435 production-ready \u0432\u0435\u0440\u0441\u0438\u044f \u2014 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0435\u0449\u0451 \u0435\u0441\u0442\u044c timeout, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 HTTP-\u0441\u0442\u0430\u0442\u0443\u0441\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a LLM \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 JSON. \u041d\u043e \u0441\u0443\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a\u0430\u044f.\u0422\u0440\u0438 \u0448\u0430\u0433\u0430 \u0432 \u0446\u0438\u043a\u043b\u0435:\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c LLM \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438: \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, tool calls \u0438\u043b\u0438 \u043e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0441\u0440\u0430\u0437\u0443.\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c tool calls \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433.\u0412 \u044d\u0442\u043e\u043c \u0438 \u0435\u0441\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u044f \u201c\u043c\u0430\u0433\u0438\u044f\u201d \u0430\u0433\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438.\u041a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0437\u043d\u0430\u0451\u0442, \u043a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a JSON Schema. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430:{    name: &#8216;create_element&#8217;,   description: &#8216;Create a new Excalidraw element. For arrows, use startElementId\/endElementId to bind to shapes.&#8217;,  parameters: {        type: &#8216;object&#8217;,    properties: {       type: {         enum: [&#8216;rectangle&#8217;, &#8216;ellipse&#8217;, &#8216;diamond&#8217;, &#8216;arrow&#8217;, &#8216;text&#8217;, &#8216;line&#8217;]       },      x: { type: &#8216;number&#8217; },      y: { type: &#8216;number&#8217; },      width: { type: &#8216;number&#8217; },      height: { type: &#8216;number&#8217; },      text: { type: &#8216;string&#8217; },      backgroundColor: { type: &#8216;string&#8217; },       strokeColor: { type: &#8216;string&#8217; },      startElementId: { type: &#8216;string&#8217; },      endElementId: { type: &#8216;string&#8217; },    },    required: [&#8216;type&#8217;, &#8216;x&#8217;, &#8216;y&#8217;],  },}LLM \u0432\u0438\u0434\u0438\u0442 \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u043a\u0430\u043a\u0438\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:{    &#171;type&#187;: &#171;rectangle&#187;,    &#171;x&#187;: 320,  &#171;y&#187;: 80,  &#171;width&#187;: 160,  &#171;height&#187;: 70,  &#171;text&#187;: &#171;CEO&#187;,  &#171;backgroundColor&#187;: &#171;#a5d8ff&#187;}\u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d\u0430 \u0437\u043d\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 Excalidraw \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0441\u043b\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u0430 \u0443\u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b canvas.\u041a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u201c\u0432\u0438\u0434\u0438\u0442\u201d \u0445\u043e\u043b\u0441\u0442\u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443.\u041a\u043e\u0433\u0434\u0430 \u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0438\u0448\u0443 \u201c\u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0438\u0434\u0438\u0442\u201d \u0438\u043b\u0438 \u201c\u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u201d, \u044d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0430 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0447\u0442\u0435\u043d\u0438\u044f. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u043d\u0430 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430 canvas \u0433\u043b\u0430\u0437\u0430\u043c\u0438. \u041e\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0446\u0435\u043d\u044b:[rectangle] &#171;CEO&#187; at (350, 50)[rectangle] &#171;VP Engineering&#187; at (130, 230)[rectangle] &#171;VP Product&#187; at (570, 230)[arrow] from CEO to VP Engineering[arrow] from CEO to VP Product\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 get_scene. \u041a\u043e\u0433\u0434\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e, \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0431\u0435\u0433\u0430\u0435\u0442 \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435.\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 feedback loop:draw -&gt; get_scene -&gt; analyze -&gt; fix -&gt; get_scene -&gt; done\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 \u0448\u0430\u0433 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 JSON \u0432 \u0430\u0433\u0435\u043d\u0442\u0430. \u0411\u0435\u0437 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u201c\u0432\u044b\u0441\u0442\u0440\u0435\u043b\u0438\u0432\u0430\u0435\u0442\u201d \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0421 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u044c\u044e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0438 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.\u041f\u043e\u0447\u0435\u043c\u0443 batch_create_elements \u0432\u0430\u0436\u043d\u0435\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0445\u0432\u0430\u0442\u0438\u0442 \u043e\u0434\u043d\u043e\u0433\u043e create_element. \u041c\u043e\u0434\u0435\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443: \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0442\u0435\u043a\u0441\u0442, \u0441\u0442\u0440\u0435\u043b\u043a\u0430, \u0435\u0449\u0451 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0435\u0449\u0451 \u0441\u0442\u0440\u0435\u043b\u043a\u0430.\u041d\u043e \u044d\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e:\u043c\u043d\u043e\u0433\u043e round-trip\u2019\u043e\u0432 \u043a LLM;\u0431\u043e\u043b\u044c\u0448\u0435 \u0448\u0430\u043d\u0441\u043e\u0432 \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435;\u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439;\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435.\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f batch_create_elements: \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u043e\u0434\u043d\u0438\u043c tool call \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:{    &#171;elements&#187;: [    { &#171;id&#187;: &#171;ceo&#187;, &#171;type&#187;: &#171;rectangle&#187;, &#171;x&#187;: 350, &#171;y&#187;: 50, &#171;text&#187;: &#171;CEO&#187; },    { &#171;id&#187;: &#171;eng&#187;, &#171;type&#187;: &#171;rectangle&#187;, &#171;x&#187;: 150, &#171;y&#187;: 220, &#171;text&#187;: &#171;VP Engineering&#187; },    { &#171;id&#187;: &#171;prod&#187;, &#171;type&#187;: &#171;rectangle&#187;, &#171;x&#187;: 550, &#171;y&#187;: 220, &#171;text&#187;: &#171;VP Product&#187; },    { &#171;type&#187;: &#171;arrow&#187;, &#171;startElementId&#187;: &#171;ceo&#187;, &#171;endElementId&#187;: &#171;eng&#187; },    { &#171;type&#187;: &#171;arrow&#187;, &#171;startElementId&#187;: &#171;ceo&#187;, &#171;endElementId&#187;: &#171;prod&#187; }  ]}\u042d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u041c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438, \u0430 \u0441\u043e \u0432\u0441\u0435\u0439 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0446\u0435\u043b\u0438\u043a\u043e\u043c: \u0441\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0441\u0432\u044f\u0437\u0438 \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.\u0421\u0430\u043c\u0430\u044f \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c: \u0441\u0442\u0440\u0435\u043b\u043a\u0438\u041f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u0430\u0436\u0435 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e.\u0410 \u0432\u043e\u0442 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u0435\u0435.\u0415\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c line \u043e\u0442 \u0442\u043e\u0447\u043a\u0438 A \u0434\u043e \u0442\u043e\u0447\u043a\u0438 B, \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e. \u041d\u043e \u044d\u0442\u043e \u043d\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 Excalidraw, \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u043a \u0444\u0438\u0433\u0443\u0440\u0430\u043c. \u0415\u0441\u043b\u0438 \u043f\u043e\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u0435\u0441\u0442\u0435.\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u0430\u0433\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u043a\u0430\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u044b \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c.\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u043d\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043d\u0430\u0447\u0430\u043b\u0430 \u0438 \u043a\u043e\u043d\u0446\u0430, \u0430 startElementId \u0438 endElementId:{    &#171;type&#187;: &#171;arrow&#187;,  &#171;startElementId&#187;: &#171;ceo&#187;,  &#171;endElementId&#187;: &#171;vp-eng&#187;}\u0410 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0436\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 \u0442\u043e\u0447\u043a\u0438 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u0444\u0438\u0433\u0443\u0440 \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Excalidraw binding:function edgePoint(el, targetX, targetY, gap) {  const cx = el.x + el.width \/ 2    const cy = el.y + el.height \/ 2   const dx = targetX &#8212; cx    const dy = targetY &#8212; cy  const hw = el.width \/ 2   const hh = el.height \/ 2   const scale = Math.abs(dx) * hh &gt; Math.abs(dy) * hw ? hw \/ Math.abs(dx): hh \/ Math.abs(dy)    return {    x: cx + dx * scale + (dx &gt; 0 ? gap : -gap),    y: cy + dy * scale + (dy &gt; 0 ? gap : -gap),   }}\u0414\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u201c\u0446\u0435\u043d\u0442\u0440 \u0444\u0438\u0433\u0443\u0440\u044b -&gt; \u0446\u0435\u043b\u044c\u201d \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430. \u0414\u043b\u044f ellipse \u0438 diamond \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0435; \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u044b\u0448\u0435 \u044f \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u044d\u0442\u0438 \u0432\u0435\u0442\u043a\u0438 \u0440\u0430\u0434\u0438 \u043a\u0440\u0430\u0442\u043a\u043e\u0441\u0442\u0438. \u0418\u0434\u0435\u044f \u0442\u0430 \u0436\u0435: \u043d\u0435 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044e, \u0430 \u0441\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435.\u042d\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f: \u0445\u043e\u0440\u043e\u0448\u0438\u0439 tool \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0443\u0434\u043e\u0431\u0435\u043d \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043d\u0435 \u0434\u043b\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.\u0427\u0442\u043e \u0430\u0433\u0435\u043d\u0442 \u0443\u043c\u0435\u0435\u0442\u0412 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0443 \u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044f\u0442\u043a\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u041e\u043d \u043c\u043e\u0436\u0435\u0442:\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;\u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u0430\u0447\u043a\u043e\u0439;\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0446\u0435\u043d\u0443;\u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;\u0443\u0434\u0430\u043b\u044f\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0437\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u044b\u0432\u0430\u0442\u044c;\u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c;\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b;\u0434\u0435\u043b\u0430\u0442\u044c snapshot \u0441\u0446\u0435\u043d\u044b;\u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c snapshot;\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c viewport;\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u043a\u0438\u0439 design guide;\u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 done.\u041d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f 4-5 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432:get_scene \u2014 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435;batch_create_elements \u2014 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443;create_element \u2014 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438\u043b\u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0443;update_element \u2014 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442;done \u2014 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c.\u042d\u0442\u043e \u0442\u043e\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0443\u0440\u043e\u043a: \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 API. \u0415\u0439 \u043d\u0443\u0436\u0435\u043d \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439.\u0410\u0433\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u043c \u0441\u0435\u0431\u044f \u0447\u0438\u043d\u0438\u0442\u0421\u0430\u043c\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u0442\u0435\u0441\u0442\u0435 \u0441 \u0442\u0440\u0451\u0445\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c \u043e\u0440\u0433\u0447\u0430\u0440\u0442\u043e\u043c.\u042f \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b \u0430\u0433\u0435\u043d\u0442\u0430 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \u0441\u0442\u0430\u043b\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0446\u0435\u043d\u0430: \u043f\u043e\u0441\u043b\u0435 get_scene \u043c\u043e\u0434\u0435\u043b\u044c \u0443\u0432\u0438\u0434\u0435\u043b\u0430, \u0447\u0442\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u043d\u043e \u043d\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 startElementId\/endElementId. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043d\u0430 \u0440\u0435\u0448\u0438\u043b\u0430 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0438\u0445 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e \u0443\u0436\u0435 \u043a\u0430\u043a bound arrows.\u041b\u043e\u0433 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:\ud83e\udd16 Let me check the current scene  \ud83d\udee0 get_scene({})\ud83e\udd16 Canvas is empty. Creating org chart&#8230;    \ud83d\udee0 batch_create_elements({ 6 rectangles, 5 arrows })\ud83e\udd16 The arrows are wrong \u2014 they&#8217;re not bound to shapes. Let me fix that.    \ud83d\udee0&#8230;<\/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-486591","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/486591","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=486591"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/486591\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}