{"id":10561,"date":"2026-06-12T21:18:48","date_gmt":"2026-06-12T12:18:48","guid":{"rendered":"https:\/\/techmania.jp\/blog\/?p=10561"},"modified":"2026-08-07T17:21:54","modified_gmt":"2026-08-07T08:21:54","slug":"langchain","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/langchain\/","title":{"rendered":"LangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT\u3084Gemini\u3092\u306f\u3058\u3081\u3068\u3059\u308bLLM\uff08\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff09\u306e\u666e\u53ca\u306b\u3088\u308a\u3001AI\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u304c\u6025\u901f\u306b\u9032\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3057\u304b\u3057\u3001LLM\u306eAPI\u3092\u76f4\u63a5\u4f7f\u3063\u3066\u958b\u767a\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001<strong>\u300c\u30d7\u30ed\u30f3\u30d7\u30c8\u7ba1\u7406\u300d\u300c\u4f1a\u8a71\u5c65\u6b74\u306e\u4fdd\u6301\u300d\u300c\u5916\u90e8\u30c4\u30fc\u30eb\u30fb\u72ec\u81ea\u30c7\u30fc\u30bf\u9023\u643a\u300d<\/strong>\u3068\u3044\u3063\u305f\u51e6\u7406\u3092\u500b\u5225\u3067\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001\u958b\u767a\u304c\u8907\u96d1\u5316\u3057\u304c\u3061\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8ab2\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306e\u304c\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eLLM\u958b\u767a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<strong>\u300c<a href=\"https:\/\/github.com\/langchain-ai\/langchain\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">LangChain<\/a>\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u300d<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u3092\u4f7f\u3048\u3070\u3001\u8907\u96d1\u306a\u51e6\u7406\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\uff08\u90e8\u54c1\uff09\u3068\u3057\u3066\u7d44\u307f\u5408\u308f\u305b\u308b\u3060\u3051\u3067\u3001\u52b9\u7387\u7684\u306b\u9ad8\u5ea6\u306aLLM\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u6982\u8981\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Prompt, LCEL, Agent\u7b49\uff09\u304b\u3089\u3001Python\u3067\u306e\u5177\u4f53\u7684\u306a\u4f7f\u3044\u65b9\u307e\u3067\u521d\u5fc3\u8005\u5411\u3051\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">LangChain\u3068\u306f<\/h2>\n\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">LLM\uff08\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff09\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306f\u3001LLM\uff08\u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb\uff09\u3092\u4e2d\u5fc3\u3068\u3057\u305fAI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u3001\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u3067\u306f\u3001\u30e2\u30c7\u30eb\u3078\u306e\u6307\u793a\u3068\u306a\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u7ba1\u7406\u3001\u30e2\u30c7\u30eb\u306e\u547c\u3073\u51fa\u3057\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u3068\u306e\u9023\u643a\u3001\u5916\u90e8\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u3068\u3044\u3063\u305f\u8981\u7d20\u3092\u6271\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001LangChain\u306f\u3053\u308c\u3089\u3092\u6271\u3044\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3092\u307e\u3068\u3081\u3066\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bfe\u5fdc\u8a00\u8a9e\u306f<a href=\"https:\/\/techmania.jp\/blog\/python0001\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Python<\/a>\u3068<a href=\"https:\/\/techmania.jp\/blog\/javascript0004\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">TypeScript<\/a>\uff0f<a href=\"https:\/\/techmania.jp\/blog\/javascript0001\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">JavaScript<\/a>\u306e2\u7a2e\u985e\u3067\u3059\u3002<br>\u3069\u3061\u3089\u3092\u9078\u3093\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u6a19\u6e96\u7684\u306aPython\u3092\u4e2d\u5fc3\u306b\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u306a\u304a\u3001\u5229\u7528\u3067\u304d\u308b\u6a5f\u80fd\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5145\u5b9f\u5ea6\u306f\u8a00\u8a9e\u306b\u3088\u3063\u3066\u591a\u5c11\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u672c\u683c\u7684\u306b\u958b\u767a\u3092\u9032\u3081\u308b\u6bb5\u968e\u306b\u5165\u3063\u305f\u3089\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u5bfe\u5fdc\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3068\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\">\u306a\u305cLangChain\u304c\u5fc5\u8981\u306a\u306e\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306fChatGPT\u306a\u3069\u306e\u65e2\u5b58\u306e\u30c4\u30fc\u30eb\u3067\u306f\u5bfe\u5fdc\u3057\u304d\u308c\u306a\u3044\u6642\u3084\u3001OpenAI\u306a\u3069\u306eAPI\u3092\u76f4\u63a5\u5229\u7528\u3057\u3066\u958b\u767a\u3059\u308b\u969b\u306b\u5fc5\u8981\u3068\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010ChatGPT\u3068\u306e\u9055\u3044\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT\u306e\u3088\u3046\u306aWeb\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u8cea\u554f\u3078\u306e\u56de\u7b54\u3084\u6587\u7ae0\u4f5c\u6210\u3068\u3044\u3063\u305f\u7528\u9014\u3067\u3042\u308c\u3070\u3001\u305d\u308c\u3060\u3051\u3067\u5341\u5206\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001AI\u3092\u81ea\u793e\u306e\u30b5\u30fc\u30d3\u30b9\u3084\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u307f\u305f\u3044\u5834\u5408\u306b\u306f\u3001Web\u7248\u306eChatGPT\u3060\u3051\u3067\u306f\u5bfe\u5fdc\u3057\u304d\u308c\u306a\u3044\u5236\u7d04\u304c\u3044\u304f\u3064\u304b\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<table style=\"border-collapse: collapse; width: 100%; font-family: 'Hiragino Sans', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.6; border: 1px solid #c9ced6;\">\n  <thead>\n    <tr>\n      <th style=\"padding: 8px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: center; font-weight: bold;\">\u6bd4\u8f03\u30dd\u30a4\u30f3\u30c8<\/th>\n      <th style=\"padding: 8px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: center; font-weight: bold;\">ChatGPT<\/th>\n      <th style=\"padding: 8px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: center; font-weight: bold;\">LangChain\u3067\u958b\u767a\u3059\u308b\u5834\u5408<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u2460 \u30e2\u30c7\u30eb\u306e\u9078\u629e\u81ea\u7531\u5ea6<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">OpenAI\u306e\u30e2\u30c7\u30eb\u3057\u304b\u4f7f\u3048\u306a\u3044<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">ChatGPT\u306b\u52a0\u3048\u3066\u3001Gemini\u3084Claude\u306a\u3069\u8907\u6570\u306e\u30e2\u30c7\u30eb\u3092\u81ea\u7531\u306b\u4f7f\u3044\u5206\u3051\u3089\u308c\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u2461 \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\uff08\u30a4\u30f3\u30d5\u30e9\uff09<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">OpenAI\u306e\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u4e0a\u3067\u52d5\u304f<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u81ea\u793e\u30b5\u30fc\u30d0\u30fc\u306a\u3069\u3001\u793e\u5185\u5c02\u7528\u306e\u74b0\u5883\u3067\u52d5\u304b\u305b\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u2462 \u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9023\u643a<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">ChatGPT\u5358\u4f53\u3067\u5b8c\u7d50\u3057\u3066\u3057\u307e\u3046<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u81ea\u793e\u306e\u65e2\u5b58Web\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u306e\u4e2d\u306b\u3001AI\u6a5f\u80fd\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3081\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u2463 \u81ea\u7531\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u8ffd\u52a0\u3067\u304d\u308b\u6a5f\u80fd\u306b\u9650\u308a\u304c\u3042\u308b<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u81ea\u793e\u306e\u5c31\u696d\u898f\u5247\u3092\u53c2\u7167\u3057\u3066\u56de\u7b54\u3059\u308b\u306a\u3069\u3001\u72ec\u81ea\u6a5f\u80fd\u3092\u81ea\u7531\u306b\u8ffd\u52a0\u3067\u304d\u308b<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT\u306fOpenAI\u306e\u63d0\u4f9b\u3059\u308b\u74b0\u5883\u3084\u30e2\u30c7\u30eb\u306e\u7bc4\u56f2\u5185\u3067\u52d5\u4f5c\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<br>LangChain\u306f\u65e2\u5b58\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u307f\u306a\u304c\u3089\u3001\u81ea\u793e\u72ec\u81ea\u306e\u6a5f\u80fd\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u307e\u308a\u3001ChatGPT\u306f\u500b\u4eba\u304c\u624b\u8efd\u306b\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\u3067\u3042\u308b\u306e\u306b\u5bfe\u3057\u3001LangChain\u306f\u81ea\u793e\u306e\u696d\u52d9\u3084\u30b7\u30b9\u30c6\u30e0\u306b\u5408\u308f\u305b\u3066AI\u3092\u7d44\u307f\u8fbc\u3080\u305f\u3081\u306e\u958b\u767a\u624b\u6bb5\u3067\u3059\u3002<br>\u793e\u5185\u306e\u554f\u3044\u5408\u308f\u305b\u5bfe\u5fdc\u3092\u81ea\u52d5\u5316\u3057\u305f\u3044\u3001\u81ea\u793e\u30b5\u30fc\u30d3\u30b9\u306bAI\u30c1\u30e3\u30c3\u30c8\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3068\u3044\u3063\u305f\u76ee\u7684\u304c\u3042\u308b\u5834\u5408\u306f\u3001LangChain\u306e\u3088\u3046\u306a\u958b\u767a\u306e\u9078\u629e\u80a2\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u3010API\u76f4\u63a5\u5229\u7528\u3068\u306e\u9055\u3044\u3011<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u958b\u767a\u8005\u306e\u8996\u70b9\u3067\u6bd4\u8f03\u3057\u3066\u304a\u304d\u305f\u3044\u306e\u304c\u3001OpenAI\u306a\u3069\u306eAPI\u3092\u76f4\u63a5\u5229\u7528\u3057\u3066\u958b\u767a\u3059\u308b\u65b9\u6cd5\u3068\u306e\u9055\u3044\u3067\u3059\u3002<br>\u3053\u3053\u3067\u3044\u3046\u300cAPI\u76f4\u63a5\u5229\u7528\u300d\u3068\u306f\u3001LangChain\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3092\u4f7f\u308f\u305a\u3001OpenAI\u306a\u3069\u304c\u63d0\u4f9b\u3059\u308bAPI\u306b\u5bfe\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u76f4\u63a5\u3084\u308a\u53d6\u308a\u3092\u884c\u3046\u958b\u767a\u65b9\u6cd5\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u308c\u305e\u308c\u306e\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u3092\u6574\u7406\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<table style=\"border-collapse: collapse; width: 100%; font-family: 'Hiragino Sans', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.7; border: 1px solid #c9ced6;\">\n  <thead>\n    <tr>\n      <th style=\"padding: 10px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: left; font-weight: bold;\">\u65b9\u5f0f<\/th>\n      <th style=\"padding: 10px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: left; font-weight: bold;\">\u30e1\u30ea\u30c3\u30c8<\/th>\n      <th style=\"padding: 10px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: left; font-weight: bold;\">\u30c7\u30e1\u30ea\u30c3\u30c8<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">API\u76f4\u63a5\u547c\u3073\u51fa\u3057<\/td>\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top;\">\n        <ul style=\"margin: 0; padding-left: 1.2em;\">\n          <li>\u30b7\u30f3\u30d7\u30eb<\/li>\n          <li>\u8efd\u91cf<\/li>\n          <li>\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u3044<\/li>\n          <li>\u30c7\u30d0\u30c3\u30b0\u3057\u3084\u3059\u3044<\/li>\n        <\/ul>\n      <\/td>\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top;\">\n        <ul style=\"margin: 0; padding-left: 1.2em;\">\n          <li>\u30e2\u30c7\u30eb\u5909\u66f4\u304c\u5927\u5909<\/li>\n          <li>\u30d7\u30ed\u30f3\u30d7\u30c8\u7ba1\u7406\u304c\u7169\u96d1<\/li>\n          <li>\u30c4\u30fc\u30eb\u9023\u643a\u3092\u81ea\u4f5c\u3059\u308b\u5fc5\u8981\u3042\u308a<\/li>\n        <\/ul>\n      <\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">LangChain<\/td>\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top;\">\n        <ul style=\"margin: 0; padding-left: 1.2em;\">\n          <li>\u30e2\u30c7\u30eb\u3092\u5207\u308a\u66ff\u3048\u3084\u3059\u3044<\/li>\n          <li>\u30c4\u30fc\u30eb\u9023\u643a\u3092\u5bb9\u6613\u306b\u5b9f\u884c\u53ef\u80fd<\/li>\n          <li>Agent\u3084RAG\u306b\u3082\u5bfe\u5fdc\u53ef\u80fd<\/li>\n        <\/ul>\n      <\/td>\n      <td style=\"padding: 10px 14px; border: 1px solid #d3dae1; color: #1a2b3c; vertical-align: top;\">\n        <ul style=\"margin: 0; padding-left: 1.2em;\">\n          <li>\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u5c11\u3057\u9ad8\u3081<\/li>\n          <li>\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u5316\u3078\u306e\u3053\u307e\u3081\u306a\u5bfe\u5fdc\u304c\u5fc5\u8981<\/li>\n        <\/ul>\n      <\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306e\u5f37\u307f\u306f\u3001\u30e2\u30c7\u30eb\u306e\u5207\u308a\u66ff\u3048\u3084\u30c4\u30fc\u30eb\u9023\u643a\u3068\u3044\u3063\u305f\u8907\u96d1\u306b\u306a\u308a\u304c\u3061\u306a\u51e6\u7406\u3092\u3001\u81ea\u4f5c\u3059\u308b\u3053\u3068\u306a\u304f\u5bb9\u6613\u306b\u884c\u3048\u308b\u70b9\u306b\u3042\u308a\u307e\u3059\u3002<br>\u300c\u307e\u305a\u306f\u52d5\u304f\u3082\u306e\u3092\u8a66\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u500b\u4eba\u5229\u7528\u3084\u5c0f\u898f\u6a21\u306a\u691c\u8a3c\u3067\u3042\u308c\u3070\u3001\u7121\u7406\u306bLangChain\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br>\u4e00\u65b9\u3067\u3001\u8907\u6570\u306eAI\u30e2\u30c7\u30eb\u3084\u5916\u90e8\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u304c\u5fc5\u8981\u306a\u3001\u672c\u683c\u7684\u306a\u958b\u767a\u3067\u306f\u52b9\u7387\u306b\u5927\u304d\u306a\u5dee\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_3\" class=\"wp-block-heading\">LangChain\u3067\u3067\u304d\u308b\u3053\u3068\u30fb\u4e3b\u8981\u6a5f\u80fd<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u3092\u4f7f\u3046\u3068\u3001LLM\u30a2\u30d7\u30ea\u958b\u767a\u3067\u5fc5\u8981\u306b\u306a\u308b\u51e6\u7406\u3092\u5c11\u306a\u3044\u624b\u9593\u3067\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u8907\u6570\u306eLLM\u3084\u30c1\u30e3\u30c3\u30c8\u30e2\u30c7\u30eb\u306e\u5207\u308a\u66ff\u3048\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5316\u3001\u5916\u90e8\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u305f\u56de\u7b54\u751f\u6210\u3001\u8907\u6570\u51e6\u7406\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u5316\u3001Agent\u306b\u3088\u308b\u30c4\u30fc\u30eb\u9023\u643a\u306a\u3069\u3092\u5b9f\u88c5\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306b\u306f\u3001<a href=\"https:\/\/docs.langchain.com\/oss\/python\/langchain\/overview\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LLM\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306e\u6a5f\u80fd<\/a>\u304c\u8907\u6570\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<table style=\"border-collapse: collapse; width: 100%; font-family: 'Hiragino Sans', 'Meiryo', sans-serif; font-size: 15px; line-height: 1.7;\">\n  <thead>\n    <tr>\n      <th style=\"padding: 12px 16px; background-color: #eef0f3; color: #1a2b3c; text-align: left; font-weight: bold; white-space: nowrap; vertical-align: top;\">\u6a5f\u80fd\u30fb\u7279\u5fb4<\/th>\n      <th style=\"padding: 12px 16px; background-color: #eef0f3; color: #1a2b3c; text-align: left; font-weight: bold; vertical-align: top;\">\u5185\u5bb9<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">\u30e2\u30c7\u30eb\u64cd\u4f5c(Model I\/O)<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">OpenAI\u3084Google\u306a\u3069\u3001\u8907\u6570\u306eLLM\u3084\u30c1\u30e3\u30c3\u30c8\u30e2\u30c7\u30eb\u3092\u5207\u308a\u66ff\u3048\u3066\u4f7f\u3044\u3084\u3059\u3044<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">\u30d7\u30ed\u30f3\u30d7\u30c8\u7ba1\u7406(Model I\/O)<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5316\u3057\u3001\u518d\u5229\u7528\u3084\u7ba1\u7406\u3092\u3057\u3084\u3059\u304f\u3059\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">Retrieval \/ RAG<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">PDF\u3084Web\u30da\u30fc\u30b8\u3001\u793e\u5185\u6587\u66f8\u306a\u3069\u306e\u5916\u90e8\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u56de\u7b54\u3092\u751f\u6210\u3057\u3084\u3059\u3044<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">Chains<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">\u8907\u6570\u306e\u51e6\u7406\u3092\u9806\u756a\u306b\u3064\u306a\u304e\u3001\u4e00\u9023\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3068\u3057\u3066\u69cb\u7bc9\u3067\u304d\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">Agents<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u691c\u7d22\u30c4\u30fc\u30eb\u3084API\u306a\u3069\u3092LLM\u81ea\u8eab\u306b\u9078\u3093\u3067\u4f7f\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">Memory<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">\u4f1a\u8a71\u5c65\u6b74\u3084\u6587\u8108\u3092\u4fdd\u6301\u3057\u3001\u7d99\u7d9a\u7684\u306a\u3084\u308a\u53d6\u308a\u306b\u6d3b\u7528\u3067\u304d\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top; white-space: nowrap;\">\u5916\u90e8\u30c4\u30fc\u30eb\u9023\u643a<\/td>\n      <td style=\"padding: 12px 16px; color: #1a2b3c; vertical-align: top;\">\u691c\u7d22\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001API\u306a\u3069\u3068\u9023\u643a\u3057\u305fAI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u3084\u3059\u3044<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u6a5f\u80fd\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3084\u6587\u66f8\u691c\u7d22\u3001\u696d\u52d9\u81ea\u52d5\u5316\u306a\u3069\u3001\u76ee\u7684\u306b\u5fdc\u3058\u305fAI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_4\" class=\"wp-block-heading\">LangChain\u3067\u3053\u3093\u306a\u30a2\u30d7\u30ea\u304c\u4f5c\u308c\u308b\uff5c\u6d3b\u7528\u4e8b\u4f8b3\u9078<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u7d39\u4ecb\u3057\u3066\u304d\u305f\u6a5f\u80fd\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u308c\u308b\u306e\u304b\u3001\u4ee3\u8868\u7684\u306a\u6d3b\u7528\u30a4\u30e1\u30fc\u30b8\u30923\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8b\u4f8b\u2460 \u65b0\u5165\u793e\u54e1\u5411\u3051\u8cea\u554f\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u81ea\u793e\u306e\u5c31\u696d\u898f\u5247\u3084\u30de\u30cb\u30e5\u30a2\u30eb\u3092AI\u306b\u8aad\u307f\u8fbc\u307e\u305b\u3066\u304a\u304d\u3001\u300c\u6709\u7d66\u4f11\u6687\u306e\u7533\u8acb\u65b9\u6cd5\u306f\uff1f\u300d\u3068\u3044\u3063\u305f\u8cea\u554f\u306b\u3001\u793e\u5185\u8cc7\u6599\u306b\u57fa\u3065\u3044\u3066\u81ea\u52d5\u3067\u7b54\u3048\u3066\u304f\u308c\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306e\u6700\u3082\u4ee3\u8868\u7684\u306a\u6d3b\u7528\u4f8b\u306f<strong>RAG\uff08\u691c\u7d22\u62e1\u5f35\u751f\u6210\uff09<\/strong>\u306e\u69cb\u7bc9\u3067\u3059\u3002\u793e\u5185\u30de\u30cb\u30e5\u30a2\u30eb\u3084\u72ec\u81eaPDF\u306a\u3069\u306e\u5916\u90e8\u30c7\u30fc\u30bf\u3092LLM\u306b\u53c2\u7167\u3055\u305b\u308b\u3053\u3068\u3067\u3001ChatGPT\u5358\u4f53\u3067\u306f\u7b54\u3048\u3089\u308c\u306a\u3044\u6700\u65b0\u60c5\u5831\u3084\u56fa\u6709\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u56de\u7b54\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8b\u4f8b\u2461 \u5c02\u9580\u696d\u754c\u7279\u5316\u578bAI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u696d\u754c\u7279\u6709\u306e\u5c02\u9580\u7528\u8a9e\u3084\u30eb\u30fc\u30eb\uff08\u533b\u7642\u3001\u6cd5\u5f8b\u3001\u4e0d\u52d5\u7523\u306a\u3069\uff09\u3092\u5b66\u7fd2\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6301\u305f\u305b\u3001\u305d\u306e\u696d\u754c\u306b\u7cbe\u901a\u3057\u305f\u76f8\u8ac7\u76f8\u624b\u3068\u3057\u3066\u4f7f\u3048\u308bAI\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4e8b\u4f8b\u2462 \u81ea\u5f8b\u578b\u696d\u52d9\u81ea\u52d5\u5316\u30ed\u30dc\u30c3\u30c8<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30ec\u30f3\u30c0\u30fc\u3084\u30e1\u30fc\u30eb\u3068\u9023\u643a\u3055\u305b\u3001\u7a7a\u304d\u6642\u9593\u3092\u81ea\u52d5\u3067\u8abf\u6574\u3057\u305f\u308a\u3001\u9032\u6357\u72b6\u6cc1\u3092\u81ea\u52d5\u3067\u3068\u308a\u307e\u3068\u3081\u3066\u5831\u544a\u3057\u3066\u304f\u308c\u308b\u696d\u52d9\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001\u81ea\u793e\u5c02\u7528\u306eAI\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u70b9\u304cChatGPT\u3068LangChain\u306e\u5927\u304d\u306a\u9055\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__1_5\" class=\"wp-block-heading\">LangChain\u3092\u4f7f\u3046\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u6ce8\u610f\u70b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306f\u3001\u8907\u96d1\u306b\u306a\u308a\u304c\u3061\u306aAI\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u304c\u3001\u3059\u3079\u3066\u306e\u30b1\u30fc\u30b9\u3067\u5fc5\u8981\u306b\u306a\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br>\u305f\u3068\u3048\u3070\u3001\u5c0f\u898f\u6a21\u306a\u51e6\u7406\u3084\u5358\u7d14\u306aAPI\u547c\u3073\u51fa\u3057\u3060\u3051\u3067\u6e08\u3080\u5834\u5408\u306f\u3001LangChain\u3092\u5c0e\u5165\u305b\u305a\u306b\u5b9f\u88c5\u3057\u305f\u307b\u3046\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u6a5f\u80fd\u304c\u591a\u3044\u5206\u3001\u3042\u308b\u7a0b\u5ea6\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308b\u307b\u304b\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u66f4\u306b\u3068\u3082\u306a\u3046\u4ed5\u69d8\u5909\u66f4\u3078\u306e\u5bfe\u5fdc\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<br>LangChain\u3092\u5c0e\u5165\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u3084\u5b9f\u88c5\u3057\u305f\u3044\u6a5f\u80fd\u3092\u8e0f\u307e\u3048\u3001API\u76f4\u63a5\u547c\u3073\u51fa\u3057\u3068\u4f7f\u3044\u5206\u3051\u308b\u8996\u70b9\u3092\u6301\u3063\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">LangChain\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n\n\n\n<h3 id=\"outline__2_1\" class=\"wp-block-heading\">Python\u7248\u3068TypeScript\u7248\u306e\u9078\u3073\u65b9\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python\u74b0\u5883\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 \u306a\u304a\u3001<a href=\"https:\/\/techmania.jp\/blog\/python-uv\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Python\u306e\u74b0\u5883\u69cb\u7bc9\u3084\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406<\/a>\u306b\u4e0d\u6163\u308c\u306a\u65b9\u306f\u3001\u4e8b\u524d\u306b\u4eee\u60f3\u74b0\u5883\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u30b9\u30e0\u30fc\u30ba\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>pip install langchain\npip install langchain-openai<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">pip<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">langchain<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">pip<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">langchain-openai<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001.env\u306b\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb\u306eAPI\u30ad\u30fc\uff08\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306e\u8a8d\u8a3c\u60c5\u5831\uff09\u3092\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>export OPENAI_API_KEY=xxxxx<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #C792EA\">export<\/span><span style=\"color: #EEFFFF\"> OPENAI_API_KEY<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #C3E88D\">xxxxx<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">TypeScript\u306e\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Bash<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>npm install langchain\nnpm install @langchain\/openai<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #FFCB6B\">npm<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">langchain<\/span><\/span>\n<span class=\"line\"><span style=\"color: #FFCB6B\">npm<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">install<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #C3E88D\">@langchain\/openai<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__2_2\" class=\"wp-block-heading\">\u516c\u5f0fGitHub\u3067\u6700\u65b0\u60c5\u5831\u3092\u30ad\u30e3\u30c3\u30c1\u30a2\u30c3\u30d7\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/langchain-ai\/langchain\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">\u516c\u5f0f\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3092\u78ba\u8a8d\u3059\u308b\u969b\u306f\u3001\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u4e2d\u5fc3\u306b\u898b\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>README<\/li>\n\n\n\n<li>examples<\/li>\n\n\n\n<li>releases<\/li>\n\n\n\n<li>migration<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u7279\u306b\u3001v1\u4ee5\u964d\u306fAgent API\u306e\u5909\u66f4\u304c\u591a\u3044\u305f\u3081\u3001<a href=\"https:\/\/docs.langchain.com\/oss\/python\/migrate\/langchain-v1\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Migration Guide<\/a>\u78ba\u8a8d\u304c\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">LangChain\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u898b\u306a\u304c\u3089\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5316\u3059\u308bPromptTemplate\u3068\u3001\u8907\u6570\u306e\u51e6\u7406\u3092\u3064\u306a\u3050LCEL\u3068\u3044\u30462\u3064\u306e\u66f8\u304d\u65b9\u3092\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__3_1\" class=\"wp-block-heading\">PromptTemplate\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001<a href=\"https:\/\/reference.langchain.com\/python\/langchain-core\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">PromptTemplate<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u7e70\u308a\u8fd4\u3057\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u30c6\u30ad\u30b9\u30c8\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>from langchain_core.prompts import ChatPromptTemplate\n\ntemplate = ChatPromptTemplate.from_template(\"\u3053\u3093\u306b\u3061\u306f\u3001{name}\u3055\u3093\")\n\nprompt = template.format(name=\"\u592a\u90ce\")\nprint(prompt)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain_core<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">prompts <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> ChatPromptTemplate<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">template <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> ChatPromptTemplate<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">from_template<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u3053\u3093\u306b\u3061\u306f\u3001<\/span><span style=\"color: #F78C6C\">{name}<\/span><span style=\"color: #C3E88D\">\u3055\u3093<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">prompt <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> template<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">format<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">name<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u592a\u90ce<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">print<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">prompt<\/span><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">\u5b9f\u884c\u7d50\u679c<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\u3053\u3093\u306b\u3061\u306f\u3001\u592a\u90ce\u3055\u3093<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">\u3053\u3093\u306b\u3061\u306f\u3001\u592a\u90ce\u3055\u3093<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3092\u547c\u3073\u51fa\u3057\u305f\u30e2\u30c7\u30eb\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u7279\u5b9a\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u57fa\u3065\u3044\u305f\u30d7\u30ed\u30f3\u30d7\u30c8\u751f\u6210\u3092\u5bb9\u6613\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>from langchain_openai import ChatOpenAI\nfrom langchain_core.prompts import ChatPromptTemplate\n\n# \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\ntemplate = ChatPromptTemplate.from_template(\"{place}\u306e\u770c\u5e81\u6240\u5728\u5730\u306f\uff1f\")\n\nprompt = template.format(name=\"\u5317\u6d77\u9053\")\n\n# \u30e2\u30c7\u30eb\u306e\u547c\u3073\u51fa\u3057\nchat = ChatOpenAI(model=\"gpt-5-nano\")\n\noutput = chat.invoke(&#91;HumanMessage(content=prompt)&#93;)\nprint(output)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain_openai <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> ChatOpenAI<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain_core<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">prompts <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> ChatPromptTemplate<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #546E7A; font-style: italic\"># \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">template <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> ChatPromptTemplate<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">from_template<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #F78C6C\">{place}<\/span><span style=\"color: #C3E88D\">\u306e\u770c\u5e81\u6240\u5728\u5730\u306f\uff1f<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">prompt <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> template<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">format<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">name<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u5317\u6d77\u9053<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #546E7A; font-style: italic\"># \u30e2\u30c7\u30eb\u306e\u547c\u3073\u51fa\u3057<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">chat <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">ChatOpenAI<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">model<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">gpt-5-nano<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">output <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> chat<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">invoke<\/span><span style=\"color: #89DDFF\">(&#91;<\/span><span style=\"color: #82AAFF\">HumanMessage<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">content<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #82AAFF\">prompt<\/span><span style=\"color: #89DDFF\">)&#93;)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">print<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">output<\/span><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 id=\"outline__3_2\" class=\"wp-block-heading\">LCEL\uff08|\u8a18\u53f7\uff09\u3092\u4f7f\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u66f8\u304d\u65b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LCEL\u306f\u3001Chains\u3092\u3088\u308a\u7c21\u6f54\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u65b0\u305f\u306a\u8a18\u6cd5\u3067\u3059\u3002<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30d1\u30a4\u30d7\u8a18\u53f7\uff08\uff5c\uff09\u3092\u4f7f\u7528\u3057\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>chain = prompt | model<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">chain <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> prompt <\/span><span style=\"color: #89DDFF\">|<\/span><span style=\"color: #EEFFFF\"> model<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>from langchain_openai import ChatOpenAI\nfrom langchain.prompts import PromptTemplate\nfrom langchain.chains import LLMChain\n\n\ntemplate = PromptTemplate.from_template(\"{place}\u306e\u770c\u5e81\u6240\u5728\u5730\u306f\uff1f\")\nchat = ChatOpenAI(model=\"gpt-5-nano\")\n\nchain = template | chat\noutput = chain. invoke({\"place\": \"\u5317\u6d77\u9053\"})\n\nprint(output)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain_openai <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> ChatOpenAI<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">prompts <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> PromptTemplate<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF; font-style: italic\">from<\/span><span style=\"color: #EEFFFF\"> langchain<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #EEFFFF\">chains <\/span><span style=\"color: #89DDFF; font-style: italic\">import<\/span><span style=\"color: #EEFFFF\"> LLMChain<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">template <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> PromptTemplate<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">from_template<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #F78C6C\">{place}<\/span><span style=\"color: #C3E88D\">\u306e\u770c\u5e81\u6240\u5728\u5730\u306f\uff1f<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">chat <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">ChatOpenAI<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">model<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">gpt-5-nano<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">chain <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> template <\/span><span style=\"color: #89DDFF\">|<\/span><span style=\"color: #EEFFFF\"> chat<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">output <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> chain<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #F07178\"> <\/span><span style=\"color: #82AAFF\">invoke<\/span><span style=\"color: #89DDFF\">({<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">place<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #82AAFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">\u5317\u6d77\u9053<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">})<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">print<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">output<\/span><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">LangChain Agent\u3068\u306f\uff1fAI\u306b\u81ea\u5206\u3067\u8003\u3048\u3066\u52d5\u304f\u4ed5\u7d44\u307f<\/h2>\n\n\n\n<h3 id=\"outline__4_1\" class=\"wp-block-heading\">AI\u306b\u81ea\u5206\u3067\u8003\u3048\u3066\u52d5\u3044\u3066\u3082\u3089\u3046\u4ed5\u7d44\u307f\u3068\u306f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5165\u529b\u30c6\u30ad\u30b9\u30c8\u306e\u5185\u5bb9\u3084\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u884c\u3046\u3079\u304d\u51e6\u7406\u3092\u81ea\u52d5\u3067\u5224\u65ad\u3057\u3001\u9069\u5207\u306b\u30c4\u30fc\u30eb\u3092\u4f7f\u3044\u5206\u3051\u3066\u304f\u308c\u308b\u6a5f\u80fd\u3067\u3059\u3002<br>\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3055\u308c\u305f\u30d5\u30ed\u30fc\u306b\u5f93\u3046\u306e\u3067\u306f\u306a\u304f\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u72b6\u6cc1\u3092\u5224\u65ad\u3057\u3066\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Agent\u306f\u3001\u30e2\u30c7\u30eb\u81ea\u8eab\u304c\u6b21\u306b\u884c\u3046\u3079\u304d\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u81ea\u52d5\u3067\u5224\u65ad\u3057\u3001\u4e0e\u3048\u3089\u308c\u305f\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u76ee\u7684\u304c\u5b8c\u4e86\u3059\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u884c\u3046\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Agent\u304c\u5229\u7528\u3059\u308b\u5916\u90e8\u6a5f\u80fd\u3092Tool\u3068\u547c\u3073\u3001\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30c4\u30fc\u30eb\u304b\u3089\u81ea\u4f5c\u30c4\u30fc\u30eb\u307e\u3067\u3001\u5e45\u5e83\u304f\u6d3b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306f\u3001LangChain\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30c4\u30fc\u30eb\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.langchain.com\/oss\/python\/integrations\/tools\/google_search\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google Search<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.langchain.com\/oss\/python\/integrations\/tools\/tavily_search\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Tavily Search<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.langchain.com\/oss\/python\/integrations\/tools\/python\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Python REPL<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.langchain.com\/oss\/python\/integrations\/tools\/awslambda\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">AWS Lambda<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Agent\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8907\u96d1\u306a\u6d41\u308c\u3082\u81ea\u52d5\u3067\u5224\u65ad\u3057\u3066\u51e6\u7406\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"display:flex; align-items:flex-start; justify-content:center; gap:8px; flex-wrap:wrap; max-width:680px; margin:24px auto; font-family: 'Hiragino Sans', 'Meiryo', sans-serif;\">\n\n  <div style=\"display:flex; flex-direction:column; align-items:center; gap:8px; width:110px; padding:4px;\">\n    <div style=\"width:56px; height:56px; border-radius:50%; background:#f1efe8; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#5f5e5a\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8 9h8M8 13h6M18 4a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-5l-4 3v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z\"\/><\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u8cea\u554f\u3092\u53d7\u3051\u53d6\u308b<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">\u30e6\u30fc\u30b6\u30fc\u5165\u529b<\/div>\n    <\/div>\n  <\/div>\n\n  <div style=\"display:flex; align-items:center; height:56px;\">\n    <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M13 6l6 6-6 6\"\/><\/svg>\n  <\/div>\n\n  <div style=\"display:flex; flex-direction:column; align-items:center; gap:8px; width:110px; padding:4px;\">\n    <div style=\"width:56px; height:56px; border-radius:50%; background:#faeeda; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#854f0b\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M6.5 19a4.5 4.5 0 0 1-1.5-8.74 5 5 0 0 1 9.9-1.02A4.5 4.5 0 0 1 17.5 19h-11z\"\/><\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u5929\u6c17API\u3092\u547c\u3076<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">\u6442\u6c0f\u3092\u53d6\u5f97<\/div>\n    <\/div>\n  <\/div>\n\n  <div style=\"display:flex; align-items:center; height:56px;\">\n    <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M13 6l6 6-6 6\"\/><\/svg>\n  <\/div>\n\n  <div style=\"display:flex; flex-direction:column; align-items:center; gap:8px; width:110px; padding:4px;\">\n    <div style=\"width:56px; height:56px; border-radius:50%; background:#faeeda; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#854f0b\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"3\" width=\"16\" height=\"18\" rx=\"2\"\/><path d=\"M8 7h8M8 11h.01M12 11h.01M16 11h.01M8 15h.01M12 15h.01M16 15h.01\"\/><\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u8a08\u7b97\u30c4\u30fc\u30eb\u547c\u51fa<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">\u83ef\u6c0f\u306b\u5909\u63db<\/div>\n    <\/div>\n  <\/div>\n\n  <div style=\"display:flex; align-items:center; height:56px;\">\n    <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M13 6l6 6-6 6\"\/><\/svg>\n  <\/div>\n\n  <div style=\"display:flex; flex-direction:column; align-items:center; gap:8px; width:110px; padding:4px;\">\n    <div style=\"width:56px; height:56px; border-radius:50%; background:#eaf3de; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#3b6d11\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M8 9h8M8 13h4M18 4a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-5l-4 3v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z\"\/><path d=\"M9 20l1.5-1.5L12 20\"\/><\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u56de\u7b54\u3092\u751f\u6210<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">\u6700\u7d42\u56de\u7b54\u3092\u51fa\u529b<\/div>\n    <\/div>\n  <\/div>\n\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u8cea\u554f\u3000\u2192\u3000\u5929\u6c17\u60c5\u5831\u304c\u5fc5\u8981\u3000\u2192\u3000\u5929\u6c17API\u3092\u547c\u3076\u3000\u2192\u3000\u6442\u6c0f\u3092\u53d6\u5f97\u3000\u2192\u3000\u8a08\u7b97\u30c4\u30fc\u30eb\u3092\u547c\u3076\u3000\u2192\u3000\u83ef\u6c0f\u3078\u5909\u63db\u3000\u2192\u3000\u56de\u7b54\u751f\u6210<\/p>\n\n\n\n<h3 id=\"outline__4_2\" class=\"wp-block-heading\">Agent\u306e\u4ed5\u7d44\u307f\u3092\u652f\u3048\u308bReAct\u3068\u306f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain Agent\u306e\u8003\u3048\u65b9\u306e\u57fa\u790e\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u3001<a href=\"https:\/\/arxiv.org\/abs\/2210.03629\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">ReAct\uff08Reason + Act\uff09<\/a>\u3067\u3059\u3002<br>ReAct\u3068\u306f\u3001\u4eba\u304c\u8a66\u884c\u932f\u8aa4\u3057\u306a\u304c\u3089\u4f5c\u696d\u3092\u9032\u3081\u308b\u3088\u3046\u306b\u3001\u8003\u3048\u308b\u3053\u3068\u3068\u884c\u52d5\u3059\u308b\u3053\u3068\u3092\u7e70\u308a\u8fd4\u3057\u306a\u304c\u3089\u30bf\u30b9\u30af\u3092\u89e3\u6c7a\u3059\u308b\u4ed5\u7d44\u307f\u306e\u3053\u3068\u3092\u8a00\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ReAct\u306e\u57fa\u672c\u30b5\u30a4\u30af\u30eb\u306f\u3001\u4ee5\u4e0b\u306e\uff13\u3064\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"position:relative; width:100%; max-width:460px; height:320px; margin:24px auto; font-family: 'Hiragino Sans', 'Meiryo', sans-serif;\">\n<style>\n@keyframes reactSpin { to { transform: rotate(360deg); } }\n.react-ring { animation: reactSpin 24s linear infinite; }\n@media (prefers-reduced-motion: reduce) { .react-ring { animation: none; } }\n<\/style>\n\n  <div class=\"react-ring\" style=\"position:absolute; inset:18px; border-radius:50%; border:1px dashed #d3dae1;\"><\/div>\n\n  <svg width=\"100%\" height=\"100%\" viewBox=\"0 0 460 320\" style=\"position:absolute; inset:0;\">\n    <defs>\n      <marker id=\"reactArrow\" viewBox=\"0 0 10 10\" refX=\"8\" refY=\"5\" markerWidth=\"6\" markerHeight=\"6\" orient=\"auto-start-reverse\">\n        <path d=\"M2 1L8 5L2 9\" fill=\"none\" stroke=\"#888780\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n      <\/marker>\n    <\/defs>\n    <path d=\"M230,50 A120,120 0 0,1 334,230\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"1.5\" marker-end=\"url(#reactArrow)\"\/>\n    <path d=\"M334,230 A120,120 0 0,1 126,230\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"1.5\" marker-end=\"url(#reactArrow)\"\/>\n    <path d=\"M126,230 A120,120 0 0,1 230,50\" fill=\"none\" stroke=\"#b4b2a9\" stroke-width=\"1.5\" marker-end=\"url(#reactArrow)\"\/>\n  <\/svg>\n\n  <div style=\"position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; font-size:12px; color:#888780; max-width:110px; line-height:1.5;\">\u76ee\u7684\u306e\u56de\u7b54\u304c<br>\u5f97\u3089\u308c\u308b\u307e\u3067<br>\u7e70\u308a\u8fd4\u3059<\/div>\n\n  <!-- \u601d\u8003 -->\n  <div style=\"position:absolute; left:230px; top:50px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:6px;\">\n    <div style=\"width:60px; height:60px; border-radius:50%; background:#e6f1fb; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#0c447c\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n        <path d=\"M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.5.4.8 1 .8 1.7v.5h5.6v-.5c0-.7.3-1.3.8-1.7A6 6 0 0 0 12 3z\"\/>\n      <\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u601d\u8003<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">Thought<\/div>\n    <\/div>\n  <\/div>\n\n  <!-- \u884c\u52d5 -->\n  <div style=\"position:absolute; left:334px; top:230px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:6px;\">\n    <div style=\"width:60px; height:60px; border-radius:50%; background:#faeeda; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#854f0b\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n        <path d=\"M13 3 5 14h6l-1 7 8-11h-6l1-7z\"\/>\n      <\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u884c\u52d5<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">Action<\/div>\n    <\/div>\n  <\/div>\n\n  <!-- \u89b3\u5bdf -->\n  <div style=\"position:absolute; left:126px; top:230px; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:6px;\">\n    <div style=\"width:60px; height:60px; border-radius:50%; background:#eaf3de; display:flex; align-items:center; justify-content:center;\">\n      <svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#3b6d11\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n        <path d=\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z\"\/><circle cx=\"12\" cy=\"12\" r=\"3\"\/>\n      <\/svg>\n    <\/div>\n    <div style=\"text-align:center;\">\n      <div style=\"font-size:14px; font-weight:bold; color:#1a2b3c;\">\u89b3\u5bdf<\/div>\n      <div style=\"font-size:12px; color:#5f5e5a;\">Observation<\/div>\n    <\/div>\n  <\/div>\n\n<\/div>\n\n\n\n<table style=\"border-collapse: collapse; width: 100%; font-family: 'Hiragino Sans', 'Meiryo', sans-serif; font-size: 14px; line-height: 1.6; border: 1px solid #c9ced6;\">\n  <thead>\n    <tr>\n      <th style=\"padding: 8px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: center; font-weight: bold;\">\u5de5\u7a0b<\/th>\n      <th style=\"padding: 8px 14px; background-color: #eceef1; color: #1a2b3c; border: 1px solid #c9ced6; text-align: center; font-weight: bold;\">\u5185\u5bb9<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u601d\u8003\uff08Thought\uff09<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u4e0e\u3048\u3089\u308c\u305f\u30bf\u30b9\u30af\u306b\u5bfe\u3057\u3001AI\u304c\u4eca\u4f55\u3092\u3059\u3079\u304d\u304b\u3092\u8ad6\u7406\u7684\u306b\u8003\u3048\u308b<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u884c\u52d5\uff08Action\uff09<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u601d\u8003\u7d50\u679c\u306b\u57fa\u3065\u304d\u3001\u5916\u90e8\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u6307\u793a\u3092\u51fa\u3059<\/td>\n    <\/tr>\n    <tr style=\"background-color: #ffffff;\">\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u89b3\u5bdf\uff08Observation\uff09<\/td>\n      <td style=\"padding: 8px 14px; border: 1px solid #d3dae1; color: #1a2b3c;\">\u8fd4\u3063\u3066\u304d\u305f\u7d50\u679c\u3084\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u5de5\u7a0b\u3092\u3001Thought \u2192 Action \u2192 Observation \u2192 Thought \u2192 \u2026 \u3068\u3044\u3063\u305f\u6d41\u308c\u3067\u3001\u76ee\u7684\u306e\u56de\u7b54\u304c\u5f97\u3089\u308c\u308b\u307e\u3067\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\">LangChain Agent\u306e\u4f5c\u308a\u65b9\uff5c\u30c4\u30fc\u30eb\u3068\u9023\u643a\u3055\u305b\u308b\u5b9f\u8df5\u65b9\u6cd5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u304b\u3089\u306f\u3001\u7c21\u5358\u306aTool\u3092\u767b\u9332\u3057\u3066Agent\u306b\u5229\u7528\u3055\u305b\u308b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\">Google\u691c\u7d22\u3084\u8a08\u7b97\u6a5f\u80fd\u3092\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u7d44\u307f\u8fbc\u3080\u624b\u9806<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Agent\u3067\u4f7f\u7528\u3059\u308b\u30c4\u30fc\u30eb\u306f\u3001\u6a19\u6e96\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3068\u3001\u81ea\u4f5c\u306e\u30c4\u30fc\u30eb\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u306e2\u901a\u308a\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306f\u3001\u30c4\u30fc\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>@tool\ndef multiply(a: int, b: int) -> int:\n    \"\"\"\n    2\u3064\u306e\u6574\u6570\u3092\u639b\u3051\u7b97\u3059\u308b\n    \"\"\"\n    return a * b<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #89DDFF\">@<\/span><span style=\"color: #82AAFF\">tool<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C792EA\">def<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">multiply<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #EEFFFF; font-style: italic\">a<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #FFCB6B\">int<\/span><span style=\"color: #89DDFF\">,<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #EEFFFF; font-style: italic\">b<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #FFCB6B\">int<\/span><span style=\"color: #89DDFF\">)<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #89DDFF\">-&gt;<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #FFCB6B\">int<\/span><span style=\"color: #89DDFF\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF; font-style: italic\">&quot;&quot;&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #546E7A; font-style: italic\">    2\u3064\u306e\u6574\u6570\u3092\u639b\u3051\u7b97\u3059\u308b<\/span><\/span>\n<span class=\"line\"><span style=\"color: #546E7A; font-style: italic\">    <\/span><span style=\"color: #89DDFF; font-style: italic\">&quot;&quot;&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #EEFFFF\">    <\/span><span style=\"color: #89DDFF; font-style: italic\">return<\/span><span style=\"color: #EEFFFF\"> a <\/span><span style=\"color: #89DDFF\">*<\/span><span style=\"color: #EEFFFF\"> b<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/reference.langchain.com\/python\/langchain-core\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">@tool<\/a>\u306f\u30c7\u30b3\u30ec\u30fc\u30bf\u3068\u547c\u3070\u308c\u308b\u66f8\u304d\u65b9\u3067\u3001\u95a2\u6570\u306e\u524d\u306b\u4ed8\u3051\u308b\u3060\u3051\u3067\u3001\u305d\u306e\u95a2\u6570\u3092Agent\u304c\u5229\u7528\u3067\u304d\u308b\u30c4\u30fc\u30eb\u3068\u3057\u3066\u767b\u9332\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c4\u30fc\u30eb\u306e\u6e96\u5099\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7d9a\u3044\u3066\u4f7f\u7528\u3057\u305f\u3044\u30e2\u30c7\u30eb\u3092\u6e96\u5099\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>model = ChatOpenAI(\n    model=\"gpt-4o\"\n)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">model <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">ChatOpenAI<\/span><span style=\"color: #89DDFF\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #EEFFFF; font-style: italic\">model<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">gpt-4o<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u6e96\u5099\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30c4\u30fc\u30eb\u3068\u30e2\u30c7\u30eb\u3092Agent\u3078\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>agent = create_agent(\n    model=model,\n    tools=&#91;multiply&#93;\n)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">agent <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">create_agent<\/span><span style=\"color: #89DDFF\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #EEFFFF; font-style: italic\">model<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #82AAFF\">model<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #EEFFFF; font-style: italic\">tools<\/span><span style=\"color: #89DDFF\">=&#91;<\/span><span style=\"color: #82AAFF\">multiply<\/span><span style=\"color: #89DDFF\">&#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u3068\u306f\u3001\u5b9f\u884c\u3057\u305f\u3044\u30d7\u30ed\u30f3\u30d7\u30c8\u3092Agent\u306b\u6e21\u305b\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>response = agent.invoke(\n    {\n        \"messages\": &#91;\n            {\n                \"role\": \"user\",\n                \"content\": \"23\u00d747\u3092\u8a08\u7b97\u3057\u3066\u304f\u3060\u3055\u3044\"\n            }\n        &#93;\n    }\n)\n\nprint(response)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">response <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> agent<\/span><span style=\"color: #89DDFF\">.<\/span><span style=\"color: #82AAFF\">invoke<\/span><span style=\"color: #89DDFF\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">        <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">messages<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #82AAFF\"> <\/span><span style=\"color: #89DDFF\">&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">            <\/span><span style=\"color: #89DDFF\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">                <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">role<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #82AAFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">user<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">                <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">content<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">:<\/span><span style=\"color: #82AAFF\"> <\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">23\u00d747\u3092\u8a08\u7b97\u3057\u3066\u304f\u3060\u3055\u3044<\/span><span style=\"color: #89DDFF\">&quot;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">            <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">        <\/span><span style=\"color: #89DDFF\">&#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #89DDFF\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">print<\/span><span style=\"color: #89DDFF\">(<\/span><span style=\"color: #82AAFF\">response<\/span><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u3001\u4f7f\u7528\u3057\u305f\u3044\u30c4\u30fc\u30eb\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30ab\u30f3\u30de\u3067\u533a\u5207\u3063\u3066\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u5408\u308f\u305b\u3066\u767b\u9332\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(14px, .875rem, 21px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(20px, 1.25rem, 30px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#304047;color:#d5ffff\">Python<\/span><span role=\"button\" tabindex=\"0\" style=\"color:#EEFFFF;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>agent = create_agent(\n    model=model,\n    tools=&#91;\n        search_tool,\n        multiply\n    &#93;\n)<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme\" style=\"background-color: #263238\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #EEFFFF\">agent <\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #EEFFFF\"> <\/span><span style=\"color: #82AAFF\">create_agent<\/span><span style=\"color: #89DDFF\">(<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #EEFFFF; font-style: italic\">model<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #82AAFF\">model<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #EEFFFF; font-style: italic\">tools<\/span><span style=\"color: #89DDFF\">=&#91;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">        search_tool<\/span><span style=\"color: #89DDFF\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">        multiply<\/span><\/span>\n<span class=\"line\"><span style=\"color: #82AAFF\">    <\/span><span style=\"color: #89DDFF\">&#93;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #89DDFF\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306b\u3088\u308a\u3001\u8907\u6570\u306e\u30c4\u30fc\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u51e6\u7406\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\">\u30c4\u30fc\u30eb\u306e\u4f7f\u3044\u904e\u304e\u306b\u3088\u308b\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u3068\u305d\u306e\u5bfe\u7b56<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Agent\u306f\u4fbf\u5229\u3067\u3042\u308b\u53cd\u9762\u3001\u30c4\u30fc\u30eb\u3092\u5fc5\u8981\u4ee5\u4e0a\u306b\u547c\u3073\u51fa\u3057\u7d9a\u3051\u3066\u3057\u307e\u3046\u300c\u7121\u9650\u30eb\u30fc\u30d7\u300d\u306b\u9665\u308b\u554f\u984c\u3082\u62b1\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u3048\u3070\u3001\u7279\u5b9a\u306e\u60c5\u5831\u3092\u691c\u7d22\u3057\u305f\u969b\u306b\u53d6\u5f97\u3057\u305f\u60c5\u5831\u91cf\u304c\u5341\u5206\u3067\u306a\u3044\u3068\u5224\u65ad\u3057\u305f\u5834\u5408\u3001AI\u304c\u4f55\u5ea6\u3082\u540c\u3058\u691c\u7d22\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br>\u30eb\u30fc\u30d7\u304c\u6b62\u307e\u3089\u306a\u3051\u308c\u3070\u3001\u305d\u306e\u5206\u3060\u3051\u30c4\u30fc\u30eb\u306e\u547c\u3073\u51fa\u3057\u56de\u6570\u3082\u5897\u3048\u7d9a\u3051\u308b\u305f\u3081\u3001API\u306e\u5229\u7528\u6599\u304c\u60f3\u5b9a\u4ee5\u4e0a\u306b\u304b\u3055\u3093\u3067\u3057\u307e\u3046\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u305f\u3081\u3001\u5b9f\u904b\u7528\u3067\u306f\u5b9f\u884c\u56de\u6570\u306e\u5236\u9650\u3092\u8a2d\u3051\u305f\u308a\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3044\u3063\u305f\u5bfe\u7b56\u3092\u53d6\u308b\u3053\u3068\u304c\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002<br>\u5177\u4f53\u7684\u306b\u53d6\u308c\u308b\u4e3b\u306a\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6700\u5927\u5b9f\u884c\u56de\u6570\u3092\u5236\u9650\u3059\u308b<\/li>\n\n\n\n<li>\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n\n\n\n<li>\u4f7f\u7528\u3059\u308b\u30c4\u30fc\u30eb\u306e\u6570\u3092\u5897\u3084\u3057\u3059\u304e\u306a\u3044<\/li>\n\n\n\n<li>Tool\u306e\u8aac\u660e\u6587\u3092\u9069\u5207\u306b\u66f8\u304f<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c4\u30fc\u30eb\u306e\u904e\u5270\u4f7f\u7528\u306f\u51e6\u7406\u9762\u3060\u3051\u3067\u306a\u304f\u3001API\u306e\u5229\u7528\u6599\u306a\u3069\u30b3\u30b9\u30c8\u9762\u3067\u3082\u5f71\u97ff\u304c\u51fa\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3001\u5341\u5206\u306a\u5bfe\u7b56\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__6\" class=\"wp-block-heading\">LangChain\u306b\u95a2\u3059\u308b\u3088\u304f\u3042\u308b\u8cea\u554f\uff08FAQ\uff09<\/h2>\n\n\n\n<h3 id=\"outline__6_1\" class=\"wp-block-heading\">Q. LangChain\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. LangChain\u81ea\u4f53\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\uff08OSS\uff09\u306e\u305f\u3081<strong>\u7121\u6599<\/strong>\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u547c\u3073\u51fa\u3059OpenAI\uff08ChatGPT\uff09\u306a\u3069\u306eAPI\u5229\u7528\u6599\u91d1\u306f\u5225\u9014\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_2\" class=\"wp-block-heading\">Q. Python\u4ee5\u5916\u306e\u8a00\u8a9e\uff08TypeScript\/JavaScript\u306a\u3069\uff09\u3067\u3082\u4f7f\u3048\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. \u306f\u3044\u3002LangChain\u306fPython\u7248\uff08<code>langchain<\/code>\uff09\u3060\u3051\u3067\u306a\u304f\u3001TypeScript\/JavaScript\u7248\uff08<code>langchain\/js<\/code>\uff09\u3082\u516c\u5f0f\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__6_3\" class=\"wp-block-heading\">Q. LangChain\u3068ChatGPT API\u306e\u76f4\u63a5\u5229\u7528\u306e\u9055\u3044\u306f\u4f55\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A. ChatGPT API\u3092\u5358\u4f53\u3067\u4f7f\u3046\u5834\u5408\u3001\u4f1a\u8a71\u5c65\u6b74\u306e\u7ba1\u7406\u3084\u5916\u90e8\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u691c\u7d22\u306a\u3069\u306e\u51e6\u7406\u3092\u81ea\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002LangChain\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u308c\u3089\u306e\u8907\u96d1\u306a\u51e6\u7406\u3092\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 id=\"outline__7\" class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">LangChain\u306f\u3001AI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u52b9\u7387\u3092\u9ad8\u3081\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<br>\u5168\u3066\u306e\u6a5f\u80fd\u3092\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u3042\u308b\u7a0b\u5ea6\u306e\u6163\u308c\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u304c\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3084\u696d\u52d9\u81ea\u52d5\u5316\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u6709\u529b\u306a\u9078\u629e\u80a2\u306e\u4e00\u3064\u3067\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT\u3068\u306e\u9055\u3044\u3084\u6d3b\u7528\u30a4\u30e1\u30fc\u30b8\u3067\u7d39\u4ecb\u3057\u305f\u3088\u3046\u306b\u3001LangChain\u3092\u4f7f\u3048\u3070\u3001\u81ea\u793e\u306e\u696d\u52d9\u3084\u30b5\u30fc\u30d3\u30b9\u306b\u5408\u308f\u305b\u305fAI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br>\u307e\u305a\u306fPromptTemplate\u3084LCEL\u3068\u3044\u3063\u305f\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u304b\u3089\u3001\u5b9f\u969b\u306b\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"LangChain\u306f\u3001\u8907\u6570\u306e\u6a5f\u80fd\u3092\u67d4\u8edf\u306b\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306aAI\u30bf\u30b9\u30af\u3084\u696d\u52d9\u81ea\u52d5\u5316\u3092\u5b9f\u73fe\u3067\u304d\u308b\u5f37\u529b\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Python\u3092\u4f7f\u3063\u305f\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5b9f\u52d9\u3078\u306e\u5fdc\u7528\u307e\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002\u4ed5\u7d44\u307f\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u5b66\u3073\u3001\u958b\u767a\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u9032\u3081\u307e\u3057\u3087\u3046\u3002","protected":false},"author":12,"featured_media":10563,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"fifu_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp","fifu_image_alt":"\u3010LangChain\u3011LLM\u30a2\u30d7\u30ea\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0","footnotes":""},"categories":[105],"tags":[],"class_list":["post-10561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-ml"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/techmania.jp\/blog\/langchain\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TechMania |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85\" \/>\n\t\t<meta property=\"og:description\" content=\"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/techmania.jp\/blog\/langchain\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1368\" \/>\n\t\t<meta property=\"og:image:height\" content=\"196\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-06-12T12:18:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-07T08:21:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85\" \/>\n\t\t<meta name=\"twitter:description\" content=\"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#blogposting\",\"name\":\"LangChain\\u306e\\u6982\\u8981\\u3068\\u7279\\u5fb4\\u3092\\u5fb9\\u5e95\\u89e3\\u8aac\\uff5c\\u57fa\\u672c\\u6a5f\\u80fd\\u304b\\u3089\\u4f7f\\u3044\\u65b9\\u307e\\u3067\\u7db2\\u7f85\",\"headline\":\"LangChain\\u3068\\u306f\\uff1f\\u3067\\u304d\\u308b\\u3053\\u3068\\u30fb\\u4ed5\\u7d44\\u307f\\u30fb\\u4f7f\\u3044\\u65b9\\u3092\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306b\\u89e3\\u8aac\",\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/LangChain.webp\",\"width\":599,\"height\":401,\"caption\":\"\\u3010LangChain\\u3011LLM\\u30a2\\u30d7\\u30ea\\u3092\\u30b3\\u30fc\\u30c7\\u30a3\\u30f3\\u30b0\"},\"datePublished\":\"2026-06-12T21:18:48+09:00\",\"dateModified\":\"2026-08-07T17:21:54+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#webpage\"},\"articleSection\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"position\":2,\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\",\"item\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#listItem\",\"name\":\"LangChain\\u3068\\u306f\\uff1f\\u3067\\u304d\\u308b\\u3053\\u3068\\u30fb\\u4ed5\\u7d44\\u307f\\u30fb\\u4f7f\\u3044\\u65b9\\u3092\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306b\\u89e3\\u8aac\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#listItem\",\"position\":3,\"name\":\"LangChain\\u3068\\u306f\\uff1f\\u3067\\u304d\\u308b\\u3053\\u3068\\u30fb\\u4ed5\\u7d44\\u307f\\u30fb\\u4f7f\\u3044\\u65b9\\u3092\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306b\\u89e3\\u8aac\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/category\\\/ai-ml\\\/#listItem\",\"name\":\"AI\\u30fb\\u6a5f\\u68b0\\u5b66\\u7fd2\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\",\"description\":\"\\u682a\\u5f0f\\u4f1a\\u793e\\u30ec\\u30f3\\u30b5\\u306f\\u3001\\u81ea\\u793e\\u30b3\\u30f3\\u30c6\\u30f3\\u30c4\\u904b\\u7528\\u3092\\u8ef8\\u306b\\u300c\\u30aa\\u30a6\\u30f3\\u30c9\\u30e1\\u30c7\\u30a3\\u30a2\\u904b\\u55b6\\u300d\\u300c\\u5404\\u30e1\\u30c7\\u30a3\\u30a2\\u306e\\u5e83\\u544a\\u904b\\u7528\\u300d\\u300c\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u306e\\u80b2\\u6210\\u300d\\u300c\\u30b7\\u30b9\\u30c6\\u30e0\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u4e8b\\u696d\\u300d\\u3092\\u5c55\\u958b\\u3057\\u3066\\u3044\\u307e\\u3059\\u3002\\u6e29\\u5ea6\\u3092\\u611f\\u3058\\u308b\\u30af\\u30ea\\u30a8\\u30a4\\u30c6\\u30a3\\u30d6\\u3068\\u30a8\\u30f3\\u30b8\\u30cb\\u30a2\\u30ea\\u30f3\\u30b0\\u3067\\u793e\\u4f1a\\u306b\\u8ca2\\u732e\\u3057\\u307e\\u3059\\u3002\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"telephone\":\"+81364575500\",\"foundingDate\":\"2011-02-18\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/logo2.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/\",\"name\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30c6\\u30c3\\u30af\\u30de\\u30cb\\u30a2\\u7de8\\u96c6\\u90e8\\u3000\\u65e9\\u5ddd\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#webpage\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/\",\"name\":\"LangChain\\u306e\\u6982\\u8981\\u3068\\u7279\\u5fb4\\u3092\\u5fb9\\u5e95\\u89e3\\u8aac\\uff5c\\u57fa\\u672c\\u6a5f\\u80fd\\u304b\\u3089\\u4f7f\\u3044\\u65b9\\u307e\\u3067\\u7db2\\u7f85\",\"description\":\"LangChain\\uff08\\u30e9\\u30f3\\u30b0\\u30c1\\u30a7\\u30fc\\u30f3\\uff09\\u3068\\u306f\\u3001ChatGPT\\u306a\\u3069\\u306eLLM\\u3092\\u6d3b\\u7528\\u3057\\u305f\\u30a2\\u30d7\\u30ea\\u958b\\u767a\\u3092\\u52b9\\u7387\\u5316\\u3059\\u308b\\u30d5\\u30ec\\u30fc\\u30e0\\u30ef\\u30fc\\u30af\\u3067\\u3059\\u3002\\u672c\\u8a18\\u4e8b\\u3067\\u306f\\u3001LangChain\\u306e\\u57fa\\u672c\\u7684\\u306a\\u4ed5\\u7d44\\u307f\\u3084\\u4e3b\\u8981\\u6a5f\\u80fd\\uff08Model I\\\/O\\u3001Chain\\u3001Agent\\u3001Memory\\u7b49\\uff09\\u3001\\u3067\\u304d\\u308b\\u3053\\u3068\\u3001Python\\u3067\\u306e\\u7c21\\u5358\\u306a\\u4f7f\\u3044\\u65b9\\u307e\\u3067\\u5206\\u304b\\u308a\\u3084\\u3059\\u304f\\u89e3\\u8aac\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/author\\\/k-h\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/web-img.rensa.jp.net\\\/images\\\/techmania\\\/thumbnail\\\/images\\\/LangChain.webp\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#mainImage\",\"width\":599,\"height\":401,\"caption\":\"\\u3010LangChain\\u3011LLM\\u30a2\\u30d7\\u30ea\\u3092\\u30b3\\u30fc\\u30c7\\u30a3\\u30f3\\u30b0\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/langchain\\\/#mainImage\"},\"datePublished\":\"2026-06-12T21:18:48+09:00\",\"dateModified\":\"2026-08-07T17:21:54+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/\",\"name\":\"TechMania\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/techmania.jp\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","description":"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002","canonical_url":"https:\/\/techmania.jp\/blog\/langchain\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/techmania.jp\/blog\/langchain\/#blogposting","name":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","headline":"LangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac","author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp","width":599,"height":401,"caption":"\u3010LangChain\u3011LLM\u30a2\u30d7\u30ea\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0"},"datePublished":"2026-06-12T21:18:48+09:00","dateModified":"2026-08-07T17:21:54+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/techmania.jp\/blog\/langchain\/#webpage"},"isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/langchain\/#webpage"},"articleSection":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"},{"@type":"BreadcrumbList","@id":"https:\/\/techmania.jp\/blog\/langchain\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/techmania.jp\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","position":2,"name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2","item":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/","nextItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/langchain\/#listItem","name":"LangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac"},"previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/langchain\/#listItem","position":3,"name":"LangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac","previousItem":{"@type":"ListItem","@id":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/#listItem","name":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2"}}]},{"@type":"Organization","@id":"https:\/\/techmania.jp\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5","description":"\u682a\u5f0f\u4f1a\u793e\u30ec\u30f3\u30b5\u306f\u3001\u81ea\u793e\u30b3\u30f3\u30c6\u30f3\u30c4\u904b\u7528\u3092\u8ef8\u306b\u300c\u30aa\u30a6\u30f3\u30c9\u30e1\u30c7\u30a3\u30a2\u904b\u55b6\u300d\u300c\u5404\u30e1\u30c7\u30a3\u30a2\u306e\u5e83\u544a\u904b\u7528\u300d\u300c\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u80b2\u6210\u300d\u300c\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u4e8b\u696d\u300d\u3092\u5c55\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u6e29\u5ea6\u3092\u611f\u3058\u308b\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u3068\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3067\u793e\u4f1a\u306b\u8ca2\u732e\u3057\u307e\u3059\u3002","url":"https:\/\/techmania.jp\/blog\/","telephone":"+81364575500","foundingDate":"2011-02-18","logo":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/logo2.webp","@id":"https:\/\/techmania.jp\/blog\/langchain\/#organizationLogo"},"image":{"@id":"https:\/\/techmania.jp\/blog\/langchain\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author","url":"https:\/\/techmania.jp\/blog\/author\/k-h\/","name":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd","image":{"@type":"ImageObject","@id":"https:\/\/techmania.jp\/blog\/langchain\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/f3efd10a50c6027d326cce83db9bfd1e00de2edb5a323b312022e637f1c55f3e?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30c6\u30c3\u30af\u30de\u30cb\u30a2\u7de8\u96c6\u90e8\u3000\u65e9\u5ddd"}},{"@type":"WebPage","@id":"https:\/\/techmania.jp\/blog\/langchain\/#webpage","url":"https:\/\/techmania.jp\/blog\/langchain\/","name":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","description":"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002","inLanguage":"ja","isPartOf":{"@id":"https:\/\/techmania.jp\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/techmania.jp\/blog\/langchain\/#breadcrumblist"},"author":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"creator":{"@id":"https:\/\/techmania.jp\/blog\/author\/k-h\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp","@id":"https:\/\/techmania.jp\/blog\/langchain\/#mainImage","width":599,"height":401,"caption":"\u3010LangChain\u3011LLM\u30a2\u30d7\u30ea\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0"},"primaryImageOfPage":{"@id":"https:\/\/techmania.jp\/blog\/langchain\/#mainImage"},"datePublished":"2026-06-12T21:18:48+09:00","dateModified":"2026-08-07T17:21:54+09:00"},{"@type":"WebSite","@id":"https:\/\/techmania.jp\/blog\/#website","url":"https:\/\/techmania.jp\/blog\/","name":"TechMania","inLanguage":"ja","publisher":{"@id":"https:\/\/techmania.jp\/blog\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"TechMania |","og:type":"article","og:title":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","og:description":"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002","og:url":"https:\/\/techmania.jp\/blog\/langchain\/","og:image":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:secure_url":"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/07\/logo2.png","og:image:width":1368,"og:image:height":196,"article:published_time":"2026-06-12T12:18:48+00:00","article:modified_time":"2026-08-07T08:21:54+00:00","twitter:card":"summary_large_image","twitter:title":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","twitter:description":"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002","twitter:image":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp"},"aioseo_meta_data":{"post_id":"10561","title":"LangChain\u306e\u6982\u8981\u3068\u7279\u5fb4\u3092\u5fb9\u5e95\u89e3\u8aac\uff5c\u57fa\u672c\u6a5f\u80fd\u304b\u3089\u4f7f\u3044\u65b9\u307e\u3067\u7db2\u7f85","description":"LangChain\uff08\u30e9\u30f3\u30b0\u30c1\u30a7\u30fc\u30f3\uff09\u3068\u306f\u3001ChatGPT\u306a\u3069\u306eLLM\u3092\u6d3b\u7528\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001LangChain\u306e\u57fa\u672c\u7684\u306a\u4ed5\u7d44\u307f\u3084\u4e3b\u8981\u6a5f\u80fd\uff08Model I\/O\u3001Chain\u3001Agent\u3001Memory\u7b49\uff09\u3001\u3067\u304d\u308b\u3053\u3068\u3001Python\u3067\u306e\u7c21\u5358\u306a\u4f7f\u3044\u65b9\u307e\u3067\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\u3002","keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"featured","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"created":"2026-08-07 03:45:42","updated":"2026-08-07 08:21:54","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":"https:\/\/web-img.rensa.jp.net\/images\/techmania\/thumbnail\/images\/LangChain.webp","schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/techmania.jp\/blog\/category\/ai-ml\/\" title=\"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2\">AI\u30fb\u6a5f\u68b0\u5b66\u7fd2<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tLangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/techmania.jp\/blog"},{"label":"AI\u30fb\u6a5f\u68b0\u5b66\u7fd2","link":"https:\/\/techmania.jp\/blog\/category\/ai-ml\/"},{"label":"LangChain\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u30fb\u4ed5\u7d44\u307f\u30fb\u4f7f\u3044\u65b9\u3092\u521d\u5fc3\u8005\u5411\u3051\u306b\u89e3\u8aac","link":"https:\/\/techmania.jp\/blog\/langchain\/"}],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=10561"}],"version-history":[{"count":12,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10561\/revisions"}],"predecessor-version":[{"id":11045,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/10561\/revisions\/11045"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/10563"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=10561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=10561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=10561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}