langgraph
Workflow patterns and gotchas for LangGraph. Directs to RAG for implementation.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Workflow patterns and gotchas for LangGraph. Directs to RAG for implementation.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
This skill should be used when the user asks about "visual builder", "no-code agent builder", "drag and drop", "ThinkingConfig", "extended thinking", "chain of thought", "reasoning", or needs guidance on using ADK's visual development tools or configuring advanced reasoning capabilities.
This skill should be used when the user asks about "callbacks", "lifecycle hooks", "before_model_call", "after_tool_call", "plugins", "session state", "state management", "artifacts", "file uploads", "events", "EventActions", "human-in-the-loop", "confirmation", "memory", "MemoryService", "long-term memory", "remember across sessions", "RAG", "retrieval augmented generation", "grounding", "knowledge base", "vector search", or needs guidance on customizing agent behavior, intercepting execution, managing state across turns, implementing approval workflows, or implementing persistent memory or grounding agent responses in external knowledge.
This skill should be used when the user asks about "creating a new ADK project", "initializing ADK", "setting up Google ADK", "adk create command", "ADK project structure", "YAML agent configuration", "creating an agent", "LlmAgent", "BaseAgent", "custom agent", "agent with different model", "Claude with ADK", "OpenAI with ADK", "LiteLLM", "multi-model agent", or needs guidance on bootstrapping an ADK development environment, authentication setup, choosing between Python code and YAML-based agent definitions, agent configuration, model selection, system instructions, or extending the base agent class for non-LLM logic.
This skill should be used when the user asks about "multi-agent systems", "sub-agents", "delegation", "agent routing", "orchestration", "SequentialAgent", "ParallelAgent", "LoopAgent", "agent-to-agent", "A2A protocol", "agent hierarchy", "streaming", "real-time responses", "SSE", "server-sent events", "websocket", "bidirectional", "Live API", "voice", "audio", "video", "multimodal streaming", or needs guidance on building systems with multiple specialized agents working together or implementing real-time communication patterns.
This skill should be used when the user asks about "deploying", "production", "Agent Engine", "Vertex AI", "Cloud Run", "GKE", "Kubernetes", "hosting", "scaling", "guardrails", "safety", "content filtering", "input validation", "output validation", "authentication", "OAuth", "API keys", "credentials", "security plugins", "testing agents", "evaluation", "evals", "benchmarks", "tracing", "Cloud Trace", "logging", "observability", "AgentOps", "LangSmith", "user simulation", or needs guidance on deploying ADK agents to production environments, implementing safety measures, access control, secure authentication, testing, debugging, monitoring, or evaluating ADK agent quality.
This skill should be used when the user asks about "adding a tool", "FunctionTool", "creating tools", "MCP integration", "OpenAPI tools", "built-in tools", "google_search tool", "code_execution tool", "long-running tools", "async tools", "third-party tools", "LangChain tools", "computer use", or needs guidance on extending agent capabilities with custom functions, API integrations, or external tool frameworks.
| name | LangGraph |
| description | Workflow patterns and gotchas for LangGraph. Directs to RAG for implementation. |
| Need | Pattern | RAG Query |
|---|---|---|
| Sequential steps | Linear graph | "simple sequential graph" |
| Decision branching | Conditional edges | "conditional edge routing" |
| Iteration/retry | Cycles | "graph cycle loop" |
| Parallel execution | Parallel branches | "parallel graph execution" |
| Human approval | Checkpoints | "human in loop checkpoint" |
| Agent with tools | ReAct pattern | "react agent langgraph" |
Query RAG: mcp__agentic-rag__query_sdk("pattern example", sdk="langgraph", mode="build")
These cause debugging nightmares:
from langgraph.graph import ENDgraph.compile() is required before invokeRAG Query: mcp__agentic-rag__query_sdk("TypedDict state definition", sdk="langgraph", mode="build")
Define your state schema with TypedDict and Annotated for reducers.
RAG Query: mcp__agentic-rag__query_sdk("graph node function", sdk="langgraph", mode="build")
Each node takes state, returns partial state update.
RAG Query: mcp__agentic-rag__query_sdk("StateGraph add_node add_edge", sdk="langgraph", mode="build")
RAG Query: mcp__agentic-rag__query_sdk("conditional_edges routing", sdk="langgraph", mode="build")
RAG Query: mcp__agentic-rag__query_sdk("graph compile checkpointer", sdk="langgraph", mode="build")
RAG Query: mcp__agentic-rag__query_sdk("compiled graph invoke stream", sdk="langgraph", mode="build")
| Symptom | Likely Cause | RAG Query |
|---|---|---|
| Node never runs | Missing edge | "graph edge definition" |
| State not updating | Returning wrong keys | "node state return" |
| Infinite loop | No END condition | "conditional edge END" |
| Type error | State not TypedDict | "TypedDict state" |
| Memory lost | No checkpointer | "MemorySaver persistence" |
| Merge conflict | Missing reducer | "Annotated reducer operator" |
Nodes for each decision point, conditional edges for branching.
RAG Query: mcp__agentic-rag__query_sdk("decision tree graph", sdk="langgraph", mode="build")
Reason-Act-Observe loop with tool calling.
RAG Query: mcp__agentic-rag__query_sdk("react agent pattern", sdk="langgraph", mode="build")
Planning node, execution loop, verification.
RAG Query: mcp__agentic-rag__query_sdk("plan execute pattern", sdk="langgraph", mode="build")
Query RAG when you need:
"langgraph streaming events""nested subgraph composition""interrupt checkpoint approval""state history replay""parallel node execution"