mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-07 18:27:52 +02:00
config
This commit is contained in:
@@ -45,6 +45,7 @@ def _validate_traceable_config(raw: Any) -> TraceableConfig | None:
|
||||
"process_inputs": raw.get("process_inputs"),
|
||||
"process_outputs": raw.get("process_outputs"),
|
||||
"enabled": raw.get("enabled"), # None means use external context
|
||||
"wrapped": raw.get("wrapped"),
|
||||
}
|
||||
|
||||
|
||||
@@ -249,11 +250,6 @@ class PregelNode:
|
||||
config = _validate_traceable_config(raw_config)
|
||||
if config is None:
|
||||
return None
|
||||
|
||||
unwrapped = getattr(func, "__wrapped__", None)
|
||||
if unwrapped:
|
||||
config["__unwrapped__"] = unwrapped
|
||||
|
||||
return config
|
||||
|
||||
@cached_property
|
||||
|
||||
@@ -50,6 +50,7 @@ def _set_traceable_config(
|
||||
"process_inputs": process_inputs,
|
||||
"process_outputs": process_outputs,
|
||||
"enabled": enabled,
|
||||
"wrapped": func,
|
||||
},
|
||||
)
|
||||
return func
|
||||
|
||||
Reference in New Issue
Block a user