// Slide 10: LangGraph Platform deployment + langgraph.json + SDK invoke // Code slide with platform overview + deploy + remote invoke. const ds = require('./design-system'); function createSlide(pres, theme) { const slide = pres.addSlide(); ds.helpers.slideBase(slide, pres, theme); ds.helpers.addHeader(slide, pres, theme, { eyebrow: 'STAGE 5: ECOSYSTEM', section: 'Deployment', title: 'LangGraph Platform: deploy + invoke', sectionNumber: 5, titleSize: 24, }); // Left: langgraph.json + deploy ds.helpers.addCodeBlock(slide, pres, theme, { x: 0.5, y: 1.45, w: 4.5, h: 2.55, language: 'bash', fontSize: 10, code: [ '# 1. Конфиг: langgraph.json в корне репо', 'cat > langgraph.json <<\'JSON\'', '{', ' "graphs": {"agent": "./agent.py:graph"},', ' "env": "./.env"', '}', 'JSON', '', '# 2. Deploy one-shot', 'langgraph deploy --name my-agent-prod', ].join('\n'), }); // Right: SDK invoke ds.helpers.addCodeBlock(slide, pres, theme, { x: 5.2, y: 1.45, w: 4.3, h: 2.55, language: 'python', fontSize: 10, code: [ 'from langgraph_sdk import get_client', '', 'client = get_client(url=', ' "https://my-agent-prod.us.langgraph.app"', ')', '', '# async API: thread + run', 'thread = await client.threads.create()', 'run = await client.runs.create(', ' thread["thread_id"], "agent", input={"q": "hi"}', ')', ].join('\n'), }); // Bottom callout ds.helpers.addCallout(slide, pres, theme, { x: 0.5, y: 4.15, w: 9.0, h: 0.8, kind: 'info', title: 'LangGraph Platform', text: 'managed-хостинг для графа: build из langgraph.json, deploy через CLI, ' + 'получаете HTTPS endpoint + Studio UI + threads + cron + webhooks.', }); ds.helpers.addSourceLine(slide, pres, theme, { source: 'langchain-ai.github.io/langgraph/concepts/langgraph_platform/', }); ds.helpers.addPageNumber(slide, pres, theme, 10); } module.exports = { createSlide };