惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

A
About on SuperTechFans
D
DataBreaches.Net
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
S
Secure Thoughts
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 最新话题
V2EX - 技术
V2EX - 技术
腾讯CDC
GbyAI
GbyAI
G
Google Developers Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
Help Net Security
Help Net Security
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
AI
AI
MongoDB | Blog
MongoDB | Blog
Scott Helme
Scott Helme
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
H
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
S
Security Affairs
TaoSecurity Blog
TaoSecurity Blog
The GitHub Blog
The GitHub Blog
Hacker News: Ask HN
Hacker News: Ask HN
Martin Fowler
Martin Fowler
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI

LangChain Forum - Topics tagged python-help

Null-drift: A bare-metal O(1) Memory Store for continuous LangGraph agents Clarification needed: Assistant config vs context and graph initialization Proposal: a small local helper for readable run traces via PR Proxy Authentication Required 407 What is the right way to dynamically create and run a graph? Re-Implement claude code's dynamic workflow using langchian & deepagents How to define a correct state for multi-agent system Response Format Groq Model Pydantic I hope to get some recommendations for practical skills Interrupt does not work correctly in LangGraph The Qwen3.6b model in fireworks through initchatmodel reporting hugely inflated tokens For parallel execution in Node, should i use the functional API? Potential Enhancement: Django-Managed PostgresSaver Pre-interrupt() code re-runs on resume — anti-pattern, or is there a sanctioned way to detect resume? Interrupt parallel branch execution Best practices for self-hosting LangGraph Server OSS without LangGraph keys Dynamically Enabling/Disabling Graphs in a LangGraph Server at Runtime LangGraph thread copy can take 12+ minutes: recommended production pattern? Will DeltaChannel be the default for AgentState.messages, or expected to stay opt-in? Proposal: additional docs for implementing custom DB checkpointers or a guide on generic base checkpointer Prompt_cache_retention: '24h' supported in langchain agents and where to provide it, inside invoke or while creating client? Could RAG pipelines realistically cause deployment timeouts, is Render suitable for first-time RAG deployments? How do I use langchain_postgres' init_vectorstore_table correctly? Proposal: Graph-wide default error handler for StateGraph (fallback for nodes without error_handler) Support timedelta for CachePolicy.ttl, consistent with TimeoutPolicy Anyone confirms this issue that deepagent ui streaming is disturb by update in deepagent or bug issue Best Stack for Building AI Applications Seeking help regarding the connection between Websocket and tool calls Tool invocation error with empty error message when using `InjectedState` + `Command` return in async tool How to use @langchain/react Built llmsessioncontract on AgentMiddleware: runtime enforcement of tool-call protocols — feedback wanted Improving citation accuracy and reducing hallucinations in custom Parent-Child RAG pipeline (Gemma3:4B + FAISS+BM25 + Cross-encoder reranker) Built a live autonomous AI agent network using LangGraph-style economics — looking for feedback How to use tool calling using ChatLlamaCpp and Gemma 4 E4B with create_agent? The Docs says open router can be used with init_chat_model but throws an error Interested to contribute to langgraph postgre checkpointer for multiple adapter support SSL certificate error from httpx with LangGraph server [Feature Request] Wire allowed_msgpack_modules in langgraph.json Serving an agent with the LangGraph CLI dev command Proposal: implement delete_for_runs for SQLite checkpoint savers WikipediaLoader endup in JSONDecodeError Human-in-the-loop approval dashboard for LangGraph agents — open source, free to deploy Should interrupt() be split into two primitives — one for human input, one for s2s data fetching? Feature Request: Driver abstraction for checkpoint-postgres: to build support for asyncpg and other adapters .Interested to contribute to langgraph (python) Feature Request: @task metadata Parallel astream() on the same compiled graph leaks messages between streams Where should I define the name and description for subagents? Add Qdrant-backed checkpoint saver and memory store (langgraph-checkpoint-qdrant) The output content has been corrupted Feature Request: Simple cryptographic provenance for who authorized what in LangGraph multi-agent graphs LangGraph + PostgreSQL: Chat history and summarization best practice Using SQLRecordManager multi-agent systems debugging agent-to-agent Proposal: Add save_local and load_local to USearch VectorStore (Feature Parity with FAISS) Tiny LangGraph -> Assay evidence sample from tasks v2 Help with local RAG pipeline – poor retrieval quality, wrong page numbers LOGIC.md — declarative reasoning contracts that compile to LangGraph StateGraph Distinguishing internal vs final streamed chunks in Supervisor multi-agent architecture Are people hitting race conditions in multi-agent LangChain setups? How do ContextEditingMiddleware and SummarizationMiddleware interact when used together?Combining ContextEditingMiddleware + SummarizationMiddleware — execution order and behavior when both trigger? How to register type in langgraph Are there any frontends for interacting with a LangGraph agent? Langchain.schema is not available while using in python code In-place model update on a compiled create_agent and per-subagent model update for deep agents - is this possible? Feature Request: Native Support for A2A Protocol (Remote Agents as Sub-Graphs) Feature Request: Image Input support for ChatMistralAI Multiple response formats when creating agents? Unable to parse docstring from OpenAI schema Hosting an agent server on Heroku No cost displayed in LangSmith when using LiteLLM + LangGraph How should I deploy a self-hosted multi-agent system? New integration: langchain-w2a — LangChain tools for W2A-enabled websites LiteLLM Router in LangChain: Missing Model Name and Cost in LangSmith Traces Bogus warning messages after upgrading dependencies which could have security impact if not addressed `anyio.CancelScope(shield=True)` not working inside langgraph node Handling Non-PDF File Attachments in LangChain HumanMessage How are teams handling evals when agent pipelines span multiple LangSmith projects? Feature request: Configurable PostgreSQL schema for langgraph-checkpoint-postgres (parity with LangGraphJS) Using the useStream frontend API with custom FastAPI backend Qwen 3.5 tool calling How to propagate cancellation across multi-level LangGraph agents When to use config['configurable'] vs. context in graph nodes? Tool.func typing [DashScope] reasoning parameter on ChatOpenAI breaks subagent tool calling — use separate models as workaround Structured data fields (1000+): Dedicated LLM channel vs vectorized field names? PollerCompletionQueue._handle_events BlockingIOError spam in LangGraph Cloud logs Parallel Nodes: how to manage failures or exceptions With too many fields, how should deepagents handle this properly? [LangSmith Studio Issue] when resuming from an interrupt inside a subgraph. it doesn't properly resume, instead restarts Guarding tool calls against prompt injection / exfiltration Feature Discussion: Opt-In Recursive Long-Context Executor for LangGraph Persisting HITL payloads Multi-Agent Architecture Are dynamic tool lists allowed when using create_agent? Langgraph RemoteGraph How to make an image tool?
How should I provide an agent to a LangGraph server?
@pawel-tward · 2026-04-23 · via LangChain Forum - Topics tagged python-help
hi @wigging How to Provide an Agent to a LangGraph Server The user’s concern is valid - their global caching is necessary with a plain async factory function, because the server calls the factory for every request , including schema introspection (Studio refresh, get_graph , get_schema ), state reads, and actual execution. Without caching they’d pay the Azure OpenAI + MCP initialization cost on every introspection call. However, there’s a better, officially documented pattern. How the server loads your graph From langgraph_cli/schemas.py , the graphs field supports three forms: Module-level compiled object - imported once at server startup, never called again Async context manager factory - called per-request, receives RunnableConfig (legacy) or ServerRuntime (modern) Async function factory - same as above, but returns instead of yielding The server calls your factory in 4 contexts : threads.create_run (actual execution), threads.update , threads.read (state history, used by Studio’s useStream ), and assistants.read (schema introspection). This is why the caching is needed with a plain factory. The recommended modern pattern: ServerRuntime (server v0.7.30+) From langgraph_sdk/runtime.py : import contextlib from langchain.agents import create_agent from langchain_openai import AzureChatOpenAI from langchain_mcp_adapters.client import MultiServerMCPClient from langgraph_sdk.runtime import ServerRuntime llm = AzureChatOpenAI( azure_deployment="your-deployment", azure_endpoint="https://...", api_version="2024-02-01", ) # Lightweight agent for introspection - no MCP connection needed _base_agent = create_agent(llm, tools=[]) @contextlib.asynccontextmanager async def get_agent(runtime: ServerRuntime): if runtime.execution_runtime: # Only connect to MCP during actual runs async with MultiServerMCPClient({...}) as mcp: tools = await mcp.get_tools() yield create_agent(llm, tools=tools) else: # Schema reads, Studio refresh - skip expensive MCP setup yield _base_agent langgraph.json : { "graphs": { "joker_agent": { "path": "./src/joker_agent.py:get_agent", "description": "Joker agent with Azure OpenAI and MCP tools" } } } Why this is better than the global cache Concern Global cache ServerRuntime factory Avoids re-init on every call Yes (cached) Yes ( execution_runtime guard) Handles MCP disconnects No (connection held forever) Yes (fresh per run, teardown after yield) Skips MCP during introspection No Yes Proper cleanup No Yes (code after yield ) The global caching pattern is fragile for MCP specifically: connections can time out while the server keeps running, and the cached agent won’t reconnect. The ServerRuntime context manager solves this by connecting fresh per execution and tearing down cleanly. When to use each pattern Scenario Recommended pattern No async init (sync tools only) Module-level object: graph = create_agent(...) MCP tools, async resources ServerRuntime async context manager (v0.7.30+) Older server, async resources RunnableConfig async context manager Per-user graph customization ServerRuntime factory using runtime.ensure_user()