{"id":75797,"date":"2024-11-21T08:30:00","date_gmt":"2024-11-20T23:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=75797"},"modified":"2024-11-20T17:19:32","modified_gmt":"2024-11-20T08:19:32","slug":"langgraph%e3%81%ae%e4%bc%9a%e8%a9%b1%e5%b1%a5%e6%ad%b4%e3%82%92sqlite%e3%81%ab%e4%bf%9d%e6%8c%81%e3%81%97%e3%82%88%e3%81%86-ai-langgraph-azure-openai-llm-python","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797","title":{"rendered":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u300c<a href=\"\/tech-blog\/75785\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046<\/a>\u300d\u3067\u306f\u3001<a href=\"https:\/\/langchain-ai.github.io\/langgraph\/\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph<\/a>\u3092\u4f7f\u3063\u3066<a href=\"https:\/\/azure.microsoft.com\/ja-jp\/products\/ai-services\/openai-service\" target=\"_blank\" rel=\"noreferrer noopener\">Azure OpenAI<\/a>\u3068\u306e\u4f1a\u8a71\u304c\u7d99\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4ef6\u540d\u306e\u901a\u308a\u3001\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u30a2\u30d7\u30ea\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3059\u3079\u3066\u5fd8\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u672c\u7a3f\u3067\u306f\u3001\u4f1a\u8a71\u5c65\u6b74\u3092 <a href=\"https:\/\/www.sqlite.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQLite<\/a> \u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u30a2\u30d7\u30ea\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u4f1a\u8a71\u3092\u518d\u958b\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u5c65\u6b74\u3092\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u3055\u3089\u3044: \u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3059\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8<\/h2>\n\n\n\n<p><a href=\"\/tech-blog\/75785\" target=\"_blank\" rel=\"noreferrer noopener\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u4f5c\u6210\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import BaseMessage\nfrom langchain_openai import AzureChatOpenAI\nfrom langgraph.checkpoint.memory import MemorySaver\nfrom yaspin import yaspin\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\n# os.getenv(\"AZURE_OPENAI_API_KEY\")\n# os.getenv(\"AZURE_OPENAI_ENDPOINT\")\nllm = AzureChatOpenAI(\n         azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n         api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n         temperature = 0.95,\n         max_tokens = 1024,\n      )\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    with yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n        res = llm.invoke(state[\"messages\"])\n        spinner.ok(\"&#x2705; \")\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\nmemory = MemorySaver()\ngraph = graph_builder.compile(checkpointer=memory)\n\ndef stream_graph_updates(user_input: str):\n    events = graph.stream(\n        {\"messages\": [(\"user\", user_input)]},\n        {\"configurable\": {\"thread_id\": \"1\"}},\n        stream_mode=\"values\"\n    )\n    for event in events:\n        print(event[\"messages\"][-1].content)\n\nwhile True:\n    try:\n        user_input = input(\"User: \")\n        if user_input.lower() in [\"quit\", \"exit\", \"q\"]:\n            print(\"Goodbye!\")\n            break\n        stream_graph_updates(user_input)\n    except Exception as e:\n        print(f\"error: {e}\")\n        break<\/pre>\n\n\n\n<p>\u6ce8\u76ee\u70b9\u306f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from langgraph.checkpoint.memory import MemorySaver<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">memory = MemorySaver()\ngraph = graph_builder.compile(checkpointer=memory)<\/pre>\n\n\n\n<p>\u3067\u3059\u3002LangGraph\u306e<a href=\"https:\/\/langchain-ai.github.io\/langgraph\/concepts\/persistence\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u6c38\u7d9a\u5316<\/a>\u6a5f\u80fd\u306e\u4e00\u3064\u3067\u3042\u308b<a href=\"https:\/\/langchain-ai.github.io\/langgraph\/reference\/checkpoints\/#langgraph.checkpoint.memory.MemorySaver\" target=\"_blank\" rel=\"noreferrer noopener\">MemorySaver<\/a>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u540d\u306e\u901a\u308a\u3001\u72b6\u614b\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u3092\u518d\u8d77\u52d5\u3059\u308b\u3068\u3059\u3079\u3066\u5fd8\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3059\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8<\/h2>\n\n\n\n<p><a href=\"https:\/\/langchain-ai.github.io\/langgraph\/concepts\/persistence\/#checkpointer-libraries\" target=\"_blank\" rel=\"noreferrer noopener\">Checkpointer libraries<\/a>\u3092\u898b\u308b\u3068\u3001MemorySaver\u4ee5\u5916\u306b\u3082\u6c38\u7d9a\u5316\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u5b9f\u9a13\u306a\u306e\u3067\u3001<a href=\"https:\/\/langchain-ai.github.io\/langgraph\/reference\/checkpoints\/#langgraph.checkpoint.sqlite.SqliteSaver\" target=\"_blank\" rel=\"noreferrer noopener\">SqliteSaver<\/a>\u3092\u5229\u7528\u3057\u3066<a href=\"https:\/\/www.sqlite.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">SQLite<\/a> \u306b\u4fdd\u5b58\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u5909\u66f4\u7b87\u6240\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import sqlite3\nfrom langgraph.checkpoint.sqlite import SqliteSaver<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conn = sqlite3.connect(\"checkpoints.sqlite\", check_same_thread=False)\nmemory = SqliteSaver(conn)<\/pre>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u3067 <code>checkpoints.sqlite<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5dee\u5206\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002\u307b\u307cSaver\u306e\u5207\u308a\u66ff\u3048\u3060\u3051\u3067\u6e08\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--- 23_chatbot_simple.py    2024-11-08 18:25:42.232364204 +0900\n+++ 24_chatbot_sqlite.py    2024-11-13 14:26:35.631557459 +0900\n@@ -6,7 +6,8 @@\n from langgraph.graph.message import add_messages\n from langchain_core.messages import BaseMessage\n from langchain_openai import AzureChatOpenAI\n-from langgraph.checkpoint.memory import MemorySaver\n+import sqlite3\n+from langgraph.checkpoint.sqlite import SqliteSaver\n from yaspin import yaspin\n\n import os\n@@ -36,7 +37,8 @@\n graph_builder.set_entry_point(\"chatbot\")\n graph_builder.set_finish_point(\"chatbot\")\n\n-memory = MemorySaver()\n+conn = sqlite3.connect(\"checkpoints.sqlite\", check_same_thread=False)\n+memory = SqliteSaver(conn)\n graph = graph_builder.compile(checkpointer=memory)\n\n def stream_graph_updates(user_input: str):<\/pre>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u5168\u4f53\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import BaseMessage\nfrom langchain_openai import AzureChatOpenAI\nimport sqlite3\nfrom langgraph.checkpoint.sqlite import SqliteSaver\nfrom yaspin import yaspin\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\n# os.getenv(\"AZURE_OPENAI_API_KEY\")\n# os.getenv(\"AZURE_OPENAI_ENDPOINT\")\nllm = AzureChatOpenAI(\n         azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n         api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n         temperature = 0.95,\n         max_tokens = 1024,\n      )\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    with yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n        res = llm.invoke(state[\"messages\"])\n        spinner.ok(\"&#x2705; \")\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\nconn = sqlite3.connect(\"checkpoints.sqlite\", check_same_thread=False)\nmemory = SqliteSaver(conn)\ngraph = graph_builder.compile(checkpointer=memory)\n\ndef stream_graph_updates(user_input: str):\n    events = graph.stream(\n        {\"messages\": [(\"user\", user_input)]},\n        {\"configurable\": {\"thread_id\": \"1\"}},\n        stream_mode=\"values\"\n    )\n    for event in events:\n        print(event[\"messages\"][-1].content)\n\nwhile True:\n    try:\n        user_input = input(\"User: \")\n        if user_input.lower() in [\"quit\", \"exit\", \"q\"]:\n            print(\"Goodbye!\")\n            break\n        stream_graph_updates(user_input)\n    except Exception as e:\n        print(f\"error: {e}\")\n        break<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">User: \u79c1\u306f\u30dc\u30d6\u3067\u3059\u3002\n\u79c1\u306f\u30dc\u30d6\u3067\u3059\u3002\n&#x2705;  Processing\n\u3053\u3093\u306b\u3061\u306f\u30dc\u30d6\u3055\u3093\u3001\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\uff01\u4f55\u304b\u304a\u624b\u4f1d\u3044\u3067\u304d\u308b\u3053\u3068\u304c\u3042\u308c\u3070\u3001\u9060\u616e\u306a\u304f\u805e\u3044\u3066\u304f\u3060\u3055\u3044\u306d\u3002\nUser: \u79c1\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3067\u3001\u597d\u304d\u306a\u8a00\u8a9e\u306fPython\u3067\u3059\u3002\n\u79c1\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3067\u3001\u597d\u304d\u306a\u8a00\u8a9e\u306fPython\u3067\u3059\u3002\n&#x2705;  Processing\n\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u306d\u3001\u30dc\u30d6\u3055\u3093\u3002Python\u306f\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308a\u3001\u591a\u7528\u9014\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u30c7\u30fc\u30bf\u5206\u6790\u3001\u6a5f\u68b0\u5b66\u7fd2\u3001\u30a6\u30a7\u30d6\u958b\u767a\u3001\u81ea\u52d5\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3069\u3001\u591a\u304f\u306e\u9818\u57df\u3067\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002Python\u306b\u95a2\u3059\u308b\u8cea\u554f\u3084\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3059\u308b\u76f8\u8ac7\u304c\u3042\u308c\u3070\u3001\u559c\u3093\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002\u4f55\u304b\u7279\u5b9a\u306e\u30c8\u30d4\u30c3\u30af\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\nUser: quit\nGoodbye!<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u540d\u524d\u3084\u8077\u696d\u3092\u899a\u3048\u3055\u305b\u3066\u3001\u4e00\u65e6\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">User: \u79c1\u306e\u540d\u524d\u3001\u8077\u696d\u3001\u597d\u304d\u306a\u8a00\u8a9e\u3092\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\u79c1\u306e\u540d\u524d\u3001\u8077\u696d\u3001\u597d\u304d\u306a\u8a00\u8a9e\u3092\u793a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n&#x2705;  Processing\n\u304a\u4f1d\u3048\u3044\u305f\u3060\u3044\u305f\u60c5\u5831\u3092\u57fa\u306b\u3001\u4ee5\u4e0b\u304c\u3042\u306a\u305f\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u306e\u6982\u8981\u3067\u3059\u3002\n\n- \u540d\u524d\uff1a\u30dc\u30d6\u3055\u3093\n- \u8077\u696d\uff1a\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\n- \u597d\u304d\u306a\u8a00\u8a9e\uff1aPython\n\n\u3053\u306e\u60c5\u5831\u306f\u3042\u306a\u305f\u304c\u76f4\u63a5\u63d0\u4f9b\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308a\u3001\u79c1\u306e\u6a5f\u80fd\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u500b\u4eba\u7684\u306a\u60c5\u5831\u3092\u4fdd\u5b58\u307e\u305f\u306f\u30a2\u30af\u30bb\u30b9\u3059\u308b\u80fd\u529b\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u308c\u4ee5\u4e0a\u306e\u8a73\u7d30\u3084\u4ed6\u306e\u500b\u4eba\u60c5\u5831\u306f\u628a\u63e1\u3057\u3066\u304a\u3089\u305a\u3001\u3054\u63d0\u4f9b\u3044\u305f\u3060\u3044\u305f\u60c5\u5831\u306e\u307f\u3092\u57fa\u306b\u5bfe\u8a71\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084Python\u306b\u95a2\u3057\u3066\u8cea\u554f\u304c\u3042\u308c\u3070\u3001\u304a\u7b54\u3048\u3067\u304d\u308b\u7bc4\u56f2\u3067\u3054\u652f\u63f4\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002\nUser: quit\nGoodbye!<\/pre>\n\n\n\n<p>\u518d\u8d77\u52d5\u3057\u3066\u3082\u60c5\u5831\u3092\u899a\u3048\u3066\u3044\u307e\u3057\u305f\uff01 <code>checkpoints.sqlite<\/code> \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u8997\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% sqlite3 checkpoints.sqlite 'SELECT * FROM checkpoints LIMIT 1;'\n1||1efa18f0-19c6-659b-bfff-9dd9f1eeadbe||msgpack|\ufffd\ufffdv\ufffdts\ufffd 2024-11-13T07:15:05.119659+00:00\ufffdid\ufffd$1efa18f0-19c6-659b-bfff-9dd9f1eeadbe\ufffdchannel_values\ufffd\ufffd__start__\ufffd\ufffdmessages\ufffd\ufffd\ufffduser\ufffd\u79c1\u306f\u30dc\u30d6\u3067\u3059\u3002\ufffdchannel_versions\ufffd\ufffd__start__\ufffd300000000000000000000000000000001.0.9338097565621728\ufffdversions_seen\ufffd\ufffd__input__\ufffd\ufffdpending_sends\ufffd|{\"source\": \"input\", \"writes\": {\"__start__\": {\"messages\": [[\"user\", \"\u79c1\u306f\u30dc\u30d6\u3067\u3059\u3002\"]]}}, \"step\": -1, \"parents\": {}}<\/pre>\n\n\n\n<p>1\u4ef6\u76ee\u306b\u6700\u521d\u306e\u81ea\u5df1\u7d39\u4ecb\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SQLite\u306b\u4fdd\u6301\u3057\u305f\u4f1a\u8a71\u5c65\u6b74\u3092\u9078\u629e\u3067\u304d\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8<\/h2>\n\n\n\n<p>\u5148\u306e\u5b9f\u88c5\u3067\u306f <code>checkpoints.sqlite<\/code> \u30d5\u30a1\u30a4\u30eb\u306b\u3059\u3079\u3066\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u4fdd\u5b58\u3057\u3066\u304a\u308a\u3001\u3055\u3089\u306b\u4f1a\u8a71\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u306e <code>thread_id<\/code> \u3082 <code>1<\/code> \u306b\u6c7a\u3081\u6253\u3061\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u8a18\u61b6\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u8a71\u984c\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067 <code>thread_id<\/code> \u306b <a href=\"https:\/\/docs.python.org\/ja\/3\/library\/uuid.html\" target=\"_blank\" rel=\"noreferrer noopener\">UUID<\/a> \u3092\u5272\u308a\u632f\u3063\u3066\u4f1a\u8a71\u5c65\u6b74\u3092\u5206\u5272\u30fb\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u30b3\u30fc\u30c9\u5168\u4f53\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph, START, END\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import BaseMessage, AIMessage\nfrom langchain_openai import AzureChatOpenAI\nimport sqlite3\nfrom langgraph.checkpoint.sqlite import SqliteSaver\nfrom yaspin import yaspin\n\nimport uuid\nimport re\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\n# os.getenv(\"AZURE_OPENAI_API_KEY\")\n# os.getenv(\"AZURE_OPENAI_ENDPOINT\")\nllm = AzureChatOpenAI(\n         azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n         api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n         temperature = 0.95,\n         max_tokens = 1024,\n      )\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    with yaspin(text=\"Processing\", color=\"yellow\") as spinner:\n        res = llm.invoke(state[\"messages\"])\n        spinner.ok(\"&#x2705; \")\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\nconn = sqlite3.connect(\"checkpoints.sqlite\", check_same_thread=False)\nmemory = SqliteSaver(conn)\ngraph = graph_builder.compile(checkpointer=memory)\n\nthread_id = str(uuid.uuid4())\nUUID_RE = re.compile(r'^[\\da-f]{8}-([\\da-f]{4}-){3}[\\da-f]{12}$', re.IGNORECASE)\n\ndef stream_graph_updates(user_input: str, thread_id: str):\n    events = graph.stream(\n        {\"messages\": [(\"user\", user_input)]},\n        {\"configurable\": {\"thread_id\": thread_id}},\n        stream_mode=\"values\"\n    )\n    for event in events:\n         message = event[\"messages\"][-1]\n         if type(message) == AIMessage:\n              print(message.content)\n\nwhile True:\n    try:\n        print(\"\\nThread ID: \" + thread_id)\n        user_input = input(\"User: \")\n        if user_input.lower() in [\"quit\", \"exit\", \"q\"]:\n            print(\"Goodbye!\")\n            break\n        elif bool(UUID_RE.match(user_input)):\n            thread_id = user_input\n        else:\n            stream_graph_updates(user_input, thread_id)\n    except Exception as e:\n        print(f\"error: {e}\")\n        break<\/pre>\n\n\n\n<p>\u8d77\u52d5\u6642\u306b<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">thread_id = str(uuid.uuid4())<\/pre>\n\n\n\n<p>\u306b\u3066 <code>thread_id<\/code> \u306b\u751f\u6210\u3057\u305f UUID \u3092\u5272\u308a\u632f\u308a\u307e\u3059\u3002\u73fe\u5728\u306e <code>thread_id<\/code> \u306f<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">print(\"\\nThread ID: \" + thread_id)\nuser_input = input(\"User: \")<\/pre>\n\n\n\n<p>\u3067\u30e6\u30fc\u30b6\u306e\u6a19\u6e96\u5165\u529b\u5f85\u3061\u306e\u524d\u306b\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">UUID_RE = re.compile(r'^[\\da-f]{8}-([\\da-f]{4}-){3}[\\da-f]{12}$', re.IGNORECASE)<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">elif bool(UUID_RE.match(user_input)):\n    thread_id = user_input\nelse:\n    stream_graph_updates(user_input, thread_id)<\/pre>\n\n\n\n<p>\u30e6\u30fc\u30b6\u306e\u5165\u529b\u304c UUID \u5f62\u5f0f\u3067\u3042\u308c\u3070\u73fe\u5728\u306e <code>thread_id<\/code> \u3092\u6307\u5b9a\u3059\u308b\u5f62\u3068\u3057\u3001\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u751f\u6210AI\u3078\u306e\u5165\u529b\u3068\u3057\u3066\u53d6\u308a\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">events = graph.stream(\n     {\"messages\": [(\"user\", user_input)]},\n     {\"configurable\": {\"thread_id\": thread_id}},\n     stream_mode=\"values\"\n)<\/pre>\n\n\n\n<p>\u6c7a\u3081\u6253\u3061\u3057\u3066\u3044\u305f <code>thread_id<\/code> \u3092\u5909\u6570\u3067\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6ce8\u76ee\u3059\u3079\u304d\u5909\u66f4\u70b9\u306f\u3053\u308c\u304f\u3089\u3044\u3067\u3059\u3002\u4ed6\u306e\u5dee\u5206\u306f\u3055\u3055\u3044\u306a\u3082\u306e\u306a\u306e\u3067 <code>diff<\/code> \u306a\u3069\u3067\u6bd4\u3079\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001\u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser:<\/pre>\n\n\n\n<p>\u73fe\u5728\u306e <code>thread_id<\/code> \u306f <code>88c85fc9-8dae-4d7e-8dad-a26a2049d5bf<\/code> \u3067\u3059\u3002\u3053\u308c\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u3001\u4f1a\u8a71\u3092\u7d9a\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: \u79c1\u306e\u540d\u524d\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3067\u3059\u3002\n&#x2705;  Processing\n\u3053\u3093\u306b\u3061\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3055\u3093\u3001\u3069\u306e\u3088\u3046\u306b\u304a\u624b\u4f1d\u3044\u3067\u304d\u307e\u3059\u304b\uff1f\u4f55\u304b\u8cea\u554f\u304c\u3042\u308a\u307e\u3059\u304b\uff1f\n\nThread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: quit\nGoodbye!<\/pre>\n\n\n\n<p>\u3072\u3068\u307e\u305a\u540d\u524d\u3092\u6559\u3048\u3066\u4e00\u65e6\u7d42\u4e86\u3057\u307e\u3057\u305f\u3002\u518d\u5ea6\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser:<\/pre>\n\n\n\n<p>\u65b0\u3057\u3044 <code>thread_id<\/code> \u3067\u4f1a\u8a71\u304c\u59cb\u307e\u3063\u305f\u306e\u3067\u3001\u5148\u306e\u4f1a\u8a71\u306e <code>thread_id<\/code> \u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\n\nThread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser:<\/pre>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u540d\u524d\u3092\u805e\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: \u79c1\u306e\u540d\u524d\u306f\u4f55\u3067\u3059\u304b\uff1f\n&#x2705;  Processing\n\u3042\u306a\u305f\u306e\u540d\u524d\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3067\u3059\u3002\n\nThread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser:<\/pre>\n\n\n\n<p>\u5148\u7a0b\u306e\u540d\u524d\u3092\u7b54\u3048\u3066\u304f\u308c\u307e\u3057\u305f\uff01 \u3053\u3053\u3067\u518d\u8d77\u52d5\u6642\u306e <code>thread_id<\/code> \u306b\u5207\u308a\u66ff\u3048\u3066\u540d\u524d\u3092\u805e\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: 21141bf7-8373-45ba-9250-e2cf71c8c566\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: \u79c1\u306e\u540d\u524d\u306f\u4f55\u3067\u3059\u304b\uff1f\n&#x2705;  Processing\n\u79c1\u306f\u3042\u306a\u305f\u304c\u4ee5\u524d\u306b\u63d0\u4f9b\u3057\u305f\u60c5\u5831\u304b\u3089\u3042\u306a\u305f\u306e\u540d\u524d\u3092\u77e5\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3057\u3001\u500b\u4eba\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u305f\u308a\u30a2\u30af\u30bb\u30b9\u3059\u308b\u80fd\u529b\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u79c1\u306f\u3042\u306a\u305f\u306e\u540d\u524d\u3092\u63a8\u6e2c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u3042\u306a\u305f\u304c\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u533f\u540d\u6027\u3092\u4fdd\u3061\u305f\u3044\u5834\u5408\u3001\u3042\u306a\u305f\u306e\u540d\u524d\u3092\u5171\u6709\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5b89\u5168\u3068\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u306f\u3068\u3066\u3082\u91cd\u8981\u3067\u3059\u3002\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: <\/pre>\n\n\n\n<p>\u60f3\u5b9a\u901a\u308a\u3001\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3088\u3046\u3067\u3059\u3002\u6539\u3081\u3066\u81ea\u5df1\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: \u79c1\u306f\u30de\u30ed\u30ea\u30fc\u3067\u3059\u3002\u90aa\u60aa\u306a\u653b\u6483\u8005\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002\n&#x2705;  Processing\n\u3053\u3093\u306b\u3061\u306f\u30de\u30ed\u30ea\u30fc\u3055\u3093\u3002\u3042\u306a\u305f\u306f\u81ea\u5206\u3092\u90aa\u60aa\u306a\u653b\u6483\u8005\u3068\u8868\u73fe\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u5b89\u5168\u306a\u5bfe\u8a71\u3092\u76ee\u6307\u3057\u3066\u3044\u307e\u3059\u3002\u4f55\u304b\u5177\u4f53\u7684\u306a\u8cea\u554f\u3084\u30c8\u30d4\u30c3\u30af\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3044\u305f\u3044\u3053\u3068\u304c\u3042\u308c\u3070\u3001\u3069\u3046\u305e\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002\u30b5\u30dd\u30fc\u30c8\u3084\u60c5\u5831\u63d0\u4f9b\u306b\u52aa\u3081\u307e\u3059\u3002\u3082\u3057\u5fc3\u914d\u4e8b\u304c\u3042\u308b\u306a\u3089\u3001\u305d\u306e\u554f\u984c\u306b\u3064\u3044\u3066\u8a71\u3057\u5408\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3088\u3002\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: \u79c1\u306e\u540d\u524d\u306f\u4f55\u3067\u3059\u304b\uff1f\n&#x2705;  Processing\n\u4ee5\u524d\u306b\u3042\u306a\u305f\u304c\u81ea\u5df1\u7d39\u4ecb\u3092\u3057\u3066\u304f\u3060\u3055\u3063\u305f\u5185\u5bb9\u306b\u57fa\u3065\u304f\u3068\u3001\u3042\u306a\u305f\u306f\u300c\u30de\u30ed\u30ea\u30fc\u300d\u3068\u304a\u3063\u3057\u3083\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u3042\u306a\u305f\u304c\u63d0\u4f9b\u3057\u305f\u60c5\u5831\u3067\u3042\u308a\u3001\u79c1\u306f\u305d\u308c\u3092\u8a18\u61b6\u3084\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u6bce\u56de\u306e\u3084\u308a\u53d6\u308a\u306f\u72ec\u7acb\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u30de\u30ed\u30ea\u30fc\u3068\u3044\u3046\u540d\u524d\u304c\u6b63\u3057\u304f\u306a\u3044\u5834\u5408\u3084\u3001\u3082\u3046\u4f55\u304b\u4ed6\u306e\u3053\u3068\u306b\u3064\u3044\u3066\u8cea\u554f\u304c\u3042\u308c\u3070\u3001\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: <\/pre>\n\n\n\n<p>\u5c11\u3057\u6ce8\u610f\u3055\u308c\u307e\u3057\u305f\u304c\u899a\u3048\u305f\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u307e\u305f <code>thread_id<\/code> \u3092\u5207\u308a\u66ff\u3048\u3066\u805e\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\n\nThread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: \u79c1\u306e\u540d\u524d\u306f\u4f55\u3068\u3044\u3063\u3066\u3001\u4f55\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u304b\uff1f\n&#x2705;  Processing\n\u3042\u306a\u305f\u306f\u300c\u79c1\u306e\u540d\u524d\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3067\u3059\u300d\u3068\u8a00\u3063\u305f\u306e\u3067\u3001\u3042\u306a\u305f\u306e\u540d\u524d\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3067\u3059\u304b\u3089\u3001\u3042\u306a\u305f\u306f\u30c1\u30e3\u30fc\u30ea\u30fc\u3068\u547c\u3070\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002\n\nThread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: <\/pre>\n\n\n\n<p>\u304d\u3061\u3093\u3068\u5148\u7a0b\u306e\u4f1a\u8a71\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u307e\u305f <code>thread_id<\/code> \u3092\u5207\u308a\u66ff\u3048\u3066\u805e\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Thread ID: 88c85fc9-8dae-4d7e-8dad-a26a2049d5bf\nUser: 21141bf7-8373-45ba-9250-e2cf71c8c566\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: \u79c1\u306e\u540d\u524d\u306f\u4f55\u3068\u3044\u3063\u3066\u3001\u4f55\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u304b\uff1f\n&#x2705;  Processing\n\u904e\u53bb\u306e\u3084\u308a\u53d6\u308a\u3067\u3001\u300c\u79c1\u306f\u30de\u30ed\u30ea\u30fc\u3067\u3059\u300d\u3068\u3054\u81ea\u8eab\u3092\u540d\u4e57\u3089\u308c\u307e\u3057\u305f\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u3053\u3067\u306e\u4f1a\u8a71\u3067\u306f\u3042\u306a\u305f\u3092\u30de\u30ed\u30ea\u30fc\u3055\u3093\u3068\u547c\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u3042\u306a\u305f\u304c\u63d0\u4f9b\u3055\u308c\u305f\u60c5\u5831\u306b\u57fa\u3065\u3044\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u3053\u308c\u304c\u6b63\u3057\u304f\u306a\u3044\u3001\u307e\u305f\u306f\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002\n\nThread ID: 21141bf7-8373-45ba-9250-e2cf71c8c566\nUser: <\/pre>\n\n\n\n<p>\u30de\u30ed\u30ea\u30fc\u3068\u3044\u3046\u540d\u524d\u306f\u899a\u3048\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u300c\u90aa\u60aa\u306a\u653b\u6483\u8005\u300d\u3068\u3044\u3046\u547c\u3073\u540d\u306f\u5148\u7a0b\u6ce8\u610f\u3055\u308c\u305f\u305b\u3044\u304b\u7121\u8996\u3055\u308c\u307e\u3057\u305f\u3002\u3082\u3057\u304b\u3059\u308b\u3068Azure OpenAI\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30d5\u30a3\u30eb\u30bf\u306b\u3072\u3063\u304b\u304b\u3063\u305f\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e00\u65e6\u3053\u3053\u3067\u306f\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u672c\u7a3f\u3067\u306fLangGraph\u306e\u72b6\u614b\u6c38\u7d9a\u5316\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u751f\u6210AI\u3068\u306e\u3084\u308a\u3068\u308a\u306e\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3001\u30a2\u30d7\u30ea\u3092\u4e00\u65e6\u7d42\u4e86\u3057\u3066\u3082\u4f1a\u8a71\u304c\u7d99\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3055\u3089\u306b\u3001\u4f1a\u8a71\u3054\u3068\u306eID\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u8a71\u984c\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u4eca\u56de\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u4e00\u4eba\u304c\u76f4\u5217\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u305f\u3081SQLite\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u8907\u6570\u304c\u4e26\u5217\u3067\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u4e0d\u5b89\u304c\u6b8b\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u540c\u4e00ID\u3067\u3082\u4f1a\u8a71\u304c\u3064\u306a\u304c\u3089\u306a\u3044\u5834\u5408\u304c\u307e\u308c\u306b\u767a\u751f\u3057\u305f\u308a\u3068\u3001\u4f55\u304b\u4e0d\u8db3\u304c\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u5f15\u304d\u7d9a\u304d\u3001\u5b9f\u7528\u7684\u306a\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306b\u5411\u3051\u3066\u6bb5\u968e\u7684\u306b\u5f37\u5316\u30fb\u6539\u826f\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure OpenAI\u3068\u306e\u4f1a\u8a71\u304c\u7d99\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u4ef6\u540d\u306e\u901a\u308a\u3001\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u30a2\u30d7 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":75894,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,58,817,31,1004,323],"tags":[],"class_list":["post-75797","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure","category-chatgpt-ai","category-higuchi","category-llm","category-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-20T23:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"782\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python\",\"datePublished\":\"2024-11-20T23:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\"},\"wordCount\":35,\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png\",\"articleSection\":[\"AI\",\"Azure\",\"ChatGPT\uff06AI\",\"d-higuchi\",\"LLM\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\",\"name\":\"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png\",\"datePublished\":\"2024-11-20T23:30:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure\",\"breadcrumb\":{\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png\",\"width\":1280,\"height\":782},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatGPT\uff06AI\",\"item\":\"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#website\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"contentUrl\":\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797","og_locale":"ja_JP","og_type":"article","og_title":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure","og_url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2024-11-20T23:30:00+00:00","og_image":[{"width":1280,"height":782,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python","datePublished":"2024-11-20T23:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797"},"wordCount":35,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png","articleSection":["AI","Azure","ChatGPT\uff06AI","d-higuchi","LLM","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797","url":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797","name":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png","datePublished":"2024-11-20T23:30:00+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b \u524d\u56de\u306e\u8a18\u4e8b\u300cLangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092\u30e1\u30e2\u30ea\u4fdd\u6301\u3057\u3088\u3046\u300d\u3067\u306f\u3001LangGraph\u3092\u4f7f\u3063\u3066Azure","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/11\/langgraph-checkpoint-sqlite_eyecatch.png","width":1280,"height":782},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai\/75797#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"ChatGPT\uff06AI","item":"https:\/\/www.creationline.com\/tech-blog\/chatgpt-ai"},{"@type":"ListItem","position":3,"name":"LangGraph\u306e\u4f1a\u8a71\u5c65\u6b74\u3092SQLite\u306b\u4fdd\u6301\u3057\u3088\u3046 #ai #langgraph #azure #openai #llm #python"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/08\/d-higuchi-wp-icon-230x230.png","caption":"Daisuke Higuchi"},"description":"Chef\u30fbDocker\u30fbMirantis\u88fd\u54c1\u306a\u3069\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=75797"}],"version-history":[{"count":3,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75797\/revisions"}],"predecessor-version":[{"id":75801,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/75797\/revisions\/75801"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/75894"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=75797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=75797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=75797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}