Register and share your invite link to earn from video plays and referrals.

Search results for LangGraph
LangGraph community
One keyword maps to one global community path.
Create community
People
Not Found
Tweets including LangGraph
🧭 Reaching for LangGraph by default? This paper is a practitioner guide that separates where graph orchestration truly helps from where it just gets in the way. The authors argue LangGraph adds value not through model quality but through durable orchestration and governance. So it earns its place when a workflow must pause and resume, or when the next step depends on explicit state like risk, evidence quality, or retry count. Conversely, if a single prompt plus one tool call suffices, keep it simple with a plain SDK, they warn against overuse. The thesis is made concrete with three runnable recipes: SQL analytics that self-repairs from validation and execution errors; a fail-closed RAG that returns "insufficient" instead of fabricating when evidence is weak; and a HITL flow that interrupts only high-risk cases for human review. Each uses typed state, conditional edges, and checkpoints to lift repair and approval out of implicit prompts into testable, explicit steps (with a warning that removing the checkpointer breaks pause/resume, so high-risk cases never complete). Tool selection is crisp too: ReAct for simple cases, schema-first for structured extraction, DSPy for prompt optimization, LangGraph when branching and audit matter. By deliberately skipping benchmarks to discuss when engineering shape changes, Graph-Based Agentic AI with LangGraph is a solid map for design decisions. 🔗 #LangGraph# #AIAgents#
Show more
Learn how to deploy LangGraph agents on OCI Enterprise AI, including the architecture, deployment process, and key components needed to run agent-based applications on OCI.
Show more
65 million monthly downloads. LangGraph just shared what three years of graph engineering actually taught them. Title: 3 Years of Graph Engineering with LangGraph The core idea of modeling agents as graphs: not handing control to the LLM, but letting developers embed expected behavior flows as constrained paths. Nodes run computation; edges define what happens next — giving you precise control over the balance between deterministic code and autonomous steps. 🔄 Highlight 1 — Agent graphs are NOT DAGs The biggest trap is assuming you can design everything as a directed acyclic graph. In production, you always need cycles: retrying failed tool calls, asking users for missing information, correcting answers after validation failures, resuming after human checkpoints. Loop engineering isn't an alternative to graphs — it's just a simpler special case. LangChain itself is built as a simple loop on top of LangGraph. 🧩 Highlight 2 — Full agent runs can live inside a single node The biggest evolution over three years: what you can put inside a node. Early on, nodes held deterministic code or single LLM calls. Now, entire agent executions fit inside one node. A Slack-to-pull-request system illustrates this: deterministic API calls, a simple classifier, and an autonomous codebase-exploring agent all coexist in one graph — achieving predictability, power, and efficiency together. 📤 Highlight 3 — Send API enables dynamic routing Map-reduce workflows can't have all edges defined upfront because node output volume is only known at runtime. The Send API routes work dynamically to multiple downstream nodes, breaking this constraint. The post also draws a clear boundary: for deep research tasks where the flow can't be predetermined, reach for an agent harness instead of a graph. Graph engineering isn't a new idea — it's the latest expression of the same lineage as loop engineering and harness engineering. #LangGraph# #AIAgent#
Show more
Practices for embedding AI agents into enterprise systems [Single vs Multi-Agent] 💡 Tempted to build one almighty agent that does everything? That decision is the very first fork that determines whether your system succeeds or fails. 🔥 Problems Solved - A single agent hits context window and tool count limits on complex tasks - Cannot use different knowledge, permissions, or models per domain - Serial processing of independent tasks inflates response time - Side-effect conflicts in multi-agent setups become unmanageable 🏗️ Proposed Pattern A single agent runs one LLM loop with all tools, processing sequentially. If you have fewer than 30 tools, a single purpose, and low-latency requirements, this is optimal. Multi-agent setups use an orchestrator that delegates to specialized workers, enabling parallel research for faster results. The critical rule: consolidate writes into one agent and keep others read-only. Remember that multi-agent cost and latency can be several times higher than single. ✅ Selection Criteria - Fit (Single): single purpose, few tools, cost-sensitive, debuggability matters - Fit (Multi): separable expert domains, parallel research speeds things up, context window breaks down with single - Not Fit: high side-effect, write-heavy processes in multi-agent setups ⚠️ Pitfalls - Defaulting to multi-agent needlessly raises complexity, cost, and debugging difficulty - Multiple agents writing concurrently causes conflicts and inconsistencies - Start single, migrate to multi only when you genuinely hit the wall 🛠️ Implementation Approach 1. Build as a single agent first and measure tool count, context window usage, and latency limits empirically 2. When going multi-agent, adopt an orchestrator/worker architecture using LangGraph or CrewAI with a shared state store (e.g., Redis) for inter-worker communication 3. Enforce a "writes go to one agent only, all others are read-only" rule as a code-level convention to prevent side-effect conflicts 4. Standardize agent-to-agent interfaces using A2A protocol so workers can be added or swapped easily 5. Visualize single-to-multi migration triggers (tool count > 30, context window usage > 80%, etc.) in a monitoring dashboard #AIAgents# #EnterpriseArchitecture#
Show more
# Practical and Useful Patterns with ADK 📄 What if you could define agents in YAML instead of code? ADK's Agent Config enables declarative agent definitions with environment-specific switching -- no redeployment needed for prompt or model changes! 📌 Title: Agent Config — Declarative, Code-Free Agent Definitions in YAML 🔗 URL: 🧩 Overview Agent Config lets you build ADK workflows without writing code, using YAML files to define `name`, `model`, `description`, `instruction`, `tools`, and `sub_agents`. Create projects with `adk create --type=config`, then run with `adk web`, `adk run`, or `adk api_server`. For programmatic loading, use `config_agent_utils.from_config()` in Python. This separation of agent definition from code enables prompt changes, model swaps, and environment-specific configurations without redeployment. 🛠 Usage A basic Agent Config YAML: ```yaml # root_agent.yaml name: assistant_agent model: gemini-flash-latest description: A helper agent that answers user questions. instruction: | You are an agent that answers various user questions. Provide accurate and helpful responses. tools: - google_search sub_agents: - config_path: specialist_agent.yaml ``` Create and run a project: ```bash # Create project adk create --type=config my_agent # Run options adk web # Web interface adk run # Terminal execution adk api_server # API server mode ``` Load programmatically in Python: Use `config_agent_utils.from_config()` from `google.adk.agents` to programmatically load an agent from a YAML file path (e.g., `"my_agent/root_agent.yaml"`). 🏗 Practical Patterns **Environment-Specific Configuration**: Maintain separate YAML files for dev/staging/prod and select them via environment variables. ```yaml # config/dev/root_agent.yaml name: assistant_agent model: gemini-flash-latest instruction: | [DEV] Include debug information in your responses. # config/prod/root_agent.yaml name: assistant_agent model: gemini-2.5-pro instruction: | Answer user questions accurately and concisely. ``` Read the environment name with `os.getenv("ENVIRONMENT", "dev")` and dynamically load the corresponding YAML file via `config_agent_utils.from_config(f"config/{env}/root_agent.yaml")`. **Prompt Versioning**: Track YAML files in Git for full prompt change history. Update instructions without code changes and roll back easily when needed. **A/B Testing**: Prepare multiple YAML files with different instructions or models, and switch between them at runtime to compare performance. Call `get_ab_variant(user_id)` to determine the A/B variant (`"a"` or `"b"`), then load the corresponding YAML file with `config_agent_utils.from_config(f"config/variant_{variant}.yaml")` for runtime A/B testing. 💡 Use Cases 🔄 Prompt and model changes without code modifications or redeployment 🌍 Per-environment configuration management (dev/staging/prod) 📊 A/B testing different instructions and models 📝 Git-tracked prompt versioning with easy rollback 🧩 Enabling non-engineers to update agent configurations safely ⚠️ Considerations - Currently only Gemini models are supported. Other model providers are not yet available. - Custom code tools are limited to Python and Java. - `LangGraphAgent` and `A2aAgent` are not yet supported in Agent Config. - API keys and project settings are managed via `.env` files -- be careful not to commit secrets. ✨ Agent Config separates agent definitions from code, enabling non-engineers to safely modify prompts and models while making environment switching and A/B testing straightforward. Use it to maximize operational flexibility! #ADK# #AIAgent#
Show more
📚 Wouldn't it be great to run ReAct, RAG, and Tree of Thoughts behind one API and compare them, instead of wrangling scattered per-paper implementations? This repo delivers exactly that, with all 35 patterns in one place. Title: FareedKhan-dev/all-agentic-architectures URL: 📦 Overview This is a Python library and a "living textbook" implementing 35 production-grade agentic AI patterns. Every architecture exposes the same .run(task) method and returns an identical result shape, so you can swap patterns without touching downstream code. ❓ Challenges Solved Agentic design patterns have been scattered across papers, each with its own implementation and conventions. The real value here is unifying them under a single interface so you can try them side by side. 💡 Core Idea & Approach The central idea is the "deterministic-picker discipline." ・Instead of handing scoring entirely to the LLM, it first has the LLM commit to categorical features like booleans and enums ・The final decision is then composed in Python logic This mitigates the flat-band pathology of LLM-as-Scorer, and it appears in 13 of the 35 architectures. 🎯 Coverage & Use Cases It spans eight families: reasoning and reflection (Reflection, Self-Discover), search (Tree of Thoughts, LATS), RAG (Corrective/Self/Adaptive/GraphRAG), memory (MemGPT, Voyager), tools and actions (ReAct, SWE-Agent), and multi-agent (Debate, STORM). Each pattern ships with an executed Jupyter notebook, giving reproducible references grounded in real LLM output. 📊 Highlights ・Built on LangGraph, with support for Nebius, OpenAI, Anthropic, Ollama and more, switchable via a single env var ・283 passing pytest tests ・On a 17-task benchmark it recently scored 33/42 correct (78%), with Reflection and Self-Consistency among the strongest #AIAgents# #LangGraph#
Show more
For an AI agent to answer "why did we make that decision?", you need connected memory — not flat chat logs 🕸️ This tool spins the whole thing up in one command. Title: Introducing Create Context Graph URL: 🕸️ Overview Create Context Graph is a Neo4j Labs CLI scaffolding tool that generates a full-stack AI agent app with graph-based memory in a single command. The generated app bundles a FastAPI backend, a Next.js frontend, an AI agent framework, and a Neo4j graph database. ❓ Challenges Solved AI agents are easy to build but still struggle with relationships and causality. ・Flat chat logs and vector stores can't answer structural questions like "why did we decide this?" or "what's blocking this work?" ・In short, agents lacked the sophisticated memory needed to capture relational context 💡 Methodology & How It Works ・It turns data into a "context graph" (a connected knowledge structure), organizing three memory types: chat history, vector content, and reasoning traces ・It uses the POLE+O entity model (Person, Organization, Location, Event, Object) layered with domain-specific types ・When agents decide, the reasoning chain is captured as DecisionTrace nodes with linked TraceStep components, creating queryable provenance ・It supports multiple frameworks (PydanticAI, LangGraph, Claude Agent SDK), 22 built-in domains, Linear/Claude Code/GitHub connectors, real-time reasoning-path visualization, and automatic secret redaction 🌍 Use Cases ・Developers querying issue dependencies and team workflows ・Personal development analytics from Claude Code session history ・Multi-tool correlation combining decisions, commits, and work items Making decision provenance queryable helps with agent explainability, debugging, and cross-team knowledge integration. #GraphRAG# #Neo4j#
Show more
The EU AI Act deadline is August 2, 2026, with penalties up to €15M. Here's a practical guide mapping abstract articles to concrete features ⚖️ Title: How LangSmith and LangChain OSS Help You Meet EU AI Act Requirements URL: ⚖️ Overview This post explains how to meet the EU AI Act's requirements for high-risk systems using LangSmith and LangChain OSS features, mapping the articles to implementations like tracing, evaluation, and human oversight. ❓ Challenges Solved The EU AI Act imposes strict requirements on high-risk AI. The deadline is August 2, 2026, with penalties up to €15M or 3% of global revenue. The hard part is knowing which capabilities actually satisfy the abstract articles. 💡 How It Works (articles → features) ・Observability and tracing (Article 12): end-to-end traces of LLM calls, tools, and reasoning steps; retention of 14 days (base) / 400 days (extended); EU data residency options ・Quality and safety (Article 15): online evaluators continuously score production traffic, with prebuilt evaluators for toxicity, hallucination, PII leakage, prompt injection, and more ・Human oversight (Article 14): LangGraph's interrupt for human-in-the-loop, with resume-from-exact-point recovery ・Risk management (Article 9): custom dashboards track risk scores and trigger alerts 🌍 Practical Starting Point Build in this order — tracing → production evaluations → human-in-the-loop — and choose EU, self-hosted, or BYOC deployment based on data residency needs. #EUAIAct# #AIGovernance#
Show more