This commit is contained in:
Sydney Runkle
2025-11-13 09:42:47 -05:00
parent 8cc698b4e0
commit 425224c69b
2 changed files with 6 additions and 4 deletions
@@ -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:
@@ -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):