chore(prebuilt): critical renaming (#5971)

* `create_react_agent` -> `create_agent`
* `agent` node -> `model` node
This commit is contained in:
Sydney Runkle
2025-08-20 09:15:42 -04:00
committed by GitHub
parent 20953b4728
commit f994d16b49
8 changed files with 96 additions and 102 deletions
@@ -4,7 +4,7 @@ import pytest
from pydantic import BaseModel
from syrupy import SnapshotAssertion
from langgraph.prebuilt import create_react_agent
from langgraph.prebuilt import create_agent
from tests.model import FakeToolCallingModel
model = FakeToolCallingModel()
@@ -40,7 +40,7 @@ def test_react_agent_graph_structure(
pre_model_hook: Union[Callable, None],
post_model_hook: Union[Callable, None],
) -> None:
agent = create_react_agent(
agent = create_agent(
model,
tools=tools,
pre_model_hook=pre_model_hook,