Skip to main content

ai-llm-agentic-tooling-langchain-langgraph

Integrates LangChain/LangGraph for building LLM-powered agents and applications in Python, facilitating advanced logic and workflows.

소스 정보

저장소
paulpas/agent-skill-router
최근 소스 활동
2026년 6월 10일 18:00
감지된 SKILL.md 언어
영어
스타
6
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
ai-llm-agentic-tooling-langchain-langgraph
description
Integrates LangChain/LangGraph for building LLM-powered agents and applications in Python, facilitating advanced logic and workflows.
license
MIT
compatibility
opencode
metadata
{"version":"1.0.0","domain":"coding","triggers":"langchain, langgraph, llm integration, agent, workflows, python","archetypes":["tactical","generation"],"anti_triggers":["brainstorming","vague ideation","code golf","over-engineering"],"response_profile":{"verbosity":"low","directive_strength":"high","abstraction_level":"operational"},"role":"implementation","scope":"implementation","output-format":"code","related-skills":"ai-llm-agentic-tooling-mcp"}
# AI LLM Agentic Tooling with LangChain/LangGraph Integrates LangChain and LangGraph to facilitate the development of LLM-powered agents and applications. This skill focuses on building advanced logic and workflows using these frameworks in Python. ## Use Cases Use this skill when: - Creating complex workflows involving decision-making models. - Building agents that require chaining multiple LLM calls efficiently. - Integrating external tools or APIs within a conversational agent framework. ## Implementation Patterns This skill offers an integration guide for LangChain and LangGraph, enabling the development of LLM-powered agents in Python. It facilitates various advanced logic and workflows through examples and best practices. ### Basic LangChain Agent Creation This example demonstrates how to define a basic LangChain agent: ```python from langchain import LLMChain, PromptTemplate # Define a simple LLM chain prompt = PromptTemplate(input_variables=['input'], template="""You are a helpful assistant. Assist with: {input}. """) agent = LLMChain(prompt=prompt) ``` ### LangGraph Workflow Example This section illustrates how to use LangGraph to define tasks: ```python from langgraph import Executor, Task @Task def fetch_data(): return {'data_key': 'value'} @Task def process_data(data): return data['data_key'] + ' processed' executor = Executor(tasks=[fetch_data, process_data]) executor.run() ``` ### Advanced Usage with Error Handling Include retries and error logging in your agents. Use state management techniques to preserve data between tasks. ## Constraints on Use - Ensure prompt structures are maintained to maximize performance and clarity. - Validate context objects to ensure they adhere to expected formats and types. ## Metadata Updates ```yaml archetypes: tactical anti_triggers: - vague conversation - overly generic request response_profile: verbosity: medium directive_strength: high abstraction_level: operational ``` ### Basic LangChain Agent Creation ```python from langchain import LLMChain, PromptTemplate # Define a simple LLM chain prompt = PromptTemplate(input_variables=['input'], template="""You are a helpful assistant. Assist with: {input}. """) agent = LLMChain(prompt=prompt) ``` ### LangGraph Workflow Example ```python from langgraph import Executor, Task # Define tasks and executor @Task def fetch_data(): return {'data_key': 'value'} @Task def process_data(data): return data['data_key'] + ' processed' executor = Executor(tasks=[fetch_data, process_data]) executor.run() ``` ### Advanced Usage with Error Handling - Include retries and error logging in your agents. - Use state management techniques to preserve data between tasks.
GitHub에서 보기