map_     | prompt    | model.bind(function_call= {"name": "joke"}, functions= functions)     | JsonKeyOutputFunctionsParser(key_name="setup"))chain.invoke("bears")    "Why don't bears wear shoes?"Since we're composing our map with another Runnable, we can even use some syntactic sugar and just use a dict:chain = (    {"foo": RunnablePassthrough()}     | prompt    | model.bind(function_call= {"name": "joke"}, functions= functions)     | JsonKeyOutputFunctionsParser(key_name="setup"))chain.invoke("bears")    "Why don't bears like fast food?"PreviousCookbookNextRAGPromptTemplate + LLMAttaching Stop SequencesAttaching Function Call informationPromptTemplate + LLM + OutputParserFunctions Output ParserSimplifying inputCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.
The most common and valuable composition is taking:
The most common and valuable composition is taking: ->: map_     | prompt    | model.bind(function_call= {"name": "joke"}, functions= functions)     | JsonKeyOutputFunctionsParser(key_name="setup"))chain.invoke("bears")    "Why don't bears wear shoes?"Since we're composing our map with another Runnable, we can even use some syntactic sugar and just use a dict:chain = (    {"foo": RunnablePassthrough()}     | prompt    | model.bind(function_call= {"name": "joke"}, functions= functions)     | JsonKeyOutputFunctionsParser(key_name="setup"))chain.invoke("bears")    "Why don't bears like fast food?"PreviousCookbookNextRAGPromptTemplate + LLMAttaching Stop SequencesAttaching Function Call informationPromptTemplate + LLM + OutputParserFunctions Output ParserSimplifying inputCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright ¬© 2023 LangChain, Inc.