langflow-architect / index.html
zyc66036616's picture
按下面的内容,帮我生成langgrah开发的agent的应用架构图
17f4990 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LangFlow Architect</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
.gradient-text {
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.architecture-card {
transition: all 0.3s ease;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.architecture-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.connector-line {
position: relative;
}
.connector-line::after {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 2px;
height: 100%;
background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
transform: translateX(-50%);
}
</style>
</head>
<body class="bg-gray-50" id="vanta-bg">
<div class="min-h-screen">
<!-- Header -->
<header class="relative bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="cpu" class="text-indigo-600 w-8 h-8"></i>
<h1 class="text-2xl font-bold gradient-text">LangFlow Architect</h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Features</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Architecture</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Docs</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Pricing</a>
</nav>
<button class="md:hidden">
<i data-feather="menu" class="w-6 h-6 text-gray-700"></i>
</button>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="py-16 sm:py-24">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl md:text-6xl font-bold text-gray-900 mb-6">
Visualize Your <span class="gradient-text">Agent Architecture</span>
</h1>
<p class="text-xl text-gray-600 max-w-3xl mx-auto">
Design, prototype and deploy conversational AI agents with our intuitive visual builder.
</p>
<div class="mt-10 flex justify-center space-x-4">
<button class="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-3 rounded-lg font-medium shadow-md transition duration-300">
Get Started
</button>
<button class="border border-indigo-600 text-indigo-600 px-6 py-3 rounded-lg font-medium hover:bg-indigo-50 transition duration-300">
Live Demo
</button>
</div>
</div>
</div>
</section>
<!-- Architecture Overview -->
<section class="py-16 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold text-gray-900">Simplified Agent Architecture</h2>
<p class="text-gray-600 mt-4 max-w-2xl mx-auto">
Our modular design makes it easy to understand and customize every component
</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Frontend Layer -->
<div class="architecture-card bg-white p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i data-feather="layout" class="text-blue-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Frontend Layer</h3>
</div>
<p class="text-gray-600 mb-4">
Clean, responsive interfaces with real-time updates via SSE and REST APIs
</p>
<div class="flex flex-wrap gap-2">
<span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">React</span>
<span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">TailwindCSS</span>
<span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">WebSockets</span>
</div>
</div>
<!-- Connector Line -->
<div class="connector-line hidden md:flex items-center justify-center">
<div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center">
<i data-feather="arrow-right" class="text-indigo-600 w-6 h-6"></i>
</div>
</div>
<!-- Agent Core -->
<div class="architecture-card bg-white p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-3 rounded-full mr-4">
<i data-feather="cpu" class="text-purple-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Agent Core</h3>
</div>
<p class="text-gray-600 mb-4">
State-driven processing with lightweight memory and modular components
</p>
<div class="flex flex-wrap gap-2">
<span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">LangGraph</span>
<span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">LLM</span>
<span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">State Machine</span>
</div>
</div>
<!-- Connector Line -->
<div class="connector-line hidden md:flex items-center justify-center">
<div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center">
<i data-feather="arrow-right" class="text-indigo-600 w-6 h-6"></i>
</div>
</div>
<!-- Integration Layer -->
<div class="architecture-card bg-white p-6 rounded-xl border border-gray-200">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-3 rounded-full mr-4">
<i data-feather="zap" class="text-green-600 w-6 h-6"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Integration Layer</h3>
</div>
<p class="text-gray-600 mb-4">
Connect to any API, database or external service with our adapter system
</p>
<div class="flex flex-wrap gap-2">
<span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">REST</span>
<span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">GraphQL</span>
<span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Webhooks</span>
</div>
</div>
</div>
</div>
</section>
<!-- Visual Diagram -->
<section class="py-16 bg-gradient-to-b from-white to-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-900">LangGraph Agent 架构图</h2>
<p class="text-gray-600 mt-4 max-w-2xl mx-auto">
基于LangGraph的轻量级Agent架构,专为快速部署和基础场景验证设计
</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-lg border border-gray-200">
<div class="relative h-96 w-full bg-gray-100 rounded-lg overflow-hidden">
<!-- LangGraph Agent Architecture Diagram -->
<div class="absolute inset-0 p-8 grid grid-cols-3 gap-4">
<!-- Frontend Layer -->
<div class="bg-blue-50 rounded-xl p-4 border-2 border-blue-200 flex flex-col">
<div class="flex items-center mb-3">
<div class="bg-blue-100 p-2 rounded-lg mr-3">
<i data-feather="monitor" class="text-blue-600 w-5 h-5"></i>
</div>
<h4 class="font-bold text-blue-800">前端层</h4>
</div>
<div class="space-y-2">
<div class="bg-white p-2 rounded-lg border border-blue-100">
<div class="text-xs text-blue-700 font-medium">自然语言输入框</div>
</div>
<div class="bg-white p-2 rounded-lg border border-blue-100">
<div class="text-xs text-blue-700 font-medium">对话历史展示区</div>
</div>
</div>
<div class="mt-auto pt-2">
<div class="text-xs text-blue-600 flex items-center">
<i data-feather="cloud" class="w-3 h-3 mr-1"></i>
<span>SSE/REST通信</span>
</div>
</div>
</div>
<!-- Communication Protocol -->
<div class="bg-purple-50 rounded-xl p-4 border-2 border-purple-200 flex flex-col items-center justify-center">
<div class="text-center">
<div class="bg-purple-100 p-3 rounded-full inline-block mb-2">
<i data-feather="send" class="text-purple-600 w-6 h-6"></i>
</div>
<h4 class="font-bold text-purple-800 mb-2">通信协议</h4>
<div class="text-xs text-purple-700 space-y-1">
<div>JSON消息格式</div>
<div>请求-响应 + SSE</div>
<div>基础数据校验</div>
</div>
</div>
</div>
<!-- Agent Core -->
<div class="bg-green-50 rounded-xl p-4 border-2 border-green-200">
<div class="flex items-center mb-3">
<div class="bg-green-100 p-2 rounded-lg mr-3">
<i data-feather="cpu" class="text-green-600 w-5 h-5"></i>
</div>
<h4 class="font-bold text-green-800">Agent核心</h4>
</div>
<div class="grid grid-cols-2 gap-2">
<div class="bg-white p-2 rounded border border-green-100">
<div class="text-xs text-green-700 font-medium">状态机控制流</div>
</div>
<div class="bg-white p-2 rounded border border-green-100">
<div class="text-xs text-green-700 font-medium">LLM接口封装</div>
</div>
<div class="bg-white p-2 rounded border border-green-100">
<div class="text-xs text-green-700 font-medium">会话记忆</div>
</div>
<div class="bg-white p-2 rounded border border-green-100">
<div class="text-xs text-green-700 font-medium">决策单元</div>
</div>
</div>
<div class="mt-2 text-xs text-green-600 flex items-center justify-center">
<i data-feather="zap" class="w-3 h-3 mr-1"></i>
<span>LangGraph驱动</span>
</div>
</div>
<!-- Connector Arrows -->
<div class="absolute left-1/3 -ml-4 top-1/2 transform -translate-y-1/2">
<i data-feather="arrow-right" class="w-8 h-8 text-indigo-400"></i>
</div>
<div class="absolute left-2/3 -ml-4 top-1/2 transform -translate-y-1/2">
<i data-feather="arrow-right" class="w-8 h-8 text-indigo-400"></i>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">LangFlow Architect</h3>
<p class="text-gray-400">
Visual tools for building next-gen conversational AI agents.
</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Product</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Features</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Company</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="github" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400 text-sm">
<p>© 2023 LangFlow Architect. All rights reserved.</p>
</div>
</div>
</footer>
</div>
<script>
feather.replace();
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0xf8fafc,
size: 0.8
});
</script>
</body>
</html>