langchain-core-workflow-a

Featured

Build LangChain LCEL chains with prompts, parsers, and composition. Use when creating prompt templates, building RunnableSequence pipelines, parallel/branching chains, or multi-step processing workflows. Trigger: "langchain chains", "langchain prompts", "LCEL workflow", "langchain pipeline", "prompt template", "RunnableSequence".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# LangChain Core Workflow A: Chains & Prompts ## Overview Build production chains using LCEL (LangChain Expression Language). Covers prompt templates, output parsers, RunnableSequence, RunnableParallel, RunnableBranch, RunnablePassthrough, and chain composition patterns. ## Prerequisites - `langchain-install-auth` completed - `@langchain/core` and at least one provider installed ## Prompt Templates ### ChatPromptTemplate ```typescript import { ChatPromptTemplate, MessagesPlaceholder } from "@langchain/core/prompts"; // Simple template const simple = ChatPromptTemplate.fromTemplate( "Translate '{text}' to {language}" ); // Multi-message template with chat history slot const chat = ChatPromptTemplate.fromMessages([ ["system", "You are a {role}. Respond in {style} style."], new MessagesPlaceholder("history"), // dynamic message injection ["human", "{input}"], ]); // Inspect required variables console.log(chat.inputVariables); // ["role", "style", "history", "input"] ``` ### Partial Templates ```typescript // Pre-fill some variables, leave others for later const partial = await chat.partial({ role: "senior engineer", style: "concise", }); // Now only needs: history, input const result = await partial.invoke({ history: [], input: "Explain LCEL", }); ``` ## Output Parsers ```typescript import { StringOutputParser } from "@langchain/core/output_parsers"; import { JsonOutputParser } from "@langchain/core/output_parsers"; import { StructuredOutputParser...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category