Langchain chains
Skill a5c-ai/babysitter/library/specializations/ai-agents-conversational/skills/langchain-chains
LangChain chain composition including SequentialChain, RouterChain, and LCEL patternsFrom its SKILL.md
npx -y skills add a5c-ai/babysitter --skill langchain-chainsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.6 KB, 213 tokens by cl100k_base, as published. Nobody here has run it
LangChain Chains Skill
Capabilities
- Compose LangChain chains using LCEL (LangChain Expression Language)
- Implement sequential chain patterns
- Design router chains for conditional logic
- Create parallel execution chains
- Handle chain fallbacks and retries
- Implement streaming chains
Target Processes
- dialogue-flow-design
- chatbot-design-implementation
Implementation Details
Chain Patterns
- LCEL Pipelines: Modern composition with | operator
- SequentialChain: Linear chain execution (legacy)
- RouterChain: Conditional routing based on input
- RunnableParallel: Parallel execution branches
- RunnableBranch: Conditional branching
Configuration Options
- Input/output key mapping
- Error handling strategies
- Retry configuration
- Streaming settings
- Batch processing options
Best Practices
- Use LCEL for new implementations
- Implement proper input/output schemas
- Add fallback chains for resilience
- Use streaming for long operations
Dependencies
- langchain-core
- langchain
What ships with it: 1 file
634 B alongside SKILL.md
- README.md634 B