Files
petya 75601988c2 Initial commit: LangChain evolution tutorial deck (132 slides)
- Cover, TOC, 5 dividers, 3 recap slides
- 5 sections (chains, langgraph, deepagents, openswe, ecosystem)
- design-system.js with theme tokens + 9 helper functions
- research/: timeline + sources + per-tech notes
- final-compile.js + merge.js for rebuild pipeline
- output/: langchain-evolution.pptx (2.3 MB) + langchain-evolution.pdf (1.1 MB) + 7 sample previews
2026-06-22 11:29:03 +03:00

73 lines
2.1 KiB
JavaScript

// 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 };