From 91f7e73c27d174ca5a10bc264aecc08fb20f95f8 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Thu, 30 Oct 2025 16:05:57 -0400 Subject: [PATCH] fix(langchain): use `system_prompt` in integration tests (#33748) --- .../tests/integration_tests/agents/test_response_format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 2c8a5a401c4..db3edf6dcf6 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." ),