{"id":76708,"date":"2025-01-14T08:30:00","date_gmt":"2025-01-13T23:30:00","guid":{"rendered":"https:\/\/www.creationline.com\/tech-blog\/?p=76708"},"modified":"2025-01-10T20:07:40","modified_gmt":"2025-01-10T11:07:40","slug":"langgraph%e3%81%aetool-calling%e3%81%a7openai-api%e3%81%aefunction-calling%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86-openai-azure-langgraph-langchain-llm-ai","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708","title":{"rendered":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.langchain.com\/langgraph\" target=\"_blank\" rel=\"noreferrer noopener\">LangGraph<\/a>\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb <a href=\"https:\/\/langchain-ai.github.io\/langgraph\/tutorials\/introduction\/#part-2-enhancing-the-chatbot-with-tools\" target=\"_blank\" rel=\"noreferrer noopener\">Enhancing the Chatbot with Tools<\/a> \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large Language Model; \u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb)\u304b\u3089\u7b54\u3048\u3092\u5f97\u3089\u308c\u306a\u3044\u5834\u5408\u306b\u30a6\u30a7\u30d6\u691c\u7d22\u3092\u884c\u3046\u4ed5\u7d44\u307f\u3092\u5c0e\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d20\u6734\u306b\u8003\u3048\u308c\u3070\u300c\u25cb\u25cb\u306b\u3064\u3044\u3066\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306fSEARCH\u3068\u306e\u307f\u7b54\u3048\u3066\u304f\u3060\u3055\u3044\u300d\u3068\u3044\u3046\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4e0e\u3048\u3066\u8fd4\u308a\u5024\u3092\u8abf\u3079\u3066\u3001SEARCH\u3067\u3042\u308c\u3070\u300c\u25cb\u25cb\u300d\u3067\u30a6\u30a7\u30d6\u691c\u7d22\u3057\u3001\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u8fd4\u308a\u5024\u3092\u7b54\u3048\u3068\u3057\u3066\u8fd4\u3059\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u5f62\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u5b9f\u969b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u305d\u306e\u3088\u3046\u306a\u5224\u65ad\u3092\u884c\u3046\u30d7\u30ed\u30f3\u30d7\u30c8\u3082\u6761\u4ef6\u5206\u5c90\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306fLangGraph\u306e<a href=\"https:\/\/python.langchain.com\/docs\/concepts\/tool_calling\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tool calling<\/a>\u3068OpenAI API\u306e\u6982\u5ff5\u3067\u3042\u308b<a href=\"https:\/\/platform.openai.com\/docs\/guides\/function-calling\" target=\"_blank\" rel=\"noreferrer noopener\">Function calling<\/a>\u306b\u3088\u3063\u3066\u3001\u5224\u65ad\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u6761\u4ef6\u5206\u5c90\u3092\u4f5c\u308b\u3053\u3068\u306a\u304f\u5b9f\u73fe\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u9805\u3067\u306fLangGraph\u306eTool calling\u3068OpenAI API\u306eFunction calling\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">OpenAI API\u306eFunction calling\u3068\u306f<\/h2>\n\n\n\n<p>OpenAI\u306f2023\u5e746\u670813\u65e5\u306b <a href=\"https:\/\/openai.com\/index\/function-calling-and-other-api-updates\/\" target=\"_blank\" rel=\"noreferrer noopener\">Function calling and other API updates<\/a> \u3068\u3057\u3066\u767a\u8868\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u306b\u7528\u3044\u308b <a href=\"https:\/\/platform.openai.com\/docs\/guides\/text-generation\" target=\"_blank\" rel=\"noreferrer noopener\">Chat Completions API<\/a> \u3067\u306f\u901a\u5e38\u306f\u6b21\u306e\u3088\u3046\u306b\u3001\u8cea\u554f\u3084\u6307\u793a\u306e\u4f1a\u8a71\u6587\uff08\u306b\u52a0\u3048\u3066\u30ed\u30fc\u30eb\u306a\u3069\uff09\u3092\u4e0e\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">question=\"\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\"\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\nfrom openai import AzureOpenAI\n\nclient = AzureOpenAI(\n    api_key = os.getenv(\"AZURE_OPENAI_API_KEY\"),\n    api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n    azure_endpoint = os.getenv(\"AZURE_OPENAI_ENDPOINT\"),\n)\n\ncompletion = client.chat.completions.create(\n    model = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n    messages = [{\n        \"role\": \"user\",\n        \"content\": question\n    }],\n)\n\nimport pprint\npprint.pprint((completion.model_dump())[\"choices\"][0][\"message\"])<\/pre>\n\n\n\n<p>\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{'audio': None,\n 'content': '\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u73fe\u5728\u306e\u6b63\u78ba\u306a\u65e5\u6642\u3084\u5929\u6c17\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u5929\u6c17\u60c5\u5831\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u5929\u6c17\u4e88\u5831\u30b5\u30fc\u30d3\u30b9\u3084\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002',\n 'function_call': None,\n 'refusal': None,\n 'role': 'assistant',\n 'tool_calls': None}<\/pre>\n\n\n\n<p>LLM\u3060\u3051\u3067\u306f\u3053\u306e\u3088\u3046\u306b\u3064\u308c\u306a\u3044\u7d50\u679c\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Function calling \u3067\u306f\u3001\u4f1a\u8a71\u6587\u306b\u52a0\u3048\u3066\u3001\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u6307\u793a\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u300c\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u6307\u793a\u300d\u3068\u3044\u3046\u306e\u304c\u3061\u3087\u3063\u3068\u30d4\u30f3\u3068\u3053\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">question=\"\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\"\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\nfrom openai import AzureOpenAI\n\nclient = AzureOpenAI(\n    api_key = os.getenv(\"AZURE_OPENAI_API_KEY\"),\n    api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n    azure_endpoint = os.getenv(\"AZURE_OPENAI_ENDPOINT\"),\n)\n\ncompletion = client.chat.completions.create(\n    model = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n    messages = [{\n        \"role\": \"user\",\n        \"content\": question\n    }],\n    tools=[{\n        \"type\": \"function\",\n        \"function\": {\n            \"name\": \"japanese_search\",\n            \"description\": \"\u5305\u62ec\u7684\u3001\u6b63\u78ba\u3001\u4fe1\u983c\u3067\u304d\u308b\u7d50\u679c\u3092\u5f97\u308b\u305f\u3081\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3002\u73fe\u5728\u306e\u51fa\u6765\u4e8b\u306b\u95a2\u3059\u308b\u8cea\u554f\u306b\u7b54\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002\u5165\u529b\u306f\u691c\u7d22\u30af\u30a8\u30ea\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\",\n            \"parameters\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"query\": {\n                        \"type\": \"string\",\n                        \"description\": \"\u691c\u7d22\u30af\u30a8\u30ea\u6587\u5b57\u5217\",\n                    },\n                },\n            },\n            \"required\": [\"query\"],\n        },\n    }],\n)\n\nimport pprint\npprint.pprint((completion.model_dump())[\"choices\"][0][\"message\"])<\/pre>\n\n\n\n<p>\u3053\u3053\u3067\u306fChatCompletions API\u306b <code>tools<\/code>\u3068\u3044\u3046\u5165\u529b\u3092\u8ffd\u52a0\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304c\u300c\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u6307\u793a\u300d\u3067\u3059\u3002\u304a\u304a\u307e\u304b\u306b\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>name<\/code> : \u95a2\u6570\u306e\u540d\u524d<\/li>\n\n\n\n<li><code>description<\/code> : \u95a2\u6570\u306e\u52d5\u4f5c<\/li>\n\n\n\n<li><code>parameters<\/code> : \u95a2\u6570\u306e\u5f15\u6570<\/li>\n\n\n\n<li><code>required<\/code> : \u95a2\u6570\u306b\u5fc5\u9808\u306e\u5f15\u6570<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u3044\u3063\u305f\u5f62\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001LLM\u306e\u307f\u3067\u7b54\u3048\u304c\u51fa\u305b\u306a\u3044\u5834\u5408\u3001\u300c\u3053\u3046\u3044\u3063\u305f\u5f62\u3067\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u300d\u3068\u3044\u3046\u7b54\u3048\u304c\u8fd4\u3063\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u306a\u304a <code>description<\/code> \u306f <a href=\"https:\/\/github.com\/langchain-ai\/langchain\/blob\/v0.1.16\/libs\/community\/langchain_community\/tools\/tavily_search\/tool.py#L25-L29\" target=\"_blank\" rel=\"noreferrer noopener\">tavily_search<\/a> \u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u3082\u306e\u3092\u548c\u8a33\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u52d5\u304b\u3057\u305f\u7d50\u679c\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{'audio': None,\n 'content': None,\n 'function_call': None,\n 'refusal': None,\n 'role': 'assistant',\n 'tool_calls': [{'function': {'arguments': '{\"query\": \"\u4eca\u65e5\u306e\u65e5\u4ed8\"}',\n                              'name': 'japanese_search'},\n                 'id': 'call_QSfXkwvwXiVkeJehpLmLI78V',\n                 'type': 'function'},\n                {'function': {'arguments': '{\"query\": \"\u6771\u4eac\u306e\u5929\u6c17\"}',\n                              'name': 'japanese_search'},\n                 'id': 'call_ZF0Ijs2wEnqrnsNpyoANbSXU',\n                 'type': 'function'}]}<\/pre>\n\n\n\n<p><code>tool_calls<\/code> \u306e\u5185\u5bb9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002\u300c\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u554f\u3044\u306bLLM\u304b\u3089\u306f\u7b54\u3048\u304c\u5f97\u3089\u308c\u306a\u3044\u306e\u3067\u3001 <code>{\"query\": \"\u4eca\u65e5\u306e\u65e5\u4ed8\"}<\/code> \u3068 <code>{\"query\": \"\u6771\u4eac\u306e\u5929\u6c17\"}<\/code> \u3092\u8fd4\u3059\u306e\u3067\u3053\u308c\u3089\u3092\u4f7f\u3063\u3066\u30a6\u30a7\u30d6\u691c\u7d22\u3092\u884c\u3046\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>OpenAI \u306f\u5b9f\u969b\u306e\u30a6\u30a7\u30d6\u691c\u7d22\u307e\u3067\u306f\u884c\u3063\u3066\u304f\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u95a2\u6570\u3092\u81ea\u4f5c\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u30a6\u30a7\u30d6\u691c\u7d22\u304c\u5fc5\u8981\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u3084\u5fc5\u8981\u306a\u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u9078\u5b9a\u3092\u3001\u305d\u308c\u7528\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f5c\u3089\u306a\u304f\u3066\u3082\u884c\u3063\u3066\u304f\u308c\u307e\u3059\u3002\u5224\u5b9a\u30fb\u9078\u5b9a\u306f <code>descrption<\/code> \u3092\u306f\u3058\u3081\u3068\u3057\u305f\u300c\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306e\u6307\u793a\u300d\u306b\u5f93\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u8a73\u7d30\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3053\u3068\u304c\u5c11\u3057\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u305d\u308c\u3092\u5dee\u3057\u5f15\u3044\u3066\u3082\u304b\u306a\u308a\u5f37\u529b\u306a\u6a5f\u80fd\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LangGraph\u306eTool calling\u3068\u306f<\/h2>\n\n\n\n<p>LangGraph\u306e\u4e2d\u3067\u3001OpenAI API\u306b\u304a\u3051\u308bFunction calling\u3092\u884c\u3044\u3001\u305d\u306e\u7d50\u679c\u306b\u3088\u3063\u3066\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b\u3001\u3068\u3044\u3063\u305f\u4e00\u9023\u306e\u6d41\u308c\u3092\u884c\u3063\u3066\u304f\u308c\u308b\u4ed5\u7d44\u307f\u304c<a href=\"https:\/\/python.langchain.com\/docs\/concepts\/tool_calling\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tool calling<\/a>\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001Tool calling\u3092\u4f7f\u308f\u306a\u3044\u3001LangGraph \u306e\u307f\u306e\u5358\u7d14\u306a\u30b3\u30fc\u30c9\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">question=\"\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\"\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\nfrom langchain_openai import AzureChatOpenAI\nllm = AzureChatOpenAI(\n    azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n    api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n)\n\nfrom typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import AIMessage\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    res = llm.invoke(state[\"messages\"])\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\ngraph = graph_builder.compile()\nevents = graph.stream(\n    {\"messages\": [(\"user\", question)]},\n    stream_mode=\"values\"\n)\n\nfor event in events:\n    message = event[\"messages\"][-1]\n    if type(message) == AIMessage:\n        print(message.content)<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\u4eca\u65e5\u306f2023\u5e7410\u670823\u65e5\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u5929\u6c17\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u5929\u6c17\u60c5\u5831\u306f\u3001\u5929\u6c17\u4e88\u5831\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3084\u30a2\u30d7\u30ea\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/pre>\n\n\n\n<p>\u3084\u306f\u308a\u3001\u3064\u308c\u306a\u3044\u8fd4\u4e8b\u3067\u3059\u3002\u3057\u304b\u3082LLM\u306e\u77e5\u8b58\u306e\u4e2d\u3067\u306e\u300c\u73fe\u5728\u300d\u306e\u65e5\u4ed8\u3092\u8fd4\u3057\u3066\u304d\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306b <a href=\"https:\/\/tavily.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tavily<\/a> \u691c\u7d22\u3092\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u308c\u306b\u306f <a href=\"https:\/\/github.com\/langchain-ai\/langchain\/tree\/master\/libs\/community\" target=\"_blank\" rel=\"noreferrer noopener\">langchain-community<\/a> \u30e9\u30a4\u30d6\u30e9\u30ea\u306e <a href=\"https:\/\/github.com\/langchain-ai\/langchain\/tree\/master\/libs\/community\/langchain_community\/tools\/tavily_search\" target=\"_blank\" rel=\"noreferrer noopener\">tavily_search<\/a> \u30c4\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">question=\"\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\"\n\nimport os\nfrom dotenv import load_dotenv\nload_dotenv()\n\nfrom langchain_community.tools.tavily_search import TavilySearchResults\ntavily_search_tool = TavilySearchResults(max_results=2)\n\nfrom langchain_openai import AzureChatOpenAI\nllm = AzureChatOpenAI(\n    azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n    api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n)\ntools = [tavily_search_tool]\nllm_with_tools = llm.bind_tools(tools)\n\nfrom typing import Annotated\nfrom typing_extensions import TypedDict\nfrom langgraph.graph import StateGraph\nfrom langgraph.graph.message import add_messages\nfrom langchain_core.messages import AIMessage\nfrom langgraph.prebuilt import ToolNode, tools_condition\n\nclass State(TypedDict):\n    messages: Annotated[list, add_messages]\n\ndef chatbot(state: State):\n    res = llm_with_tools.invoke(state[\"messages\"])\n    return {\"messages\": res}\n\ngraph_builder = StateGraph(State)\ngraph_builder.add_node(\"chatbot\", chatbot)\ntool_node = ToolNode(tools=tools)\ngraph_builder.add_node(\"tools\", tool_node)\n\ngraph_builder.set_entry_point(\"chatbot\")\ngraph_builder.add_conditional_edges(\n    \"chatbot\",\n    tools_condition,\n)\ngraph_builder.add_edge(\"tools\", \"chatbot\")\ngraph_builder.set_finish_point(\"chatbot\")\n\ngraph = graph_builder.compile()\nevents = graph.stream(\n    {\"messages\": [(\"user\", question)]},\n    stream_mode=\"values\"\n)\n\nfor event in events:\n    message = event[\"messages\"][-1]\n    if type(message) == AIMessage:\n        print(message.content)<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u5dee\u5206\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">--- 57_langgraph_function_calling_no_used.py    2025-01-08 18:30:15.662495364 +0900\n+++ 58_langgraph_function_calling_tavily.py    2025-01-08 18:48:09.746694169 +0900\n@@ -6,28 +6,42 @@\n from dotenv import load_dotenv\n load_dotenv()\n\n+from langchain_community.tools.tavily_search import TavilySearchResults\n+tavily_search_tool = TavilySearchResults(max_results=2)\n+\n from langchain_openai import AzureChatOpenAI\n llm = AzureChatOpenAI(\n     azure_deployment = os.getenv(\"AZURE_OPENAI_MODEL_NAME\"),\n     api_version = os.getenv(\"AZURE_OPENAI_API_VERSION\"),\n )\n+tools = [tavily_search_tool]\n+llm_with_tools = llm.bind_tools(tools)\n\n from typing import Annotated\n from typing_extensions import TypedDict\n from langgraph.graph import StateGraph\n from langgraph.graph.message import add_messages\n from langchain_core.messages import AIMessage\n+from langgraph.prebuilt import ToolNode, tools_condition\n\n class State(TypedDict):\n     messages: Annotated[list, add_messages]\n\n def chatbot(state: State):\n-    res = llm.invoke(state[\"messages\"])\n+    res = llm_with_tools.invoke(state[\"messages\"])\n     return {\"messages\": res}\n\n graph_builder = StateGraph(State)\n graph_builder.add_node(\"chatbot\", chatbot)\n+tool_node = ToolNode(tools=tools)\n+graph_builder.add_node(\"tools\", tool_node)\n+\n graph_builder.set_entry_point(\"chatbot\")\n+graph_builder.add_conditional_edges(\n+    \"chatbot\",\n+    tools_condition,\n+)\n+graph_builder.add_edge(\"tools\", \"chatbot\")\n graph_builder.set_finish_point(\"chatbot\")\n\n graph = graph_builder.compile()<\/pre>\n\n\n\n<p>\u6ce8\u76ee\u3059\u3079\u304d\u70b9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">+from langchain_community.tools.tavily_search import TavilySearchResults\n+tavily_search_tool = TavilySearchResults(max_results=2)<\/pre>\n\n\n\n<p>\u5148\u7a0b\u3082\u89e6\u308c\u305f<a href=\"https:\/\/github.com\/langchain-ai\/langchain\/tree\/master\/libs\/community\/langchain_community\/tools\/tavily_search\" target=\"_blank\" rel=\"noreferrer noopener\">tavily_search<\/a> \u30c4\u30fc\u30eb\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001Function calling \u3067\u547c\u3073\u51fa\u3059\u3001\u30a6\u30a7\u30d6\u691c\u7d22\u3092\u884c\u3046\u305f\u3081\u306e\u95a2\u6570\u3092\u81ea\u4f5c\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">+tools = [tavily_search_tool]\n+llm_with_tools = llm.bind_tools(tools)<\/pre>\n\n\n\n<p>LLM\u306b\u30c4\u30fc\u30eb\u306e\u95a2\u9023\u4ed8\u3051\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">-    res = llm.invoke(state[\"messages\"])\n+    res = llm_with_tools.invoke(state[\"messages\"])<\/pre>\n\n\n\n<p>LLM\u5358\u4f53\u3067\u306f\u306a\u304f\u3001\u30c4\u30fc\u30eb\u3092\u95a2\u9023\u4ed8\u3051\u305fLLM\u3092\u4f7f\u3046\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"> graph_builder.add_node(\"chatbot\", chatbot)\n+tool_node = ToolNode(tools=tools)\n+graph_builder.add_node(\"tools\", tool_node)\n+\n graph_builder.set_entry_point(\"chatbot\")\n+graph_builder.add_conditional_edges(\n+    \"chatbot\",\n+    tools_condition,\n+)\n+graph_builder.add_edge(\"tools\", \"chatbot\")\n graph_builder.set_finish_point(\"chatbot\")<\/pre>\n\n\n\n<p>\u30c4\u30fc\u30eb\u3092\u4f7f\u3046ToolNode\u3092\u8ffd\u52a0\u3057\u3001LLM\u3068\u3084\u308a\u53d6\u308a\u3092\u884c\u3046 <code>chatbot<\/code> \u30ce\u30fc\u30c9\u3068\u63a5\u7d9a\u3057\u3066\u3044\u307e\u3059\u3002 <code>tools_condition<\/code> \u3067\u306f\u3001\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\u4eca\u65e5\u306f2025\u5e741\u67088\u65e5\u3067\u3059\u3002\u6771\u4eac\u306e\u5929\u6c17\u306f\u300c\u5c11\u3057\u66c7\u308a\u300d\u3067\u3001\u6c17\u6e29\u306f\u7d048.2\u00b0C\u3067\u3059\u3002\u98a8\u901f\u306f\u7d0420.5 km\/h\u3067\u3001\u6e7f\u5ea6\u306f34%\u3067\u3059\u3002<\/pre>\n\n\n\n<p><a href=\"https:\/\/www.jma.go.jp\/jma\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u6c17\u8c61\u5e81<\/a>\u306e\u30c7\u30fc\u30bf\u3092\u898b\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u304a\u304a\u3080\u306d\u6b63\u3057\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4f55\u304b\u7279\u5225\u306a\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u66f8\u304b\u305a\u306b\u3001LLM\u304c\u77e5\u3089\u306a\u3044\u77e5\u8b58\u3092\u691c\u7d22\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u3053\u308d\u3067\u3001\u5b9f\u969b\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u3084\u308a\u3068\u308a\u304c\u306a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u6b21\u306e\u3088\u3046\u306b <code>pretty_print<\/code> \u3092\u4f7f\u3046\u3088\u3046\u306b\u5909\u66f4\u3092\u52a0\u3048\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"diff\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@@ -51,6 +51,4 @@\n )\n\n for event in events:\n-    message = event[\"messages\"][-1]\n-    if type(message) == AIMessage:\n-        print(message.content)\n+    event[\"messages\"][-1].pretty_print()<\/pre>\n\n\n\n<p>\u6b21\u306e\u3088\u3046\u306a\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002Tool Message \u306e\u90e8\u5206\u306f\u898b\u3084\u3059\u3044\u3088\u3046\u306b\u624b\u3067JSON\u3092\u6574\u5f62\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">====================== Human Message =======================\n\n\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\n======================== Ai Message ========================\nTool Calls:\n  tavily_search_results_json (call_JrIL9nydrduuxZYHIo898iuD)\n Call ID: call_JrIL9nydrduuxZYHIo898iuD\n  Args:\n    query: Tokyo weather today\n  tavily_search_results_json (call_UZZLIbgIMOT9Ja9PCQetxXCi)\n Call ID: call_UZZLIbgIMOT9Ja9PCQetxXCi\n  Args:\n    query: current date\n======================= Tool Message =======================\nName: tavily_search_results_json\n\n[{\n    \"url\": \"https:\/\/datetimetoday.com\/\",\n    \"content\": \"Check the current date and time for any location in the world. Find date, time, timezone and more for over 200 countries. ... Check the current date and time for any location in the world. Find date, time, timezone and more for over 200 countries. DateTimeToday.Com Dark Mode. Los Angeles. Tuesday, January 7, 2025. 11:28:16 AM . New York. Tue\"\n},\n{\n    \"url\": \"https:\/\/www.calendardate.com\/todays.htm\",\n    \"content\": \"Monday November 18, 2024 November 2024 Calendar Holidays 2024 Holidays 2025 Holidays November 2024 Holidays Todays Date Today's Moon Phases November Moon Phases Today's Date Today's Date is Monday November 18, 2024 Time zone: California\/Mountain View Change Time zone  November 2024 Day Number of Year: 323 Month Number of Year:   11 Sun Today Moon Today Zodiac Signs and Birthday Symbols for Today's Date Nov 28 - Thurs  Thanksgiving Day 2024   Federal Holiday Dec 2 - Mon Cyber Monday 2024   Observance Dec 6 - Fri St Nicholas Day 2024    Christian Dec 7 - Sat Pearl Harbor Remebrance Day 2024    Observance Dec 17 - Tues   Wright Brothers Day 2024    Observance Site Map By using our site you consent to our Privacy Policy.\"\n}]\n======================== Ai Message ========================\n\n\u4eca\u65e5\u306f2025\u5e741\u67089\u65e5\u3067\u3059\u3002\n\n\u6771\u4eac\u306e\u73fe\u5728\u306e\u5929\u6c17\u306f\u300c\u66c7\u308a\u6642\u3005\u6674\u308c\u300d\u3067\u3001\u6c17\u6e29\u306f10\u00b0C\u3067\u3059\u3002\u98a8\u306f\u5357\u5357\u897f\u304b\u308919.1 km\/h\u3067\u5439\u3044\u3066\u304a\u308a\u3001\u6e7f\u5ea6\u306f29%\u3067\u3059\u3002<\/pre>\n\n\n\n<p>\u4eba\u9593\u306e\u5165\u529b\u300c\u4eca\u65e5\u306f\u4f55\u5e74\u4f55\u6708\u4f55\u65e5\u3067\u3001\u6771\u4eac\u306e\u5929\u6c17\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\u300d\u304cLLM\u306e\u77e5\u8b58\u304b\u3089\u306f\u7b54\u3048\u3089\u308c\u306a\u3044\u306e\u3067\u3001\u95a2\u6570\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u5224\u65ad\u3057\u3001\u305d\u3057\u3066\u95a2\u6570\uff08\u30c4\u30fc\u30eb\uff09\u306e\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u3092\u518d\u5ea6LLM\u306b\u4e0e\u3048\u3066\u6700\u7d42\u7d50\u679c\u3092\u51fa\u3057\u3066\u3044\u308b\u3001\u3068\u3044\u3063\u305f\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u6700\u7d42\u7d50\u679c\u306f<a href=\"https:\/\/www.jma.go.jp\/jma\/index.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u6c17\u8c61\u5e81<\/a>\u306e\u30c7\u30fc\u30bf\u306b\u3088\u308c\u3070\u6b63\u3057\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u672c\u9805\u3067\u306f\u3001LangGraph\u306e<a href=\"https:\/\/python.langchain.com\/docs\/concepts\/tool_calling\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tool calling<\/a>\u3068OpenAI API\u306e<a href=\"https:\/\/platform.openai.com\/docs\/guides\/function-calling\" target=\"_blank\" rel=\"noreferrer noopener\">Function calling<\/a>\u306b\u3088\u3063\u3066\u3001\u5224\u65ad\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u6761\u4ef6\u5206\u5c90\u3092\u4f5c\u308b\u3053\u3068\u306a\u304f\u3001LLM\u306e\u77e5\u8b58\u304b\u3089\u7b54\u3048\u3089\u308c\u306a\u3044\u5185\u5bb9\u306f\u30a6\u30a7\u30d6\u691c\u7d22\u3057\u3066\u7b54\u3048\u3092\u5f97\u3089\u308c\u308b\u3053\u3068\u3092\u898b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>LangGraph\u306e\u30c4\u30fc\u30eb\u306f\u4eca\u56de\u53d6\u308a\u4e0a\u3052\u305fTavily\u691c\u7d22\u4ee5\u5916\u306b\u3082\u591a\u6570\u306e\u30c4\u30fc\u30eb\u304c\u3042\u308b\u305f\u3081\u3001\u30a6\u30a7\u30d6\u691c\u7d22\u4ee5\u5916\u3092\u4f5c\u696d\u3055\u305b\u3089\u308c\u308b\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002\u307e\u305fFunction calling\u306fOpenAI API\u306e\u6982\u5ff5\u3067\u3059\u304c\u3001\u4ed6\u306eLLM\u30b5\u30fc\u30d3\u30b9\u306b\u3082\u540c\u69d8\u306e\u5b9f\u88c5\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002LangGraph\u306eTool calling\u3092\u4f7f\u3048\u3070\u3001\u30b5\u30fc\u30d3\u30b9\u3054\u3068\u306e\u9055\u3044\u3092\u96a0\u853d\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001Function calling\u3082\u7d50\u5c40\u306e\u3068\u3053\u308dLLM\u306e\u77e5\u8b58\u304b\u3089\u547c\u3073\u51fa\u3057\u95a2\u6570\u306e\u5f15\u6570\u306a\u3069\u3092\u6c7a\u5b9a\u3057\u3066\u3044\u308b\u3053\u3068\u3001\u6587\u4e2d\u3067\u3082\u6319\u3052\u305f\u901a\u308a\u3001\u305d\u306e\u6c7a\u5b9a\u30d7\u30ed\u30bb\u30b9\u304c\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u3042\u308b\u3053\u3068\u304c\u6c17\u306b\u306a\u308b\u3068\u3053\u308d\u3067\u3059\u3002\u307e\u305f\u3001\u30c4\u30fc\u30eb\u306e\u4f7f\u7528\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u305d\u306e\u7d50\u679c\u3092\u518d\u3073LLM\u306b\u5165\u529b\u3057\u3066\u6700\u7d42\u7d50\u679c\u3092\u5f97\u308b\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306e\u305f\u3081\u3001\u5165\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u306e\u5927\u5e45\u5897\u52a0\u3001\u3064\u307e\u308a\u4eba\u9593\u304c\u5165\u529b\u3057\u305f\u4f1a\u8a71\u6587\u306e\u898b\u305f\u76ee\u4ee5\u4e0a\u306b\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308b\u3053\u3068\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u7559\u610f\u70b9\u304c\u3042\u308b\u3082\u306e\u306e\u3001Tool calling\/Function calling\u306f\u6975\u3081\u3066\u5f37\u529b\u3067\u3059\u3002\u7b46\u8005\u306e\u7d4c\u9a13\u3068\u3057\u3066\u306f\u3001\u5358\u306bLLM\u306e\u307f\u306e\u5834\u5408\u3060\u3068\u300c\u77e5\u3089\u306a\u3044\u3053\u3068\u3070\u304b\u308a\u3067\u4f7f\u3048\u306a\u3044\u306a\u2026\u300d\u3068\u3044\u3063\u305f\u6b8b\u5ff5\u306a\u611f\u60f3\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u304c\u3001\u30a6\u30a7\u30d6\u691c\u7d22\u3092\u7d44\u307f\u8fbc\u3093\u3067\u307f\u308b\u3068\u300c\u305d\u3053\u305d\u3053\u7b54\u3048\u3066\u304f\u308c\u308b\u3001\u3053\u308c\u306f\u4f7f\u3048\u308b\u300d\u3068\u4e00\u6c17\u306b\u8a55\u4fa1\u304c\u4e0a\u304c\u308b\u307b\u3069\u3067\u3057\u305f\u3002\u7d44\u307f\u8fbc\u307f\u81ea\u4f53\u3082\u304b\u306a\u308a\u624b\u8efd\u306b\u884c\u3048\u308b\u306e\u3067\u3001\u662f\u975e\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large Language Model; \u5927\u898f\u6a21\u8a00\u8a9e\u30e2\u30c7\u30eb)\u304b\u3089\u7b54\u3048\u3092\u5f97\u3089 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":76709,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[779,58,817,31,1004,323],"tags":[],"class_list":["post-76708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-azure","category-chatgpt-ai","category-higuchi","category-llm","category-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-13T23:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1775\" \/>\n\t<meta property=\"og:image:height\" content=\"419\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daisuke Higuchi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daisuke Higuchi\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708\"},\"author\":{\"name\":\"Daisuke Higuchi\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"headline\":\"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai\",\"datePublished\":\"2025-01-13T23:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708\"},\"wordCount\":123,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png\",\"articleSection\":[\"AI\",\"Azure\",\"ChatGPT\uff06AI\",\"d-higuchi\",\"LLM\",\"Python\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708\",\"name\":\"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png\",\"datePublished\":\"2025-01-13T23:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\"},\"description\":\"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png\",\"width\":1775,\"height\":419},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\\\/76708#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8457\u8005\uff08Author\uff09\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"d-higuchi\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/16f1373831fb6fd17387f16ae1195206\",\"name\":\"Daisuke Higuchi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/pngout-25-230x230.png\",\"caption\":\"Daisuke Higuchi\"},\"description\":\"\u306f\u3084\u308a\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/higuchi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708","og_locale":"ja_JP","og_type":"article","og_title":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large","og_url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2025-01-13T23:30:00+00:00","og_image":[{"width":1775,"height":419,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png","type":"image\/png"}],"author":"Daisuke Higuchi","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Daisuke Higuchi","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708"},"author":{"name":"Daisuke Higuchi","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"headline":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai","datePublished":"2025-01-13T23:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708"},"wordCount":123,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png","articleSection":["AI","Azure","ChatGPT\uff06AI","d-higuchi","LLM","Python"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708","name":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png","datePublished":"2025-01-13T23:30:00+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206"},"description":"AI, Azure, ChatGPT\uff06AI, d-higuchi, LLM, Python |\u306f\u3058\u3081\u306b LangGraph\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Enhancing the Chatbot with Tools \u3067\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u304cLLM (Large","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2025\/01\/tool_call_example-2348b869f9a5d0d2a45dfbe614c177a4.png","width":1775,"height":419},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi\/76708#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u8457\u8005\uff08Author\uff09","item":"https:\/\/www.creationline.com\/tech-blog\/author"},{"@type":"ListItem","position":3,"name":"d-higuchi","item":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"},{"@type":"ListItem","position":4,"name":"LangGraph\u306eTool calling\u3067OpenAI API\u306eFunction calling\u3092\u8a66\u3057\u3066\u307f\u3088\u3046 #openai #azure #langgraph #langchain #llm #ai"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/16f1373831fb6fd17387f16ae1195206","name":"Daisuke Higuchi","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2026\/05\/pngout-25-230x230.png","caption":"Daisuke Higuchi"},"description":"\u306f\u3084\u308a\u306e\u6280\u8853\u8981\u7d20\u306b\u52a0\u3048\u3066\u3001\u4f1a\u8b70\u306e\u9032\u3081\u65b9\u30fb\u6587\u7ae0\u306e\u66f8\u304d\u65b9\u306a\u3069\u306e\u696d\u52d9\u6539\u5584\u306b\u3082\u53d6\u308a\u7d44\u3093\u3067\u3044\u307e\u3059\u3002\u300cChef\u6d3b\u7528\u30ac\u30a4\u30c9\u300d\u5171\u8457\u306e\u307b\u304b\u3001Debian Official Developer\u3082\u3084\u3063\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/higuchi"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=76708"}],"version-history":[{"count":6,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76708\/revisions"}],"predecessor-version":[{"id":76716,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/76708\/revisions\/76716"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/76709"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=76708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=76708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=76708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}