diff --git a/libs/langgraph/langgraph/_internal/_runnable.py b/libs/langgraph/langgraph/_internal/_runnable.py index aa435eb8d..0e51c4286 100644 --- a/libs/langgraph/langgraph/_internal/_runnable.py +++ b/libs/langgraph/langgraph/_internal/_runnable.py @@ -318,7 +318,9 @@ class RunnableCallable(Runnable): # If the kwarg is accepted by the function, store the key / runtime attribute to inject # Use the actual parameter default from the function signature if available, # otherwise fall back to the default from KWARGS_CONFIG_KEYS - param_default = p.default if p.default is not inspect.Parameter.empty else default + param_default = ( + p.default if p.default is not inspect.Parameter.empty else default + ) self.func_accepts[kw] = (runtime_key, param_default) def __repr__(self) -> str: diff --git a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py index 6c0df122d..b2d255cce 100644 --- a/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py +++ b/libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py @@ -78,7 +78,7 @@ with warnings.catch_warnings(): warnings.filterwarnings( "ignore", category=LangGraphDeprecatedSinceV10, - message="AgentState has been moved to langchain.agents.*", + message="AgentState has been moved to `langchain.agents`.*", ) @deprecated( @@ -95,11 +95,11 @@ with warnings.catch_warnings(): warnings.filterwarnings( "ignore", category=LangGraphDeprecatedSinceV10, - message="AgentStatePydantic has been moved to langchain.agents.*", + message="AgentStatePydantic has been moved to `langchain.agents`.*", ) @deprecated( - "AgentStateWithStructuredResponsePydantic has been moved to `langchain.agents`. Please update your import to `from langchain.agents import AgentStateWithStructuredResponsePydantic`.", + "AgentStateWithStructuredResponsePydantic has deprecated. The new `langchain.agents.AgentState` contains the structured response by default.", category=LangGraphDeprecatedSinceV10, ) class AgentStateWithStructuredResponsePydantic(AgentStatePydantic):