S agent tools E if tool_calls tool results else END Checkpointer (thread_id, checkpoint_id) -> State StateGraph interrupt_before