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

推荐订阅源

J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
爱范儿
爱范儿
罗磊的独立博客
美团技术团队
Jina AI
Jina AI
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
小众软件
小众软件
IT之家
IT之家
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
月光博客
月光博客
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)

LangChain Forum - Latest posts

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 Question about LangSmith Trace Search via API How to cancel a run correct !! Anyone confirms this issue that deepagent ui streaming is disturb by update in deepagent or bug issue Would pre-inference routing help long-context agent workflows? Best Stack for Building AI Applications Question about LangSmith Trace Search 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 FileSystem middleware Using ChatSnowflake with agents Built llmsessioncontract on AgentMiddleware: runtime enforcement of tool-call protocols — feedback wanted DeltaChannelHistory not found in langgraph-api:3.12 Improving citation accuracy and reducing hallucinations in custom Parent-Child RAG pipeline (Gemma3:4B + FAISS+BM25 + Cross-encoder reranker) Metadata filter not filtering for alerts Connecting the Slack integration fails with invalid_team_for_non_distributed_app Trouble understanding and editing experiment summary evaluators feedbacks SSL certificate error from httpx with LangGraph server 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? How are people handling data governance across agent handoffs in production? Feature Request: @task metadata Research: Friction Points in Agentic Commerce Transactions How should I provide an agent to a LangGraph server?
Where should I define the name and description for subage...
wigging · 2026-04-22 · via LangChain Forum - Latest posts
I have a subagent as defined below where I provide a name for the agent. # agent_weather.py from langchain.agents import create_agent def get_weather(city: str) -> str: """Get weather for a given city.""" return f"It's always sunny in {city}! There is no wind, temperature is 72 F, slight change of rain." agent = create_agent( name="weather-agent", model="openai:gpt-5.4-mini", tools=[get_weather], system_prompt="You are a helpful weather forecast agent", ) The subagent is utilized by the deep agent that is defined next. Notice the code for the deep agent also provides a name and description for the subagent. # agent.py from deepagents import create_deep_agent, CompiledSubAgent from agent_weather import agent as agent_weather from agent_divider import agent as agent_divider def main(): """Run the main agent.""" weather_subagent = CompiledSubAgent( name="weather-subagent", description="Specialized agent for weather forecasts", runnable=agent_weather, ) agent = create_deep_agent( model="openai:gpt-5.4-mini", system_prompt="You are a helpful assistant that uses subagents for specialized tasks", subagents=[weather_subagent], ) result = agent.invoke( { "messages": [ { "role": "user", "content": "Get the weather in paris", } ] } ) print("\n--- Result ---\n", result) text = result["messages"][-1].content[0]["text"] print("\n--- Text ---\n", text) So where should I define the name and description of the subagent in this code? Should it be in the subagent code itself or in the deep agent code or both? 2 posts - 2 participants Read full topic