mirror of
https://github.com/hwchase17/langchain.git
synced 2026-07-12 11:21:37 +00:00
fix(langchain): collapse _write_todos ToolMessage to one line
`ruff format` wants the now-shorter message text on a single line.
The previous multi-line layout fit the longer "Updated todo list to
{todos}" payload; "Todo list updated." is short enough to inline.
This commit is contained in:
@@ -149,9 +149,7 @@ def _write_todos(
|
||||
return Command(
|
||||
update={
|
||||
"todos": todos,
|
||||
"messages": [
|
||||
ToolMessage("Todo list updated.", tool_call_id=runtime.tool_call_id)
|
||||
],
|
||||
"messages": [ToolMessage("Todo list updated.", tool_call_id=runtime.tool_call_id)],
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user