The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
chore(langchain): remove unnecessary description for toods list as a group (#36315)
Eugene Yurtsev1545dbfa174c
diff --git a/libs/langchain_v1/langchain/agents/middleware/todo.py b/libs/langchain_v1/langchain/agents/middleware/todo.pyindex 813e059c1d..83aa39d901 100644--- a/libs/langchain_v1/langchain/agents/middleware/todo.py+++ b/libs/langchain_v1/langchain/agents/middleware/todo.py@@ -7,7 +7,7 @@ from langchain_core.messages import AIMessage, SystemMessage, ToolMessagefrom langchain_core.tools import InjectedToolCallId, StructuredTool, toolfrom langgraph.runtime import Runtimefrom langgraph.types import Command-from pydantic import BaseModel, Field+from pydantic import BaseModelfrom typing_extensions import NotRequired, TypedDict, overridefrom langchain.agents.middleware.types import (@@ -46,7 +46,7 @@ class PlanningState(AgentState[ResponseT]):class WriteTodosInput(BaseModel):"""Input schema for the `write_todos` tool."""- todos: list[Todo] = Field(description="Updated todo items for the current work session.")+ todos: list[Todo]WRITE_TODOS_TOOL_DESCRIPTION = """Use this tool to create and manage a structured task list for your current work session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.