<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oshima_123</author_name>
  <author_url>https://blog.hatena.ne.jp/oshima_123/</author_url>
  <blog_title>Generative Agents Tech Blog</blog_title>
  <blog_url>https://blog.generative-agents.co.jp/</blog_url>
  <categories>
    <anon>LangChain/LangGraph</anon>
  </categories>
  <description>ジェネラティブエージェンツの大嶋です。 この記事では、LangChainのChatPromptTemplateでSystemMessage・HumanMessageのプレースホルダーが置換されない理由と対応方法を紹介します。 ChatPromptTemplateの基本的な使い方 LangChainのChatPromptTemplateを使用すると、プロンプトのテンプレートを扱うことができます。 以下のコードでは{lang}と{message}の箇所がプレースホルダーとして扱われ、prompt.invokeとするとその箇所が置き換えられます。 from langchain_core.prompt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.generative-agents.co.jp%2Fentry%2F2025%2F03%2F19%2F213328&quot; title=&quot;LangChainのChatPromptTemplateでSystemMessage・HumanMessageのプレースホルダーが置換されない理由と対応方法 #LangChain - Generative Agents Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-19 21:33:28</published>
  <title>LangChainのChatPromptTemplateでSystemMessage・HumanMessageのプレースホルダーが置換されない理由と対応方法 #LangChain</title>
  <type>rich</type>
  <url>https://blog.generative-agents.co.jp/entry/2025/03/19/213328</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
