Retry and cache policies configurable on graph nodes.
Use with StateGraph.addNode for per-node overrides, or with
StateGraph.setNodeDefaults for graph-wide defaults applied at
compile() time. Per-node values always take precedence over defaults.
setNodeDefaults may be called before or after addNode, including as the
last step before compile().
NodePolicyOptionsCache policy controlling how node results are keyed and how long they persist.
keyFunc, ttl).true to enable caching with default settings.false to disable caching.Retry policy controlling backoff, max attempts, and which errors trigger a retry.
Maximum duration for a single attempt of this node. Accepts a number of milliseconds (a hard wall-clock cap) or a TimeoutPolicy for finer control over run / idle timeouts. When exceeded, a NodeTimeoutError is raised and the node's retry policy (if any) decides whether to retry.