Skip to content

The agent engineering platform.

fix(langchain): use `system_prompt` in integration tests (#33748)

Mason Daugherty91f7e73c27d1
diff --git a/libs/langchain_v1/tests/integration_tests/agents/test_response_format.py b/libs/langchain_v1/tests/integration_tests/agents/test_response_format.py
index 2c8a5a401c..db3edf6dcf 100644
--- a/libs/langchain_v1/tests/integration_tests/agents/test_response_format.py
+++ b/libs/langchain_v1/tests/integration_tests/agents/test_response_format.py
@@ -26,7 +26,7 @@ def test_inference_to_native_output() -> None:
model = ChatOpenAI(model="gpt-5")
agent = create_agent(
model,
- prompt=(
+ system_prompt=(
"You are a helpful weather assistant. Please call the get_weather tool, "
"then use the WeatherReport tool to generate the final response."
),
@@ -56,7 +56,7 @@ def test_inference_to_tool_output() -> None:
model = ChatOpenAI(model="gpt-4")
agent = create_agent(
model,
- prompt=(
+ system_prompt=(
"You are a helpful weather assistant. Please call the get_weather tool, "
"then use the WeatherReport tool to generate the final response."
),