new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

LangChain & LangGraph · all subjects

graph architecture & execution

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

LangGraph node function parameters

Node functions in LangGraph receive several key parameters: state (the current graph state), config (runtime configuration including configurable fields), and context (injected runtime context from headers via middleware). Optional parameters may include the store object for accessing key-value storage. These parameters enable nodes to access full execution context and make state-dependent decisions.

Graph configuration precedence in execution

Graph configuration is merged with invoke configuration in Pregel, with invoke settings taking precedence over graph-level settings. This allows runtime customization of graph behavior without modifying the graph definition.

Run command marshaling and execution

Run commands support Resume, Goto, and ParentCommand operations for control flow. Resume and Goto commands have custom JSON unmarshalling to handle map-style null resume interpretation. ParentCommand correctly propagates control to parent graphs in subgraph scenarios.

Give your agent this brain