chore(langchain): remove unnecessary description for toods list as a group (#36315)

This was introduced this the refactor. The description at the
list[Todos] level didn't exist, instead we only had a description at a
single todo level.
This commit is contained in:
Eugene Yurtsev
2026-03-27 17:15:56 -04:00
committed by GitHub
parent 494b760028
commit 1545dbfa17

View File

@@ -7,7 +7,7 @@ from langchain_core.messages import AIMessage, SystemMessage, ToolMessage
from langchain_core.tools import InjectedToolCallId, StructuredTool, tool
from langgraph.runtime import Runtime
from langgraph.types import Command
from pydantic import BaseModel, Field
from pydantic import BaseModel
from typing_extensions import NotRequired, TypedDict, override
from 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.