mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-10 03:37:51 +02:00
linting
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user