(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1967],{26731:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changelog/2023-11-13-support-for-langchain-expression-language",function(){return a(15786)}])},15786:function(e,t,a){"use strict";a.r(t),a.d(t,{useTOC:function(){return c}});var n=a(52676),r=a(43788),i=a(19819),s=a(98757),l=a(91866),o=a(89329);function c(e){return[]}t.default=(0,r.c)(function(e){let t={a:"a",code:"code",mark:"mark",p:"p",pre:"pre",span:"span",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.F,{}),"\n",(0,n.jsx)(t.p,{children:"To use Langfuse, simply add the callback handler to the invoke method:"}),"\n",(0,n.jsx)(t.pre,{icon:o.gx,tabIndex:"0","data-language":"python","data-word-wrap":"","data-copy":"",children:(0,n.jsx)(t.code,{children:(0,n.jsxs)(t.span,{children:[(0,n.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"chain.invoke("}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"input"}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:", "}),(0,n.jsxs)(t.mark,{"data-highlighted-chars-mark":"","data-highlighted-chars":"",children:[(0,n.jsx)(t.span,{style:{"--shiki-light":"#E36209","--shiki-dark":"#FFAB70"},children:"config"}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"="}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"{"}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#032F62","--shiki-dark":"#9ECBFF"},children:'"callbacks"'}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:":[handler]}"})]}),(0,n.jsx)(t.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:")"})]})})}),"\n",(0,n.jsxs)(t.p,{children:["See ",(0,n.jsx)(t.a,{href:"/docs/integrations/langchain/tracing",children:"Langchain integration docs"})," for full details."]})]})},"/changelog/2023-11-13-support-for-langchain-expression-language",{filePath:"pages/changelog/2023-11-13-support-for-langchain-expression-language.mdx",timestamp:1709332293e3,pageMap:i.v,frontMatter:{date:"2023-11-13",title:"Support for Langchain Expression Language (LCEL)",description:"LangChain Expression Language, or LCEL, is a declarative way to easily compose chains together. Langfuse natively supports the new expression language.",ogImage:"/images/changelog/2023-11-13-support-for-langchain-expression-language.jpg",author:"Marc"},title:"Support for Langchain Expression Language (LCEL)"},"undefined"==typeof RemoteContent?c:RemoteContent.useTOC)},47509:function(e,t,a){"use strict";a.d(t,{IY:function(){return l},S3:function(){return o}});var n=a(52676),r=a(42799),i=a.n(r);let s={maxdeichmann:{firstName:"Max",name:"Max Deichmann",image:"/images/people/maxdeichmann.jpg",twitter:"maxdeichmann"},marcklingen:{firstName:"Marc",name:"Marc Klingen",image:"/images/people/marcklingen.jpg",twitter:"marcklingen"},clemensrawert:{firstName:"Clemens",name:"Clemens Rawert",image:"/images/people/clemensrawert.jpg",twitter:"rawert"},hassiebpakzad:{firstName:"Hassieb",name:"Hassieb Pakzad",image:"/images/people/hassiebpakzad.jpg",twitter:"hassiebpakzad"},richardkruemmel:{firstName:"Richard",name:"Richard Kr\xfcmmel",image:"/images/people/richardkruemmel.jpg",twitter:"RichardKrue"},marliesmayerhofer:{firstName:"Marlies",name:"Marlies Mayerhofer",image:"/images/people/marliesmayerhofer.jpg",twitter:"marliessophie"},lydiayou:{firstName:"Lydia",name:"Lydia You",image:"/images/people/lydiayou.jpg"},jannikmaierhoefer:{firstName:"Jannik",name:"Jannik Maierh\xf6fer",image:"/images/people/jannikmaierhoefer.jpg"}},l=e=>{let t=e.authors.filter(e=>e in s);return 0===t.length?null:(0,n.jsx)("div",{className:"flex flex-wrap gap-5 sm:gap-10 justify-center py-7",children:t.map(e=>(0,n.jsx)(o,{author:e},e))})},o=e=>{var t;let a=null!==(t=s[e.author])&&void 0!==t?t:Object.values(s).find(t=>t.firstName===e.author);return a?(0,n.jsx)("a",{href:a.twitter?"https://twitter.com/".concat(a.twitter):"#",className:"group shrink-0",target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)(i(),{src:a.image,width:40,height:40,className:"rounded-full",alt:"Picture ".concat(a.name)}),(0,n.jsx)("span",{className:"text-primary/60 group-hover:text-primary whitespace-nowrap",children:a.name})]},a.name)},e.author):null}},91866:function(e,t,a){"use strict";a.d(t,{F:function(){return d}});var n=a(52676),r=a(42799),i=a.n(r),s=a(8179),l=a(8029),o=a(80647),c=a.n(o),h=a(47509),u=a(16221);let d=()=>{var e;let t=(0,s.useRouter)(),a=(0,l.HI)("/changelog").find(e=>e.route===t.pathname),{title:r,description:o,ogImage:d,ogCloudflareVideo:g,ogVideo:p,gif:m,date:f,author:x,showOgInHeader:k,badge:j}=a.frontMatter;return(0,n.jsxs)("div",{className:"md:mt-10 flex flex-col gap-10",children:[(0,n.jsx)(c(),{href:"/changelog".concat(a.route?"#"+a.route.replace("/changelog/",""):""),className:"md:mb-10",children:"← Back to changelog"}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"text-lg text-primary/60 mb-3",children:[new Date(f).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}),!!j&&" | ".concat(j)]}),(0,n.jsxs)("div",{className:"flex flex-col gap-5 md:gap-10 md:flex-row justify-between md:items-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h1",{className:"text-2xl md:text-3xl text-pretty font-mono",children:r})}),(0,n.jsx)(h.S3,{author:x})]})]}),!1===k?null:g?(0,n.jsx)(u.B,{videoId:g,aspectRatio:16/9,gifStyle:!0}):p?(0,n.jsx)(u.n,{src:p,gifStyle:!0}):d?(0,n.jsx)(i(),{src:null!=m?m:d,alt:r,width:1200,height:630,className:"rounded border",unoptimized:void 0!==a.frontMatter.gif||(null===(e=a.frontMatter.ogImage)||void 0===e?void 0:e.endsWith(".gif"))}):null,(0,n.jsx)("p",{className:"text-[17px]",children:o})]})}},79890:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(36816).Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},86839:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(36816).Z)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]])},68744:function(e,t,a){"use strict";a.d(t,{Z:function(){return n}});let n=(0,a(36816).Z)("LibraryBig",[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]])},8029:function(e,t,a){"use strict";a.d(t,{HI:function(){return i}});var n=a(35591),r=a(90467);function i(e){let{pageMap:t}=function(e){let t=globalThis[n.ud];if(!t)throw Error(`Nextra context not found. Make sure you are using "${e}" of "nextra/context" on an md/mdx page.`);return{pageMap:t.pageMap,route:t.route}}("getPagesUnderRoute");return function e(t,a){let n=[],i=[],s=t.find(r.pN),l=s?.data||{};for(let s of t){if((0,r.pN)(s))continue;let t=(0,r.k0)(l[s.name]),o={...s,...Object.keys(t||{}).length>0&&{meta:t}};if((0,r.qR)(o)){let t=e(o.children,a);o.children=t.items,t.activeLevelPages.length?n=t.activeLevelPages:o.route!==a||n.length||(n=o.children)}i.push(o)}let o=Object.keys(l);return i.sort((e,t)=>{let a=o.indexOf(e.name),n=o.indexOf(t.name);return -1===a&&-1===n?e.name<t.name?-1:1:-1===a?1:-1===n?-1:a-n}),{items:i,activeLevelPages:n}}(t,e).activeLevelPages}},34703:function(e,t,a){"use strict";a.d(t,{F:function(){return s},e:function(){return i}});var n=a(75271);let r=(0,n.createContext)({}),i=(e="ssg")=>(0,n.useContext)(r)[e],s=r.Provider;r.displayName="SSG"},98757:function(e,t,a){"use strict";a.d(t,{a:function(){return o}});var n=a(56448),r=a(42799),i=a.n(r),s=a(75271);let l={img:e=>(0,s.createElement)("object"==typeof e.src?i():"img",e)},o=e=>(0,n.a)({...l,...e})},43788:function(e,t,a){"use strict";a.d(t,{c:function(){return o}});var n=a(52676),r=a(35591),i=a(34489),s=a(34703),l=a(98757);function o(e,t,a,n){let i=globalThis[r.ud];return i.route=t,i.pageMap=a.pageMap,i.context[t]={Content:e,pageOpts:a,useTOC:n},c}function c({__nextra_pageMap:e=[],__nextra_dynamic_opts:t,...a}){let l=globalThis[r.ud],{Layout:o,themeConfig:c}=l,{route:u,locale:d}=(0,i.t)(),g=l.context[u];if(!g)throw Error(`No content found for the "${u}" route. Please report it as a bug.`);let{pageOpts:p,useTOC:m,Content:f}=g;if(u.startsWith("/["))p.pageMap=e;else for(let{route:t,children:a}of e){let e=t.split("/").slice(d?2:1);(function e(t,[a,...n]){for(let r of t)if("children"in r&&a===r.name)return n.length?e(r.children,n):r})(p.pageMap,e).children=a}if(t){let{title:e,frontMatter:a}=t;p={...p,title:e,frontMatter:a}}return(0,n.jsx)(o,{themeConfig:c,pageOpts:p,pageProps:a,children:(0,n.jsx)(s.F,{value:a,children:(0,n.jsx)(h,{useTOC:m,children:(0,n.jsx)(f,{...a})})})})}function h({children:e,useTOC:t}){let{wrapper:a}=(0,l.a)();return(0,n.jsx)(u,{useTOC:t,wrapper:a,children:e})}function u({children:e,useTOC:t,wrapper:a,...r}){let i=t(r);return a?(0,n.jsx)(a,{toc:i,children:e}):e}}},function(e){e.O(0,[9819,2888,9774,179],function(){return e(e.s=26731)}),_N_E=e.O()}]);